/** * Test if a cache is available for the given id and (if yes) return it (false else) * * @param string $id Cache id * @param boolean $doNotTestCacheValidity If set to true, the cache validity won't be tested * @return string|false cached datas */ public function load($id, $doNotTestCacheValidity = false) { if (isset($this->_data[$id])) { return \App_Util_Object::cloneMe($this->_data[$id]); } return false; }
public function __clone() { $this->_data = \App_Util_Object::cloneMe($this->_data); }