TemplateCache TemplateCache(
)
|
|
Constructor
Add object to cache, handling our own indices.
Parameters:
API Tags:
| Return: | True on add, false if already existing. |
Redefinition of:
- DataObjectCache::add()
- Add a dataobject to the cache
Template &get_by_folder(
string
$req_folder, [boolean
$halt_on_error = true]
)
|
|
Get an object from cache by its folder name.
Load the object into cache, if necessary.
This is used to get a template for an RSS/Aom type; also to check if a template is installed.
Parameters:
|
string |
$req_folder: |
folder name of object to load |
|
boolean |
$halt_on_error: |
false if you want to return false on error |
API Tags:
| Return: | A Template object on success, false on failure (may also halt!) |
void load_by_type(
string
$type
)
|
|
Load the cache by type
Parameters:
void &new_obj(
[
$row = NULL], [
$template_folder = NULL]
)
|
|
Instanciate a new object within this cache
Parameters:
Redefinition of:
- DataObjectCache::new_obj()
- Instanciate a new object within this cache