Class: LinkCache
Source Location: /blogs/inc/items/model/_linkcache.class.php
Class LinkCache
Class Overview
|
LinkCache Class Located in /blogs/inc/items/model/_linkcache.class.php [line 38] DataObjectCache | --LinkCacheAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
[ Top ]
Method Summary
| LinkCache | LinkCache() | Constructor |
| void | add() | Add a dataobject to the cache |
| array | &get_by_item_ID() | Returns links for a given Item |
| void | load_by_item_ID() | Load links for a given Item |
| void | load_by_item_list() | Load links for a given Item list |
[ Top ]
Properties
Methods
add [line 65]
|
Add a dataobject to the cache
Parameters:| &$Obj: |
Redefinition of:
- DataObjectCache::add()
- Add a dataobject to the cache
[ Top ]
get_by_item_ID [line 88]
|
Returns links for a given Item
Loads if necessary
Parameters:| integer | $item_ID: | item ID to load links for |
API Tags:
| Return: | of refs to Link objects |
Information Tags:
| Todo: | dh> does not get used anywhere (yet)? |
[ Top ]
load_by_item_ID [line 106]
|
Load links for a given Item
Optimization: If the Item happens to be in the current MainList, Links for the whole MainList will be cached.
Parameters:| integer | $item_ID: | item ID to load links for |
Information Tags:
| Todo: | cache Link targets before letting the Link constructor handle it |
[ Top ]
