Property | Type | Description | |
---|---|---|---|
$sectionService | eZ\Publish\API\Repository\SectionService | Section service. |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\SectionService $sectionService ) | Construct controller. | |
createSection ( |
Create new section. | |
deleteSection ( $sectionId ) : eZ\Publish\Core\REST\Server\Values\NoContent | Delete a section by ID. | |
listSections ( |
List sections. | |
loadSection ( $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section | Loads a section. | |
loadSectionByIdentifier ( |
Loads section by identifier. | |
updateSection ( $sectionId, |
Updates a section. |
Method | Description | |
---|---|---|
mapToUpdateStruct ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $createStruct ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct | Maps a SectionCreateStruct to a SectionUpdateStruct. |
public __construct ( eZ\Publish\API\Repository\SectionService $sectionService ) | ||
$sectionService | eZ\Publish\API\Repository\SectionService |
public createSection ( |
||
$request | ||
return |
public deleteSection ( $sectionId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$sectionId | ||
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public listSections ( |
||
$request | ||
return |
public loadSection ( $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section | ||
$sectionId | ||
return | eZ\Publish\API\Repository\Values\Content\Section |
public loadSectionByIdentifier ( |
||
$request | ||
return | eZ\Publish\API\Repository\Values\Content\Section |
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 | |
return | eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct |
public updateSection ( $sectionId, |
||
$sectionId | ||
$request | ||
return | eZ\Publish\API\Repository\Values\Content\Section |