jZone is a representation of a zone in an response content, in a html page.
A user zone should inherits from jZone. jZone provide a cache mecanism.
| package |
jelix |
|---|---|
| subpackage |
utils |
__construct( $params = array())
_callZone(string $name, string $method, array &$params) : mixed
stringzone selector
stringmethod name
arrayarguments for the method
mixedthe result returned by the method
_createContent() : string
zone parameters are automatically assigned in the template If you don't want a template, override it in your class
stringgenerated content
_execMetaFunc( $resp, $_file)
_getCacheFiles( $forCurrentResponse = true) : array
arraylist of filenames
_prepareTpl()
. Note : the template object is in the _tpl property
clear(string $name, array $params = array())
| since | 1.0b1 |
|---|---|
stringzone selector
arrayparameters for the zone
clearAll(string $name = '')
| since | 1.0b1 |
|---|---|
stringzone selector
clearCache()
get(string $name, array $params = array()) : string
| since | 1.0b1 |
|---|
stringzone selector
arrayparameters for the zone
stringthe generated content of the zone
getContent() : string
stringzone content
param(string $paramName, mixed $defaultValue = null) : mixed
stringthe parameter name
mixedthe parameter default value
mixedthe param value
_useCache : boolean
| var |
|---|
boolean
_cacheTimeout : integer
set to 0 if you want to delete cache manually.
| var |
|---|
integer
_params : array
| var |
|---|
array
_tplname : string
| var |
|---|
string
_tplOutputType : string
For example, the output type of a ajax response is text, but the template can contains html, so the template should be treated as html content, so you should put 'html' here. If empty, the output type will be the output type of the current response.
| var | |
|---|---|
| see |
string
_tpl : \jTpl
_cancelCache : boolean
| var |
|---|
boolean