Esempio n. 1
0
 /**
  * Return the locale list for checking allowed locales
  *
  * Lazy loads one if none set
  *
  * @return array
  */
 public function getLocaleList()
 {
     if (!$this->localeList) {
         $this->setLocaleList(LocaleUtils::getList());
     }
     return $this->localeList;
 }
Esempio n. 2
0
 /**
  * Return the locale list for checking allowed locales
  *
  * Lazy loads one if none set
  *
  * @return array
  */
 public function getLocaleList()
 {
     if (null === $this->localeList) {
         $this->setLocaleList(LocaleUtils::getNamedList(Locale::getDefault()));
     }
     return $this->localeList;
 }