protected function getCurrentEditionLang()
    {
        // Return the new language if a change is required.
        if (null !== $edit_language_id = $this->getRequest()->get('edit_language_id', null)) {
            if (null !== $edit_language = LangQuery::create()->findOneById($edit_language_id)) {
                return $edit_language;
            }
        }

        // Otherwise return the lang stored in session.
        return $this->getSession()->getAdminEditionLang();
    }
protected function getCurrentEditionLang()
    {
        // Return the new language if a change is required.
        if (null !== $edit_language_id = $this->getRequest()->get('edit_language_id', null)) {
            if (null !== $edit_language = LangQuery::create()->findOneById($edit_language_id)) {
                return $edit_language;
            }
        }

        // Otherwise return the lang stored in session.
        return $this->getSession()->getAdminEditionLang();
    }
protected function getCurrentEditionLang ( ) { // Return the new language if a change is required. if ( null !== $ edit_language_id = $ this -> getRequest ( ) -> get ( 'edit_language_id' , null ) ) { if ( null !== $ edit_language = LangQuery :: create ( ) -> findOneById ( $ edit_language_id ) ) { return $ edit_language ; } } // Otherwise return the lang stored in session. return $ this -> getSession ( ) -> getAdminEditionLang ( ) ; }
Get the current edition lang ID, checking if a change was requested in the current request.
Get the current edition lang ID checking if a change was requested in the current request .