PHP Класс eZ\Publish\Core\REST\Server\Controller\Section

Наследование: extends eZ\Publish\Core\REST\Server\Controller
Показать файл Открыть проект

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

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

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

Метод Описание
__construct ( eZ\Publish\API\Repository\SectionService $sectionService ) Construct controller.
createSection ( Request $request ) : CreatedSection Create new section.
deleteSection ( $sectionId ) : eZ\Publish\Core\REST\Server\Values\NoContent Delete a section by ID.
listSections ( Request $request ) : SectionList List sections.
loadSection ( $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section Loads a section.
loadSectionByIdentifier ( Request $request ) : eZ\Publish\API\Repository\Values\Content\Section Loads section by identifier.
updateSection ( $sectionId, Request $request ) : eZ\Publish\API\Repository\Values\Content\Section Updates a section.

Защищенные методы

Метод Описание
mapToUpdateStruct ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $createStruct ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct Maps a SectionCreateStruct to a SectionUpdateStruct.

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

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

Construct controller.
public __construct ( eZ\Publish\API\Repository\SectionService $sectionService )
$sectionService eZ\Publish\API\Repository\SectionService

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

Create new section.
public createSection ( Request $request ) : CreatedSection
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\CreatedSection

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

Delete a section by ID.
public deleteSection ( $sectionId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$sectionId
Результат eZ\Publish\Core\REST\Server\Values\NoContent

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

List sections.
public listSections ( Request $request ) : SectionList
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\Core\REST\Server\Values\SectionList

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

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

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

Loads section by identifier.
public loadSectionByIdentifier ( Request $request ) : eZ\Publish\API\Repository\Values\Content\Section
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\API\Repository\Values\Content\Section

mapToUpdateStruct() защищенный Метод

Needed since both structs are encoded into the same media type on input.
protected mapToUpdateStruct ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $createStruct ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct
$createStruct eZ\Publish\API\Repository\Values\Content\SectionCreateStruct
Результат eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct

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

Updates a section.
public updateSection ( $sectionId, Request $request ) : eZ\Publish\API\Repository\Values\Content\Section
$sectionId
$request Symfony\Component\HttpFoundation\Request
Результат eZ\Publish\API\Repository\Values\Content\Section

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

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

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