JTemplate/1.5
From Joomla! Documentation
< JTemplate(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} JTemplate== | ||
| + | ===Description=== | ||
| + | {{Description:JTemplate}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JTemplate|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JTemplate|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::__construct/1.5|__construct]] | |[[JTemplate::__construct/1.5|__construct]] | ||
|Class constructor. | |Class constructor. | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::_loadTemplatesFromCache/1.5|_loadTemplatesFromCache]] | |[[JTemplate::_loadTemplatesFromCache/1.5|_loadTemplatesFromCache]] | ||
|load from template cache | |load from template cache | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::display/1.5|display]] | |[[JTemplate::display/1.5|display]] | ||
|Execute and display a the template. | |Execute and display a the template. | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::enableTemplateCache/1.5|enableTemplateCache]] | |[[JTemplate::enableTemplateCache/1.5|enableTemplateCache]] | ||
|enable a template cache | |enable a template cache | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::fetch/1.5|fetch]] | |[[JTemplate::fetch/1.5|fetch]] | ||
|Returns a parsed template. | |Returns a parsed template. | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::getInstance/1.5|getInstance]] | |[[JTemplate::getInstance/1.5|getInstance]] | ||
|Returns a reference to a global Template object, only creating it if it doesn't already exist. | |Returns a reference to a global Template object, only creating it if it doesn't already exist. | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::JTemplate/1.5|JTemplate]] | |[[JTemplate::JTemplate/1.5|JTemplate]] | ||
|A hack to support on PHP 4 Hint: descendant classes have no PHP4 class_name() constructors, so this constructor gets called first and calls the top-layer which (if present) should call parent::__construct(). | |A hack to support on PHP 4 Hint: descendant classes have no PHP4 class_name() constructors, so this constructor gets called first and calls the top-layer which (if present) should call parent::__construct(). | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::parse/1.5|parse]] | |[[JTemplate::parse/1.5|parse]] | ||
|Parse a file. | |Parse a file. | ||
|- | |- | ||
| + | |public | ||
|[[JTemplate::setTemplateCachePrefix/1.5|setTemplateCachePrefix]] | |[[JTemplate::setTemplateCachePrefix/1.5|setTemplateCachePrefix]] | ||
|Set the prefix of the template cache. | |Set the prefix of the template cache. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/template/template.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.template.template' );</source> | <source lang="php">jimport( 'joomla.template.template' );</source> | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|1.5}} '''JTemplate''' on [http://api.joomla.org/Joomla-Framework/Template/JTemplate.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JTemplate source code''' on [[jframework15:template/template.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Template/1.5|Template]] | ||
| + | * [[JTemplate|Other versions of JTemplate]] | ||
| + | {{SeeAlso:JTemplate}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JTemplate|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JTemplate|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 61: | Line 70: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JTemplate]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JTemplate]]</noinclude> | ||
Revision as of 18:13, 25 April 2011
JTemplate
Description
Description:JTemplate [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Class constructor. |
| public | _loadTemplatesFromCache | load from template cache |
| public | display | Execute and display a the template. |
| public | enableTemplateCache | enable a template cache |
| public | fetch | Returns a parsed template. |
| public | getInstance | Returns a reference to a global Template object, only creating it if it doesn't already exist. |
| public | JTemplate | A hack to support on PHP 4 Hint: descendant classes have no PHP4 class_name() constructors, so this constructor gets called first and calls the top-layer which (if present) should call parent::__construct(). |
| public | parse | Parse a file. |
| public | setTemplateCachePrefix | Set the prefix of the template cache. |
- Defined in libraries/joomla/template/template.php
Importing
jimport( 'joomla.template.template' );
See also
-
JTemplate on api.joomla.org
-
JTemplate source code on JoomlaCode
-
Subpackage Template
- Other versions of JTemplate
SeeAlso:JTemplate [Edit See Also]
User contributed notes
<CodeExamplesForm />