API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JTemplate::__construct | ( | ) |
Class constructor
The type influences the tags you are using in your templates.
protected
JTemplate::_loadTemplatesFromCache | ( | $ | input, |
&$ | reader, | ||
$ | options, | ||
$ | key | ||
) |
load from template cache
private
string | name of the input (filename, shm segment, etc.) |
string | driver that is used as reader, you may also pass a Reader object |
array | options for the reader |
string | cache key |
get modification time
Réimplémentée à partir de patTemplate.
JTemplate::display | ( | $ | name | ) |
Execute and display a the template
public
string | $name | The name of the template |
Références $name.
JTemplate::enableTemplateCache | ( | $ | handler, |
$ | folder | ||
) |
enable a template cache
A template cache will improve performace, as the templates do not have to be read on each request.
public
string | name of the template cache |
string | folder to store the cached files |
Références $folder.
Référencé par JFactory::_createTemplate().
JTemplate::fetch | ( | $ | name | ) |
Returns a parsed template
public
string | $name | The name of the template |
error happened
Références $name, et patErrorManager::isError().
& JTemplate::getInstance | ( | $ | type = 'html' | ) |
Returns a reference to a global Template object, only creating it if it doesn't already exist.
string | $type | (either html or tex) |
Références $type.
JTemplate::JTemplate | ( | ) |
A hack to support __construct() on PHP 4 Hint: descendant classes have no PHP4 class_name() constructors, so this constructor gets called first and calls the top-layer __construct() which (if present) should call parent::__construct()
JTemplate::parse | ( | $ | file | ) |
JTemplate::setTemplateCachePrefix | ( | $ | prefix | ) |
Set the prefix of the template cache
public
string | the prefix of the template cache |
JTemplate::$_file = '' |