PHP 인터페이스 Sulu\Bundle\PreviewBundle\Preview\Object\PreviewObjectProviderInterface

파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
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