PHP Class Sulu\Bundle\PreviewBundle\Preview\Preview

Inheritance: implements Sulu\Bundle\PreviewBundle\Preview\PreviewInterface
Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Méthode Description
__construct ( array $objectProviders, Doctrine\Common\Cache\Cache $dataCache, Sulu\Bundle\PreviewBundle\Preview\Renderer\PreviewRendererInterface $renderer, integer $cacheLifeTime = 3600 )
exists ( $token )
render ( $token, $webspaceKey, $locale )
start ( $objectClass, $id, $userId, $webspaceKey, $locale, array $data = [] )
stop ( $token )
update ( $token, $webspaceKey, $locale, array $data )
updateContext ( $token, $webspaceKey, $locale, array $context, array $data )

Méthodes protégées

Méthode Description
fetch ( string $token ) : mixed Fetch the object.
getProvider ( string $objectClass ) : mixed | Sulu\Bundle\PreviewBundle\Preview\Object\PreviewObjectProviderInterface Returns provider for given object-class.
save ( string $token, string $object ) Save the object.

Method Details

__construct() public méthode

public __construct ( array $objectProviders, Doctrine\Common\Cache\Cache $dataCache, Sulu\Bundle\PreviewBundle\Preview\Renderer\PreviewRendererInterface $renderer, integer $cacheLifeTime = 3600 )
$objectProviders array
$dataCache Doctrine\Common\Cache\Cache
$renderer Sulu\Bundle\PreviewBundle\Preview\Renderer\PreviewRendererInterface
$cacheLifeTime integer

exists() public méthode

public exists ( $token )

fetch() protected méthode

Fetch the object.
protected fetch ( string $token ) : mixed
$token string
Résultat mixed

getProvider() protected méthode

Returns provider for given object-class.
protected getProvider ( string $objectClass ) : mixed | Sulu\Bundle\PreviewBundle\Preview\Object\PreviewObjectProviderInterface
$objectClass string
Résultat mixed | Sulu\Bundle\PreviewBundle\Preview\Object\PreviewObjectProviderInterface

render() public méthode

public render ( $token, $webspaceKey, $locale )

save() protected méthode

Save the object.
protected save ( string $token, string $object )
$token string
$object string

start() public méthode

public start ( $objectClass, $id, $userId, $webspaceKey, $locale, array $data = [] )
$data array

stop() public méthode

public stop ( $token )

update() public méthode

public update ( $token, $webspaceKey, $locale, array $data )
$data array

updateContext() public méthode

public updateContext ( $token, $webspaceKey, $locale, array $context, array $data )
$context array
$data array