Class: ChapterCache
Source Location: /blogs/inc/chapters/model/_chaptercache.class.php
Class ChapterCache
Class Overview
|
ChapterCache Class Located in /blogs/inc/chapters/model/_chaptercache.class.php [line 35] DataObjectCache | --GenericCache | --GenericCategoryCache | --ChapterCacheAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
[ Top ]
Property Summary
Method Summary
| ChapterCache | ChapterCache() | Constructor |
| void | clear() | Empty/reset the cache |
| reference | &get_by_ID() | Get an object from cache by ID |
| reference | &get_by_urlname() | Get an object from cache by urlname |
| void | load_subset() | Load a keyed subset of the cache |
| void | move_Chapter_subtree() | |
| void | &new_obj() | Instanciate a new object within this cache |
| void | recurse_move_subtree() | Support function |
[ Top ]
Methods
clear [line 55]
|
Empty/reset the cache
Redefinition of:
- GenericCategoryCache::clear()
- Empty/reset the cache
[ Top ]
get_by_ID [line 73]
|
Get an object from cache by ID
Load the cache if necessary (all at once if allowed).
Parameters:| integer | $req_ID: | ID of object to load |
| boolean | $halt_on_error: | true if function should die on error |
| boolean | $halt_on_empty: | true if function should die on empty/null |
| integer|NULL | $subset_ID: | NULL for all subsets |
API Tags:
| Return: | on cached object |
Redefinition of:
- DataObjectCache::get_by_ID()
- Get an object from cache by ID
[ Top ]
get_by_urlname [line 146]
|
Get an object from cache by urlname
Load the cache if necessary (all at once if allowed).
Parameters:| string | $req_urlname: | ID of object to load |
| boolean | $halt_on_error: | true if function should die on error |
API Tags:
| Return: | on cached object |
[ Top ]
load_subset [line 187]
|
Load a keyed subset of the cache
Parameters:| integer|NULL | $subset_ID: | NULL for all subsets |
[ Top ]
move_Chapter_subtree [line 222]
|
| integer | $chapter_ID: | |
| integer | $src_collection_ID: | |
| integer | $dest_collection_ID: |
[ Top ]
new_obj [line 290]
|
Instanciate a new object within this cache
Parameters:| object|NULL | $row: | |
| integer|NULL | $subset_ID: | subset to use for new object |
Redefinition of:
- GenericCache::new_obj()
- Instanciate a new object within this cache
[ Top ]
