/** * Get the cacheId for the organization * * @return string */ private function _getCacheId() { return \MUtil_String::toCacheId(GEMS_PROJECT_NAME . '__' . get_class($this) . '__' . $this->_id); }
/** * * @param \Zend_Cache_Core $cache * @param \Zend_Db_Adapter_Abstract $db * @param \Gems_Loader $loader */ public function __construct(\Zend_Cache_Core $cache, \Zend_Db_Adapter_Abstract $db, \Gems_Loader $loader) { $this->_cache = $cache; $this->_cacheId = \MUtil_String::toCacheId(GEMS_PROJECT_NAME . APPLICATION_PATH . '__gems__' . __CLASS__); $this->_db = $db; $this->_loader = $loader; $this->_sessionStore = new \Zend_Session_Namespace($this->_cacheId); $this->_actions = $this->_getActionsCache(); if (false === $this->_actions) { $this->_actions = $this->_getActionsDb(); } if (!self::$_log) { self::$_log = $this; } }