Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
O4DOIObjectCache Class Reference

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)
 

Detailed Description

A cache for publication objects required during O4DOI export.

Definition at line 17 of file O4DOIObjectCache.inc.php.

Member Function Documentation

O4DOIObjectCache::_insertInternally ( $object,
  $cacheId,
  $id1,
  $id2 = null 
)

Insert an object into the cache.

Parameters
$objectobject
$cacheIdstring
$id1integer
$id2integer

Definition at line 123 of file O4DOIObjectCache.inc.php.

References isCached().

Referenced by add().

O4DOIObjectCache::add ( $object,
$parent 
)

Add a publishing object to the cache.

Parameters
$objectIssue|PublishedArticle|ArticleGalley
$parentPublishedArticle|null Only required when adding a galley.

Definition at line 30 of file O4DOIObjectCache.inc.php.

References _insertInternally().

& O4DOIObjectCache::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.

Parameters
$cacheIdstring
$id1integer
$id2integer
Returns
mixed

Definition at line 74 of file O4DOIObjectCache.inc.php.

References isCached().

O4DOIObjectCache::isCached (   $cacheId,
  $id1,
  $id2 = null 
)

Check whether a given object is in the cache.

Parameters
$cacheIdstring
$id1integer
$id2integer
Returns
boolean

Definition at line 94 of file O4DOIObjectCache.inc.php.

Referenced by _insertInternally(), and get().

O4DOIObjectCache::markComplete (   $cacheId,
  $objectId 
)

Marks the given cache id "complete", i.e. it contains all child objects for the given object id.

Parameters
$cacheId
$objectId

Definition at line 54 of file O4DOIObjectCache.inc.php.


The documentation for this class was generated from the following file: