Copied!

SectionServiceDecorator

SectionServiceDecorator.php : 22
Implements SectionService

Properties

protected $innerService

SectionServiceDecorator.php : 25
protected SectionService $innerService

Methods

public__construct()

SectionServiceDecorator.php : 27
public __construct(SectionService $innerService)

Parameters

Name Type Default value Description
$innerService SectionService - -

publicassignSection()

SectionServiceDecorator.php : 69

Assigns the content to the given section this method overrides the current assigned section.

public assignSection(ContentInfo $contentInfo, Section $section) : void

Parameters

Name Type Default value Description
$contentInfo ContentInfo - -
$section Section - -

publicassignSectionToSubtree()

SectionServiceDecorator.php : 76

Assigns the subtree to the given section this method overrides the current assigned section.

public assignSectionToSubtree(Location $location, Section $section) : void

Parameters

Name Type Default value Description
$location Location - -
$section Section - -

publiccountAssignedContents()

SectionServiceDecorator.php : 59

Counts the contents which $section is assigned to.

public countAssignedContents(Section $section) : int

Parameters

Name Type Default value Description
$section Section - -

Return values

int

publiccreateSection()

SectionServiceDecorator.php : 32

Creates the a new Section in the content repository.

public createSection(SectionCreateStruct $sectionCreateStruct) : Section

Parameters

Name Type Default value Description
$sectionCreateStruct SectionCreateStruct - -

Return values

Section

The newly create section

publicdeleteSection()

SectionServiceDecorator.php : 83

Deletes $section from content repository.

public deleteSection(Section $section) : void

Parameters

Name Type Default value Description
$section Section - -

publicisSectionUsed()

SectionServiceDecorator.php : 64

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

publicloadSection()

SectionServiceDecorator.php : 44

Loads a Section from its id ($sectionId).

public loadSection(int $sectionId) : Section

Parameters

Name Type Default value Description
$sectionId int - -

Return values

Section

publicloadSectionByIdentifier()

SectionServiceDecorator.php : 54

Loads a Section from its identifier ($sectionIdentifier).

public loadSectionByIdentifier(string $sectionIdentifier) : Section

Parameters

Name Type Default value Description
$sectionIdentifier string - -

Return values

Section

publicloadSections()

SectionServiceDecorator.php : 49

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>

publicnewSectionCreateStruct()

SectionServiceDecorator.php : 88

Instantiates a new SectionCreateStruct.

public newSectionCreateStruct() : SectionCreateStruct

Return values

SectionCreateStruct

publicnewSectionUpdateStruct()

SectionServiceDecorator.php : 93

Instantiates a new SectionUpdateStruct.

public newSectionUpdateStruct() : SectionUpdateStruct

Return values

SectionUpdateStruct

publicupdateSection()

SectionServiceDecorator.php : 37

Updates the given in the content repository.

public updateSection(Section $section, SectionUpdateStruct $sectionUpdateStruct) : Section

Parameters

Name Type Default value Description
$section Section - -
$sectionUpdateStruct SectionUpdateStruct - -

Return values

Section