PHP Class eZ\Publish\Core\REST\Common\Output\ValueObjectVisitor

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$requestParser eZ\Publish\Core\REST\Common\RequestParser URL handler for URL generation.
$router Symfony\Component\Routing\RouterInterface
$templateRouter Symfony\Component\Routing\RouterInterface

Public Methods

Method Description
setRequestParser ( eZ\Publish\Core\REST\Common\RequestParser $requestParser )
setRouter ( Symfony\Component\Routing\RouterInterface $router )
setTemplateRouter ( Symfony\Component\Routing\RouterInterface $templateRouter )
visit ( Visitor $visitor, Generator $generator, mixed $data ) Visit struct returned by controllers.

Protected Methods

Method Description
serializeBool ( Generator $generator, boolean $boolValue ) : mixed Returns a string representation for the given $boolValue.
serializeSortField ( integer $sortField ) : string Serializes the given $sortField to a string representation.
serializeSortOrder ( integer $sortOrder ) : string Serializes the given $sortOrder to a string representation.
visitDescriptionsList ( Generator $generator, array $descriptions ) Visits the given list of $descriptions.
visitLimitation ( Generator $generator, eZ\Publish\API\Repository\Values\User\Limitation $limitation ) Visits a limitation.
visitNamesList ( Generator $generator, array $names ) Visits the given list of $names.
visitTranslatedList ( Generator $generator, array $translatedElements, mixed $listName ) Visits a list of translated elements.

Method Details

serializeBool() protected method

Returns a string representation for the given $boolValue.
protected serializeBool ( Generator $generator, boolean $boolValue ) : mixed
$generator Generator
$boolValue boolean
return mixed

serializeSortField() protected method

Serializes the given $sortField to a string representation.
protected serializeSortField ( integer $sortField ) : string
$sortField integer
return string

serializeSortOrder() protected method

Serializes the given $sortOrder to a string representation.
protected serializeSortOrder ( integer $sortOrder ) : string
$sortOrder integer
return string

setRequestParser() public method

public setRequestParser ( eZ\Publish\Core\REST\Common\RequestParser $requestParser )
$requestParser eZ\Publish\Core\REST\Common\RequestParser

setRouter() public method

public setRouter ( Symfony\Component\Routing\RouterInterface $router )
$router Symfony\Component\Routing\RouterInterface

setTemplateRouter() public method

public setTemplateRouter ( Symfony\Component\Routing\RouterInterface $templateRouter )
$templateRouter Symfony\Component\Routing\RouterInterface

visit() abstract public method

Visit struct returned by controllers.
abstract public visit ( Visitor $visitor, Generator $generator, mixed $data )
$visitor Visitor
$generator Generator
$data mixed

visitDescriptionsList() protected method

Visits the given list of $descriptions.
protected visitDescriptionsList ( Generator $generator, array $descriptions )
$generator Generator
$descriptions array

visitLimitation() protected method

Visits a limitation.
protected visitLimitation ( Generator $generator, eZ\Publish\API\Repository\Values\User\Limitation $limitation )
$generator Generator
$limitation eZ\Publish\API\Repository\Values\User\Limitation

visitNamesList() protected method

Visits the given list of $names.
protected visitNamesList ( Generator $generator, array $names )
$generator Generator
$names array

visitTranslatedList() protected method

Visits a list of translated elements.
protected visitTranslatedList ( Generator $generator, array $translatedElements, mixed $listName )
$generator Generator
$translatedElements array
$listName mixed

Property Details

$requestParser protected property

URL handler for URL generation.
protected RequestParser,eZ\Publish\Core\REST\Common $requestParser
return eZ\Publish\Core\REST\Common\RequestParser

$router protected property

protected RouterInterface,Symfony\Component\Routing $router
return Symfony\Component\Routing\RouterInterface

$templateRouter protected property

protected RouterInterface,Symfony\Component\Routing $templateRouter
return Symfony\Component\Routing\RouterInterface