ChapterCache ChapterCache(
)
|
|
Constructor
Chapter &get_by_ID(
integer
$req_ID, [boolean
$halt_on_error = true], [boolean
$halt_on_empty = true], [integer|NULL
$subset_ID = NULL]
)
|
|
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: | Reference on cached object or false. |
Redefinition of:
- DataObjectCache::get_by_ID()
- Get an object from cache by ID
reference &get_by_urlname(
string
$req_urlname, [boolean
$halt_on_error = true]
)
|
|
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:
void load_subset(
integer|NULL
$subset_ID
)
|
|
Load a keyed subset of the cache
Parameters:
|
integer|NULL |
$subset_ID: |
NULL for all subsets |
void move_Chapter_subtree(
integer
$chapter_ID, integer
$src_collection_ID, integer
$dest_collection_ID
)
|
|
Move a chapter and its descendants to a different collection
Parameters:
|
integer |
$chapter_ID: |
|
|
integer |
$src_collection_ID: |
|
|
integer |
$dest_collection_ID: |
|
void &new_obj(
[object|NULL
$row = NULL], [integer|NULL
$subset_ID = NULL]
)
|
|
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
void recurse_move_subtree(
Chapter
&$Chapter, array
&$list_array
)
|
|
Support function for move_Chapter_subtree
Parameters:
|
Chapter |
&$Chapter: |
|
|
array |
&$list_array: |
|