Horde_Kolab_Storage_Cache::loadData PHP Method

loadData() public method

Retrieve data set.
public loadData ( string $data_id ) : string
$data_id string ID of the data set.
return string The cached data set.
    public function loadData($data_id)
    {
        return $this->_horde_cache->get($data_id, 0);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Retrieves the cached list data.
  *
  * @return mixed  The data of the object.
  */
 protected function _load()
 {
     if ($this->_data === false) {
         $this->_data = unserialize($this->_cache->loadData($this->getDataId()));
         if (!is_array($this->_data) || !isset($this->_data[self::SYNC]) || !isset($this->_data[self::VERSION]) || $this->_data[self::VERSION] != self::FORMAT_VERSION) {
             $this->_data = array();
         }
     }
 }