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