Implements interfaces:
represents a Dwoo template contained in a string
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
This file is released under the LGPL "GNU Lesser General Public License" More information can be found here: http://www.gnu.org/copyleft/lesser.html
Located in /Dwoo/Template/String.php (line 22)
| Class | Description |
|---|---|
| Dwoo_Template_File | represents a Dwoo template contained in a file |
caches the results of the file checks to save some time when the same templates is rendered several times
template cache id, if not provided in the constructor, it is set to the md4 hash of the request_uri. it is however highly recommended to provide one that will fit your needs.
in all cases, the compilation id is prepended to the cache id to separate templates with similar cache ids from one another
validity duration of the generated cache file (in seconds)
set to -1 for infinite cache, 0 to disable and null to inherit the Dwoo instance's cache time
boolean flag that defines whether the compilation should be enforced (once) or not use this if you have issues with the compiled templates not being updated but if you do need this it's most likely that you should file a bug report
template compilation id
holds the compiler that built this template
template name
returns false as this template type does not support inclusions
creates a template from a string
caches the provided output into the cache file
clears the cached template if it's older than the given time
marks this template as compile-forced, which means it will be recompiled even if it
was already saved and wasn't modified since the last compilation. do not use this in production, it's only meant to be used in development (and the development of dwoo particularly)
returns the cached template output file name, true if it's cache-able but not cached or false if it's not cached
returns the full cached file name and assigns a default value to it if required
returns the cache duration for this template
defaults to null if it was not provided
returns the full compiled file name and assigns a default value to it if required
returns the compiled template file name
returns the compiler used by this template, if it was just compiled, or null
returns the template name
returns the resource identifier for this template, false here as strings don't have identifiers
returns the resource name for this template class
returns the template source of this template
returns an unique value identifying the current version of this template, in this case it's the md4 hash of the content
ensures the given path exists
sets the cache duration for this template
can be used to set it after the object is created if you did not provide it in the constructor
Documentation generated on Sun, 03 Aug 2008 15:12:45 +0200 by phpDocumentor 1.4.0