PHP Класс eZ\Publish\Core\SignalSlot\SectionService

Наследование: implements eZ\Publish\API\Repository\SectionService
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$service eZ\Publish\API\Repository\SectionService Aggregated service.
$signalDispatcher SignalDispatcher SignalDispatcher.

Открытые методы

Метод Описание
__construct ( eZ\Publish\API\Repository\SectionService $service, SignalDispatcher $signalDispatcher ) Constructor.
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 the 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 ( ) : array 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 in the content repository.

Описание методов

__construct() публичный Метод

Construct service object from aggregated service and signal dispatcher
public __construct ( eZ\Publish\API\Repository\SectionService $service, SignalDispatcher $signalDispatcher )
$service eZ\Publish\API\Repository\SectionService
$signalDispatcher SignalDispatcher

assignSection() публичный Метод

Assigns the content to the given section this method overrides the current assigned section.
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

countAssignedContents() публичный Метод

Counts the contents which $section is assigned to.
Устаревший: since 6.0
public countAssignedContents ( eZ\Publish\API\Repository\Values\Content\Section $section ) : integer
$section eZ\Publish\API\Repository\Values\Content\Section
Результат integer

createSection() публичный Метод

Creates the a new Section in the content repository.
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
Результат eZ\Publish\API\Repository\Values\Content\Section The newly create section

deleteSection() публичный Метод

Deletes $section from content repository.
public deleteSection ( eZ\Publish\API\Repository\Values\Content\Section $section )
$section eZ\Publish\API\Repository\Values\Content\Section

isSectionUsed() публичный Метод

This does not check user permissions.
С версии: 6.0
public isSectionUsed ( eZ\Publish\API\Repository\Values\Content\Section $section ) : boolean
$section eZ\Publish\API\Repository\Values\Content\Section
Результат boolean

loadSection() публичный Метод

Loads a Section from its id ($sectionId).
public loadSection ( mixed $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section
$sectionId mixed
Результат eZ\Publish\API\Repository\Values\Content\Section

loadSectionByIdentifier() публичный Метод

Loads a Section from its identifier ($sectionIdentifier).
public loadSectionByIdentifier ( string $sectionIdentifier ) : eZ\Publish\API\Repository\Values\Content\Section
$sectionIdentifier string
Результат eZ\Publish\API\Repository\Values\Content\Section

loadSections() публичный Метод

Loads all sections.
public loadSections ( ) : array
Результат array of {@link \eZ\Publish\API\Repository\Values\Content\Section}

newSectionCreateStruct() публичный Метод

Instantiates a new SectionCreateStruct.
public newSectionCreateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionCreateStruct
Результат eZ\Publish\API\Repository\Values\Content\SectionCreateStruct

newSectionUpdateStruct() публичный Метод

Instantiates a new SectionUpdateStruct.
public newSectionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct
Результат eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct

updateSection() публичный Метод

Updates the given in the content repository.
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
Результат eZ\Publish\API\Repository\Values\Content\Section

Описание свойств

$service защищенное свойство

Aggregated service.
protected SectionService,eZ\Publish\API\Repository $service
Результат eZ\Publish\API\Repository\SectionService

$signalDispatcher защищенное свойство

SignalDispatcher.
protected SignalDispatcher,eZ\Publish\Core\SignalSlot $signalDispatcher
Результат SignalDispatcher