Properties¶
$innerService
¶
|
|
Methods¶
__construct()
¶
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$innerService | SectionService | - | - |
assignSection()
¶
Assigns the content to the given section this method overrides the current assigned section.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$contentInfo | ContentInfo | - | - |
$section | Section | - | - |
assignSectionToSubtree()
¶
Assigns the subtree to the given section this method overrides the current assigned section.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$location | Location | - | - |
$section | Section | - | - |
countAssignedContents()
¶
Counts the contents which $section is assigned to.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$section | Section | - | - |
Return values
int
createSection()
¶
Creates the a new Section in the content repository.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sectionCreateStruct | SectionCreateStruct | - | - |
Return values
The newly create section
deleteSection()
¶
Deletes $section from content repository.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$section | Section | - | - |
isSectionUsed()
¶
Returns true if the given section is assigned to contents, or used in role policies, or in role assignments.
|
|
This does not check user permissions.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$section | Section | - | - |
Return values
bool
loadSection()
¶
Loads a Section from its id ($sectionId).
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sectionId | int | - | - |
Return values
loadSectionByIdentifier()
¶
Loads a Section from its identifier ($sectionIdentifier).
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sectionIdentifier | string | - | - |
Return values
loadSections()
¶
Loads all sections, excluding the ones the current user is not allowed to read.
|
|
Return values
array<string|int, Section>
newSectionCreateStruct()
¶
Instantiates a new SectionCreateStruct.
|
|
Return values
newSectionUpdateStruct()
¶
Instantiates a new SectionUpdateStruct.
|
|
Return values
updateSection()
¶
Updates the given in the content repository.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$section | Section | - | - |
$sectionUpdateStruct | SectionUpdateStruct | - | - |