protected function visitLimitation(Generator $generator, Limitation $limitation)
    {
        $generator->startHashElement('limitation');

        $generator->startAttribute('identifier', $limitation->getIdentifier());
        $generator->endAttribute('identifier');

        $generator->startHashElement('values');
        $generator->startList('ref');

        foreach ($limitation->limitationValues as $limitationValue) {
            $generator->startObjectElement('ref');
            $generator->startAttribute('href', $limitationValue);
            $generator->endAttribute('href');
            $generator->endObjectElement('ref');
        }

        $generator->endList('ref');
        $generator->endHashElement('values');

        $generator->endHashElement('limitation');
    }
protected function visitLimitation(Generator $generator, Limitation $limitation)
    {
        $generator->startHashElement('limitation');

        $generator->startAttribute('identifier', $limitation->getIdentifier());
        $generator->endAttribute('identifier');

        $generator->startHashElement('values');
        $generator->startList('ref');

        foreach ($limitation->limitationValues as $limitationValue) {
            $generator->startObjectElement('ref');
            $generator->startAttribute('href', $limitationValue);
            $generator->endAttribute('href');
            $generator->endObjectElement('ref');
        }

        $generator->endList('ref');
        $generator->endHashElement('values');

        $generator->endHashElement('limitation');
    }
protected function visitLimitation ( Generator $ generator , Limitation $ limitation ) { $ generator -> startHashElement ( 'limitation' ) ; $ generator -> startAttribute ( 'identifier' , $ limitation -> getIdentifier ( ) ) ; $ generator -> endAttribute ( 'identifier' ) ; $ generator -> startHashElement ( 'values' ) ; $ generator -> startList ( 'ref' ) ; foreach ( $ limitation -> limitationValues as $ limitationValue ) { $ generator -> startObjectElement ( 'ref' ) ; $ generator -> startAttribute ( 'href' , $ limitationValue ) ; $ generator -> endAttribute ( 'href' ) ; $ generator -> endObjectElement ( 'ref' ) ; } $ generator -> endList ( 'ref' ) ; $ generator -> endHashElement ( 'values' ) ; $ generator -> endHashElement ( 'limitation' ) ; }
Visits a limitation.

@param \eZ\Publish\Core\REST\Common\Output\Generator $generator
@param \eZ\Publish\API\Repository\Values\User\Limitation $limitation
Visits a limitation .