'User_Profile_')); protected $_loginPageQuery = array(null, array('type' => 'User_Login_')); public static function getInstance() { if (null === self::$_instance) { self::$_instance = new self(); } return self::$_instance; } public function getSuMode() { return (bool) $this->getSessionValue('suModeEnabled'); } public function setSuMode($flag = true) { $this->setSessionValue('suModeEnabled', (bool)$flag); } public function authenticate(Zend_Auth_Adapter_Interface $adapter) { $isStorageEmpty = !$this->getStorage()->read(); $result = parent::authenticate($adapter); if (!$result->isValid() || $isStorageEmpty) { App_Report_AdminView::refreshReportAccessFile(); } else { App_Report_View::createReportArchiveSymlink($this->getData('idSchool')); } return $result; } }