Constants

STORAGE

STORAGE

Cache storage service name

Properties

$cache

$cache : \Zend\Cache\Storage\StorageInterface

Type

\Zend\Cache\Storage\StorageInterface

$eventIdentifier

$eventIdentifier : string

Type

string

Methods

__construct()

__construct(\Zend\Cache\Storage\StorageInterface|object  $cache) 

Parameters

\Zend\Cache\Storage\StorageInterface|object $cache

save()

save(\WebinoDraw\Event\DrawEvent  $event) : self

Save nodes XHTML to the cache

Parameters

\WebinoDraw\Event\DrawEvent $event

Returns

self

load()

load(\WebinoDraw\Event\DrawEvent  $event) : boolean

Load nodes XHTML from the cache

Parameters

\WebinoDraw\Event\DrawEvent $event

Returns

boolean —

true = loaded

createCacheKey()

createCacheKey(\DOMNode  $node, \WebinoDraw\Event\DrawEvent  $event) : string

Parameters

\DOMNode $node
\WebinoDraw\Event\DrawEvent $event

Returns

string

cacheKeyTrigger()

cacheKeyTrigger(array  $triggers, \WebinoDraw\Event\DrawEvent  $event) : string

Parameters

array $triggers
\WebinoDraw\Event\DrawEvent $event

Returns

string

nodeToCache()

nodeToCache(\ArrayObject  $spec, \WebinoDraw\Dom\Element|\WebinoDraw\Dom\Text  $node) : \WebinoDraw\Cache\DomNode

Select node to cache

Parameters

\ArrayObject $spec
\WebinoDraw\Dom\Element|\WebinoDraw\Dom\Text $node

Returns

\WebinoDraw\Cache\DomNode

createOnReplaceHandler()

createOnReplaceHandler() : \Closure

Returns

\Closure