Property | Type | Description | |
---|---|---|---|
$repository | eZ\Publish\API\Repository\Repository | ||
$sectionHandler | eZ\Publish\SPI\Persistence\Content\Section\Handler | ||
$settings | array |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Content\Section\Handler $sectionHandler, array $settings = [] ) | Setups service with reference to repository object that created it & corresponding handler. | |
assignSection ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\Section $section ) | Assigns the content to the given section this method overrides the current assigned section. | |
countAssignedContents ( eZ\Publish\API\Repository\Values\Content\Section $section ) : integer | Counts the contents which $section is assigned to. | |
createSection ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $sectionCreateStruct ) : eZ\Publish\API\Repository\Values\Content\Section | Creates a new Section in the content repository. | |
deleteSection ( eZ\Publish\API\Repository\Values\Content\Section $section ) | Deletes $section from content repository. | |
isSectionUsed ( eZ\Publish\API\Repository\Values\Content\Section $section ) : boolean | Returns true if the given section is assigned to contents, or used in role policies, or in role assignments. | |
loadSection ( mixed $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section | Loads a Section from its id ($sectionId). | |
loadSectionByIdentifier ( string $sectionIdentifier ) : eZ\Publish\API\Repository\Values\Content\Section | Loads a Section from its identifier ($sectionIdentifier). | |
loadSections ( ) : eZ\Publish\API\Repository\Values\Content\Section[] | Loads all sections. | |
newSectionCreateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionCreateStruct | Instantiates a new SectionCreateStruct. | |
newSectionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct | Instantiates a new SectionUpdateStruct. | |
updateSection ( eZ\Publish\API\Repository\Values\Content\Section $section, eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct $sectionUpdateStruct ) : eZ\Publish\API\Repository\Values\Content\Section | Updates the given section in the content repository. |
Method | Description | |
---|---|---|
buildDomainSectionObject ( eZ\Publish\SPI\Persistence\Content\Section $spiSection ) : eZ\Publish\API\Repository\Values\Content\Section | Builds API Section object from provided SPI Section object. |
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Content\Section\Handler $sectionHandler, array $settings = [] ) | ||
$repository | eZ\Publish\API\Repository\Repository | |
$sectionHandler | eZ\Publish\SPI\Persistence\Content\Section\Handler | |
$settings | array |
public assignSection ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\Section $section ) | ||
$contentInfo | eZ\Publish\API\Repository\Values\Content\ContentInfo | |
$section | eZ\Publish\API\Repository\Values\Content\Section |
protected buildDomainSectionObject ( eZ\Publish\SPI\Persistence\Content\Section $spiSection ) : eZ\Publish\API\Repository\Values\Content\Section | ||
$spiSection | eZ\Publish\SPI\Persistence\Content\Section | |
return | eZ\Publish\API\Repository\Values\Content\Section |
public countAssignedContents ( eZ\Publish\API\Repository\Values\Content\Section $section ) : integer | ||
$section | eZ\Publish\API\Repository\Values\Content\Section | |
return | integer |
public createSection ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $sectionCreateStruct ) : eZ\Publish\API\Repository\Values\Content\Section | ||
$sectionCreateStruct | eZ\Publish\API\Repository\Values\Content\SectionCreateStruct | |
return | eZ\Publish\API\Repository\Values\Content\Section | The newly created section |
public deleteSection ( eZ\Publish\API\Repository\Values\Content\Section $section ) | ||
$section | eZ\Publish\API\Repository\Values\Content\Section |
public isSectionUsed ( eZ\Publish\API\Repository\Values\Content\Section $section ) : boolean | ||
$section | eZ\Publish\API\Repository\Values\Content\Section | |
return | boolean |
public loadSection ( mixed $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section | ||
$sectionId | mixed | |
return | eZ\Publish\API\Repository\Values\Content\Section |
public loadSectionByIdentifier ( string $sectionIdentifier ) : eZ\Publish\API\Repository\Values\Content\Section | ||
$sectionIdentifier | string | |
return | eZ\Publish\API\Repository\Values\Content\Section |
public loadSections ( ) : eZ\Publish\API\Repository\Values\Content\Section[] | ||
return | eZ\Publish\API\Repository\Values\Content\Section[] |
public newSectionCreateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionCreateStruct | ||
return | eZ\Publish\API\Repository\Values\Content\SectionCreateStruct |
public newSectionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct | ||
return | eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct |
public updateSection ( eZ\Publish\API\Repository\Values\Content\Section $section, eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct $sectionUpdateStruct ) : eZ\Publish\API\Repository\Values\Content\Section | ||
$section | eZ\Publish\API\Repository\Values\Content\Section | |
$sectionUpdateStruct | eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct | |
return | eZ\Publish\API\Repository\Values\Content\Section |
protected Repository,eZ\Publish\API\Repository $repository | ||
return | eZ\Publish\API\Repository\Repository |
protected Handler,eZ\Publish\SPI\Persistence\Content\Section $sectionHandler | ||
return | eZ\Publish\SPI\Persistence\Content\Section\Handler |