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.
Located in /utils/jZone.class.php (line 24)
Class | Description |
---|---|
check_installZone | a zone to display a default start page with results of the installation check |
cache timeout (seconds).
set to 0 if you want to delete cache manually.
When the cache system is activated, says if the cache should be generated or not you set it to false in _createContent or _prepareTpl, in specific case.
list of zone parameters
the jtpl object created automatically by jZone if you set up _tplname
you can use it in _prepareTpl
template selector
If you want to use a template for your zone, set its name in this property in your zone, and override _prepareTpl. Else, keep it to empty string, and override _createContent
says the type of the output of the template, in the case of the result of the zone is not used in a response in the same output type.
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.
If we're using cache on this zone
You should override it in your class if you want activate the cache
clear a specific cache of a zone
clear all zone cache or all cache of a specific zone
get the content of a zone
get the zone content
Return the cache content if it is activated and if it's exists, or call _createContent
Same as param(), included for compatibility with older versions
gets the value of a parameter, if defined. Returns the default value instead.
create the content of the zone by default, it uses a template, and so prepare a jtpl object to use in _prepareTpl.
zone parameters are automatically assigned in the template If you don't want a template, override it in your class
override this method if you want do additionnal thing on the template object
Example : do access to a dao object.. Note : the template object is in the _tpl property
Documentation generated on Thu, 19 Sep 2013 00:08:10 +0200 by phpDocumentor 1.4.3