/** * @param string $key * @return Engine_Package_Manifest */ public function __get($key) { if (!$this->__isset($key)) { if (isset($this->_indexByGuid[$key])) { $key = $this->_indexByGuid[$key]; } else { return null; } //$a = 1; } $value = parent::__get($key); //if( $a ) { // var_dump($value);die(); //} // Only packages if (!$value instanceof Engine_Package_Manifest) { //var_dump($key); //var_dump($this->_data); //var_dump($value); //var_dump(scandir(APPLICATION_PATH . '/temporary/cache')); //die(); throw new Engine_Package_Manager_Exception('Problem loading package from cache'); } return $value; }
/** * @param string $key * @return Engine_Package_Manager_Operation_Abstract */ public function __get($key) { $oldKey = $key; if (!$this->__isset($key) && isset($this->_indexByGuid[$key])) { $key = $this->_indexByGuid[$key]; } $value = parent::__get($key); // Only operations if (!$value instanceof Engine_Package_Manager_Operation_Abstract) { throw new Engine_Package_Manager_Exception('Problem loading operation from cache'); } $value->setManager($this->_manager); return $value; }