PHP 클래스 eZ\Publish\Core\REST\Server\Controller\Section

상속: extends eZ\Publish\Core\REST\Server\Controller
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$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