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.
Exemplo 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();
         }
     }
 }