[ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
default permissions used to create temporary template folders. Seems like Smarty creates them as 0771 but we have been adviced to create them as 775 as per this discussion: http://bugs.plogworld.net/view.php?id=253
Poids: | 322 lignes (13 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 1 fois |
Nécessite: | 0 fichiers |
TemplateService:: (9 méthodes):
TemplateService()
Template()
customTemplate()
AdminTemplate()
CachedTemplate()
_getTemplateFileInfo()
PluginTemplate()
PluginCachedTemplate()
_configureTemplateSettings()
Classe: TemplateService - X-Ref
\ingroup TemplateTemplateService() X-Ref |
Constructor |
Template( $templateName, $layout, $blogInfo = null ) X-Ref |
Generates a Template object for the given template name. This fuction does <b>not</b> require the full path to the file!! param: templateName The name of the template, it is not necessary to provide param: layout A predefined layout style, which corresponds with the name of a param: blogInfo If this parameter is not null, then it will be used to locate return: A Template object representing the template file we asked for. |
customTemplate( $templateName, $layout, $cached = false ) X-Ref |
Returns a Template or CachedTemplate object pointing to a custom template. param: templateName The name of the template, it is not necessary to provide param: layout A predefined layout style, which corresponds with the name of a param: cached Whether the custom template should be cached or not (this will affect return: a Template or CachedTemplate object, depending on whether |
AdminTemplate( $templateName, $blogInfo = null ) X-Ref |
returns a template from the admin folder. It still uses TemplateService::Template but exports additional information to the template such as the base template path so that we can use {$admintemplatepath} from Smarty to get the right path, etc. param: templateName The name of the template, it is not necessary to provide param: blogInfo return: A Template object pointing to a template from the templates/admin/ folder |
CachedTemplate( $templateName, $layout, $blogInfo = null ) X-Ref |
returns a CachedTemplate object, which works in exactly the same way as a Template object but its contents will be cached as soon as they are generated. The lifetime of cached contents is controlled via the 'template_cache_lifetime' configuration parameter, but contents will be regenerated automatically as soon as CacheControll::resetBlogCache() is called. param: templateName The name of the template, it is not necessary to provide param: layout A predefined layout style, which corresponds with the name of a param: blogInfo return: a CachedTemplate object pointing to the right .template file in disk |
_getTemplateFileInfo( $templateName, $layout, $blogInfo ) X-Ref |
PluginTemplate( $pluginId, $templateName, $blogInfo = null ) X-Ref |
Returns a Template object loaded from a plugin template Plugins are different in the sense that they store their templates in the plugins/xxx/templates, where 'xxx' is the plugin identifier param: pluginId The id of the plugin, which matches the name of a folder param: templateName Name of the template, without the .template extension param: blogInfo return: a Template object |
PluginCachedTemplate( $pluginId, $templateName, $blogInfo = null ) X-Ref |
Returns a CachedTemplate object loaded from a plugin template Plugins are different in the sense that they store their templates in the plugins/xxx/templates, where 'xxx' is the plugin identifier param: pluginId The id of the plugin, which matches the name of a folder param: templateName Name of the template, without the .template extension param: blogInfo return: a CachedTemplate object |
_configureTemplateSettings( $t, $blogInfo, $layout = "" ) X-Ref |
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |