PHP Интерфейс Sulu\Bundle\PreviewBundle\Preview\Object\PreviewObjectProviderInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

deserialize() публичный Метод

Deserializes object to string.
public deserialize ( string $serializedObject, string $objectClass ) : mixed
$serializedObject string
$objectClass string
Результат mixed

getId() публичный Метод

Returns id for given object.
public getId ( mixed $object ) : string
$object mixed
Результат string

getObject() публичный Метод

Returns object with given id and locale.
public getObject ( string $id, string $locale ) : mixed
$id string
$locale string
Результат mixed

serialize() публичный Метод

Serializes object to string.
public serialize ( mixed $object ) : string
$object mixed
Результат string

setContext() публичный Метод

Set given context to the object.
public setContext ( $object, string $locale, array $context ) : mixed
$object
$locale string
$context array
Результат mixed New object which will be saved for the session

setValues() публичный Метод

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