PHP Class Sulu\Bundle\ContentBundle\Preview\PageObjectProvider

Inheritance: implements Sulu\Bundle\PreviewBundle\Preview\Object\PreviewObjectProviderInterface
Exibir arquivo Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, JMS\Serializer\SerializerInterface $serializer )
deserialize ( $serializedObject, $objectClass )
getId ( BasePageDocument $object )
getObject ( $id, $locale )
serialize ( BasePageDocument $object )
setContext ( BasePageDocument $object, $locale, array $context )
setValues ( BasePageDocument $object, $locale, array $data )

Method Details

__construct() public method

public __construct ( Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, JMS\Serializer\SerializerInterface $serializer )
$documentManager Sulu\Component\DocumentManager\DocumentManagerInterface
$serializer JMS\Serializer\SerializerInterface

deserialize() public method

public deserialize ( $serializedObject, $objectClass )

getId() public method

public getId ( BasePageDocument $object )
$object Sulu\Bundle\ContentBundle\Document\BasePageDocument

getObject() public method

public getObject ( $id, $locale )

serialize() public method

public serialize ( BasePageDocument $object )
$object Sulu\Bundle\ContentBundle\Document\BasePageDocument

setContext() public method

public setContext ( BasePageDocument $object, $locale, array $context )
$object Sulu\Bundle\ContentBundle\Document\BasePageDocument
$context array

setValues() public method

public setValues ( BasePageDocument $object, $locale, array $data )
$object Sulu\Bundle\ContentBundle\Document\BasePageDocument
$data array