Esempio n. 1
0
 protected function loadFileSetting($name, Gpf_Io_File $file)
 {
     try {
         $this->cache[$name] = $this->file->getSetting($name, $file);
     } catch (Gpf_Settings_UnknownSettingException $e) {
         $this->cache[$name] = $this->defines->getDefaultValue($name);
     }
 }
Esempio n. 2
0
 private function getAccountId($name)
 {
     if ($this->settings->isAccountSetting($name)) {
         try {
             return Gpf_Session::getAuthUser()->getAccountId();
         } catch (Gpf_Exception $e) {
         }
         return Gpf_Db_Account::DEFAULT_ACCOUNT_ID;
     }
     return null;
 }