PHP Class eZ\Publish\Core\REST\Client\Output\ValueObjectVisitor\LocationCreateStruct

Inheritance: extends eZ\Publish\Core\REST\Common\Output\ValueObjectVisitor
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\LocationService $locationService )
visit ( Visitor $visitor, Generator $generator, eZ\Publish\API\Repository\Values\Content\LocationCreateStruct $data ) Visit struct returned by controllers.

Protected Methods

Method Description
getSortFieldName ( integer $sortField ) : string Returns the '*' part of SORT_FIELD_* constant name.

Private Methods

Method Description
addParentLocationHref ( Generator $generator, $parentLocationId )

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\LocationService $locationService )
$locationService eZ\Publish\API\Repository\LocationService

getSortFieldName() protected method

Returns the '*' part of SORT_FIELD_* constant name.
protected getSortFieldName ( integer $sortField ) : string
$sortField integer
return string

visit() public method

Visit struct returned by controllers.
public visit ( Visitor $visitor, Generator $generator, eZ\Publish\API\Repository\Values\Content\LocationCreateStruct $data )
$visitor eZ\Publish\Core\REST\Common\Output\Visitor
$generator eZ\Publish\Core\REST\Common\Output\Generator
$data eZ\Publish\API\Repository\Values\Content\LocationCreateStruct