PHP Interface Sulu\Bundle\PreviewBundle\Preview\Object\PreviewObjectProviderInterface

Show file Open project: sulu/sulu

Public Methods

Method Description
deserialize ( string $serializedObject, string $objectClass ) : mixed Deserializes object to string.
getId ( mixed $object ) : string Returns id for given object.
getObject ( string $id, string $locale ) : mixed Returns object with given id and locale.
serialize ( mixed $object ) : string Serializes object to string.
setContext ( $object, string $locale, array $context ) : mixed Set given context to the object.
setValues ( $object, string $locale, array $data ) Set given data to the object.

Method Details

deserialize() public method

Deserializes object to string.
public deserialize ( string $serializedObject, string $objectClass ) : mixed
$serializedObject string
$objectClass string
return mixed

getId() public method

Returns id for given object.
public getId ( mixed $object ) : string
$object mixed
return string

getObject() public method

Returns object with given id and locale.
public getObject ( string $id, string $locale ) : mixed
$id string
$locale string
return mixed

serialize() public method

Serializes object to string.
public serialize ( mixed $object ) : string
$object mixed
return string

setContext() public method

Set given context to the object.
public setContext ( $object, string $locale, array $context ) : mixed
$object
$locale string
$context array
return mixed New object which will be saved for the session

setValues() public method

Set given data to the object.
public setValues ( $object, string $locale, array $data )
$object
$locale string
$data array