Zend Framework
3.0
|
Public Member Functions | |
start ($pageId=null) | |
Start the cache. | |
set ($content, $pageId=null) | |
Write content to page identity. | |
get ($pageId=null) | |
Get from cache. | |
has ($pageId=null) | |
Checks if a cache with given id exists. | |
remove ($pageId=null) | |
Remove from cache. | |
clearByGlob ($pattern= '**') | |
Clear cached pages matching glob pattern. | |
getFilename ($pageId=null) | |
Returns the generated file name. | |
Public Member Functions inherited from AbstractPattern | |
setOptions (PatternOptions $options) | |
Set pattern options. | |
getOptions () | |
Get all pattern options. | |
Protected Member Functions | |
detectPageId () | |
Determine the page to save from the request. | |
pageId2Filename ($pageId) | |
Get filename for page id. | |
pageId2Path ($pageId) | |
Get path for page id. | |
putFileContent ($file, $data) | |
Write content to a file. | |
createDirectoryStructure ($pathname) | |
Creates directory if not already done. | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractPattern | |
$options | |
clearByGlob | ( | $pattern = '**' | ) |
Clear cached pages matching glob pattern.
string | $pattern |
Exception\LogicException |
|
protected |
Creates directory if not already done.
string | $pathname |
Exception\RuntimeException |
|
protected |
Determine the page to save from the request.
Exception\RuntimeException |
get | ( | $pageId = null | ) |
Get from cache.
null | string | $pageId |
Exception\LogicException | |
Exception\RuntimeException |
getFilename | ( | $pageId = null | ) |
Returns the generated file name.
null | string | $pageId |
has | ( | $pageId = null | ) |
Checks if a cache with given id exists.
null | string | $pageId |
Exception\LogicException |
|
protected |
Get filename for page id.
string | $pageId |
|
protected |
Get path for page id.
string | $pageId |
|
protected |
Write content to a file.
string | $file | File complete path |
string | $data | Data to write |
Exception\RuntimeException |
remove | ( | $pageId = null | ) |
Remove from cache.
null | string | $pageId |
Exception\LogicException | |
Exception\RuntimeException |
set | ( | $content, | |
$pageId = null |
|||
) |
Write content to page identity.
string | $content | |
null | string | $pageId |
Exception\LogicException |
start | ( | $pageId = null | ) |
Start the cache.
string | $pageId | Page identifier |