Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
OutputCache Class Reference

Public Member Functions

 setOptions (PatternOptions $options)
 Set options.
 
 start ($key)
 if there is a cached item with the given key display it's data and return true else start buffering output until end() is called or the script ends.
 
 end ()
 Stops buffering output, write buffered data to cache using the given key on start() and displays the buffer.
 
- Public Member Functions inherited from AbstractPattern
 setOptions (PatternOptions $options)
 Set pattern options.
 
 getOptions ()
 Get all pattern options.
 

Protected Attributes

 $keyStack = []
 
- Protected Attributes inherited from AbstractPattern
 $options
 

Member Function Documentation

end ( )

Stops buffering output, write buffered data to cache using the given key on start() and displays the buffer.

Exceptions
Exception\RuntimeExceptionif output cache not started or buffering not active
Returns
bool TRUE on success, FALSE on failure writing to cache
setOptions ( PatternOptions  $options)

Set options.

Parameters
PatternOptions$options
Returns
OutputCache
Exceptions
Exception\InvalidArgumentException

Implements PatternInterface.

start (   $key)

if there is a cached item with the given key display it's data and return true else start buffering output until end() is called or the script ends.

Parameters
string$keyKey
Exceptions
Exception\MissingKeyExceptionif key is missing
Returns
bool

Member Data Documentation

$keyStack = []
protected