[ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
different smarty cache modes that we can use
Poids: | 262 lignes (8 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 2 fois |
Nécessite: | 0 fichiers |
SmartyView:: (10 méthodes):
SmartyView()
isCachingEnabled()
isCached()
isTemplateSetExist()
generateCacheId()
getSmartyViewId()
isTemplateHttpCacheEnabled()
getCacheTimeSeconds()
preProcessViewContents()
render()
Classe: SmartyView - X-Ref
\ingroup ViewSmartyView( $blogInfo, $templateName, $cachingEnabled = SMARTY_VIEW_CACHE_CHECK, $data = Array() X-Ref |
Constructor of the class param: blogInfo A valid BlogInfo object representing the blog to which this View belongs param: templateName A template name param: cachingEnabled either SMARTY_VIEW_CACHE_ENABLED, SMARTY_VIEW_CACHED_DISABLED, SMARTY_VIEW_CACHE_CHECK. param: data Data that will be used to generate a unique id for the cached view (it will be ignored |
isCachingEnabled() X-Ref |
returns true if caching is enabled for this particular view return: true if caching is enabled or not. |
isCached() X-Ref |
returns true if the current view is cached or false if it is not or caching is disabled return: true if view enabled or false otherwise |
isTemplateSetExist( $templateSetName ) X-Ref |
returns true if the current template set does exist or flase if it does not exist return: true if template set exist or false otherwise |
generateCacheId() X-Ref |
generates a unique identifier for this view. The cache identifier is generated based on the last parameter passed to the view constructor param: returns a unique id for this view |
getSmartyViewId() X-Ref |
returns this view's id return: this view's id |
isTemplateHttpCacheEnabled() X-Ref |
returns true whether the support for HTTP condiditional requests is enabled or not return: true if support is enabled or false otherwise |
getCacheTimeSeconds() X-Ref |
Pas de description |
preProcessViewContents( $content ) X-Ref |
Public method that allows view classes to do something to the content right before it is sent to the client. It takes the content itself as a string as the first parameter and is expected to return the final version of the content. This method is only called in case content needs to be returned. If HTTP caching is enabled and the caching logic determines that no new data needs to be sent (only a Last-Modified header in that case) then this method will <b>not</b> called. param: content the content generated after rendering the template but before being sent to the client return: The final version of the content |
render() X-Ref |
Renders the view using the Smarty template object that we created in the constructor. This method sends data to the client so it should be called as the last bit of code in our custom classes extending SmartyView. It has no paramaters and returns nothing. |
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |