function &getDomainPhrases($domainId) { $page = $this->tr->getRawPage($domainId, $this->context->getDefaultLang()); $phrases = array(); foreach (array_keys($page) as $phraseId) { $phrases[] =& $this->getPhraseData($phraseId, $domainId); } return $phrases; }
/** * @return mixed */ function fetchExistLanguage() { $lang_priority = array(SJB_Request::getVar('lang', null), $this->context->getLang(), $this->context->getDefaultLang()); foreach ($lang_priority as $lang) { if (!$lang) { continue; } $this->context->langSettings->setCurrentLangID($lang); if ($this->i18n->languageExists($lang) && $this->i18n->isLanguageActive($lang)) { return $lang; } } }
function getPageNames() { $lang_id = $this->context->getDefaultLang(); $trAdmin = $this->repo->get($lang_id); return $trAdmin->getPageNames(); }