eZPublishCommunityProject  2012.12
eZ\Publish\Core\REST\Server\Controller\Section Class Reference

Section controller. More...

+ Inheritance diagram for eZ\Publish\Core\REST\Server\Controller\Section:
+ Collaboration diagram for eZ\Publish\Core\REST\Server\Controller\Section:

Public Member Functions

 __construct (SectionService $sectionService)
 Construct controller. More...
 
 createSection ()
 Create new section. More...
 
 deleteSection ()
 Delete a section by ID. More...
 
 listSections ()
 List sections. More...
 
 loadSection ()
 Loads a section. More...
 
 loadSectionByIdentifier ()
 Loads section by identifier. More...
 
 updateSection ()
 Updates a section. More...
 
- Public Member Functions inherited from eZ\Publish\Core\REST\Server\Controller
 setContainer (Container $container)
 
 setInputDispatcher (InputDispatcher $inputDispatcher)
 
 setRequest (HttpRequest $request)
 
 setUrlHandler (UrlHandler $urlHandler)
 

Protected Member Functions

 mapToUpdateStruct (SectionCreateStruct $createStruct)
 Maps a SectionCreateStruct to a SectionUpdateStruct. More...
 

Protected Attributes

 $sectionService
 
- Protected Attributes inherited from eZ\Publish\Core\REST\Server\Controller
 $container
 
 $inputDispatcher
 
 $request
 
 $urlHandler
 

Detailed Description

Section controller.

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Server\Controller\Section::__construct ( SectionService  $sectionService)

Construct controller.

Parameters
\eZ\Publish\API\Repository\SectionService$sectionService

Member Function Documentation

eZ\Publish\Core\REST\Server\Controller\Section::createSection ( )

Create new section.

Returns
eZ\Publish\Core\REST\Server\Controller\Section::deleteSection ( )

Delete a section by ID.

Returns
eZ\Publish\Core\REST\Server\Controller\Section::listSections ( )

List sections.

Returns
eZ\Publish\Core\REST\Server\Controller\Section::loadSection ( )

Loads a section.

Returns
eZ\Publish\Core\REST\Server\Controller\Section::loadSectionByIdentifier ( )

Loads section by identifier.

Returns

Referenced by eZ\Publish\Core\REST\Server\Controller\Section\listSections().

eZ\Publish\Core\REST\Server\Controller\Section::mapToUpdateStruct ( SectionCreateStruct  $createStruct)
protected

Maps a SectionCreateStruct to a SectionUpdateStruct.

Needed since both structs are encoded into the same media type on input.

Parameters
\eZ\Publish\API\Repository\Values\Content\SectionCreateStruct$createStruct
Returns

Referenced by eZ\Publish\Core\REST\Server\Controller\Section\updateSection().

eZ\Publish\Core\REST\Server\Controller\Section::updateSection ( )

Updates a section.

Returns

Member Data Documentation

eZ\Publish\Core\REST\Server\Controller\Section::$sectionService
protected

The documentation for this class was generated from the following file: