Пример #1
0
 public function getCulture(array $options = array())
 {
     // get culture based on i18n fallback criteria
     if ($settingI18n = QubitSettingI18n::getByIdAndCulture($this->id, sfContext::getInstance()->user->getCulture())) {
         return $settingI18n->getCulture();
     }
 }
Пример #2
0
 public static function getsettingI18nsById($id, array $options = array())
 {
     $criteria = new Criteria();
     self::addsettingI18nsCriteriaById($criteria, $id);
     return QubitSettingI18n::get($criteria, $options);
 }