public function getAvailableLanguages() { if (null === $this->_languages) { $this->_languages = explode(',', $this->yupe->availableLanguages); } return $this->_languages; }
/** * @param \CWebApplication $owner */ public function attach($owner) { $this->lm = $owner->getUrlManager(); if (count($this->lm->getAvailableLanguages()) > 1) { $owner->attachEventHandler('onBeginRequest', [$this, 'handleLanguageBehavior']); } }