|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| _insertInternally ($object, $cacheId, $id1, $id2=null) | |
| add ($object, $parent) | |
| get ($cacheId, $id1, $id2=null) | |
| isCached ($cacheId, $id1, $id2=null) | |
| markComplete ($cacheId, $objectId) | |
Data Fields | |
| $_objectCache = array() | |
A cache for publication objects required during export.
Definition at line 17 of file PubObjectCache.inc.php.
| PubObjectCache::_insertInternally | ( | $object, | |
| $cacheId, | |||
| $id1, | |||
$id2 = null |
|||
| ) |
Insert an object into the cache.
| $object | object |
| $cacheId | string |
| $id1 | integer |
| $id2 | integer |
Definition at line 126 of file PubObjectCache.inc.php.
References isCached().
Referenced by add().
| PubObjectCache::add | ( | $object, | |
| $parent | |||
| ) |
Add a publishing object to the cache.
| $object | Issue|Submission|ArticleGalley |
| $parent | Submission|null Only required when adding a galley. |
Definition at line 33 of file PubObjectCache.inc.php.
References _insertInternally().
| PubObjectCache::get | ( | $cacheId, | |
| $id1, | |||
$id2 = null |
|||
| ) |
Retrieve (an) object(s) from the cache.
NB: You must check whether an object is in the cache before you try to retrieve it with this method.
| $cacheId | string |
| $id1 | integer |
| $id2 | integer |
Definition at line 77 of file PubObjectCache.inc.php.
References isCached().
| PubObjectCache::isCached | ( | $cacheId, | |
| $id1, | |||
$id2 = null |
|||
| ) |
Check whether a given object is in the cache.
| $cacheId | string |
| $id1 | integer |
| $id2 | integer |
Definition at line 97 of file PubObjectCache.inc.php.
Referenced by _insertInternally(), and get().
| PubObjectCache::markComplete | ( | $cacheId, | |
| $objectId | |||
| ) |
Marks the given cache id "complete", i.e. it contains all child objects for the given object id.
| $cacheId | |
| $objectId |
Definition at line 57 of file PubObjectCache.inc.php.
| PubObjectCache::$_objectCache = array() |
Definition at line 22 of file PubObjectCache.inc.php.