Ejemplo n.º 1
0
 /**
  * Get Status
  *
  * This is responsible for retrieving the status information of a certain
  * record.
  *
  * @param string $recordId The record id to retrieve the holdings for
  *
  * @return mixed     On success, an associative array with the following keys:
  * id, availability (boolean), status, location, reserve, callnumber; on
  * failure, a PEAR_Error.
  * @access public
  */
 public function getStatus($recordId, $forSearch = false)
 {
     /** @var Memcache $memCache */
     global $memCache;
     $key = 'record_status_' . $recordId . '_' . $forSearch;
     $cachedValue = $memCache->get($key);
     if ($cachedValue == false || isset($_REQUEST['reload'])) {
         global $configArray;
         $cachedValue = $this->driver->getStatus($recordId, $forSearch);
         $memCache->add($key, $cachedValue, 0, $configArray['Caching']['item_data']);
     }
     return $cachedValue;
 }
Ejemplo n.º 2
0
 /**
  * Get Status
  *
  * This is responsible for retrieving the status information of a certain
  * record.
  *
  * @param string $recordId The record id to retrieve the holdings for
  *
  * @return mixed     On success, an associative array with the following keys:
  * id, availability (boolean), status, location, reserve, callnumber; on
  * failure, a PEAR_Error.
  * @access public
  */
 public function getStatus($recordId, $forSearch = false)
 {
     return $this->driver->getStatus($recordId, $forSearch);
 }