public function getLanguages()
    {
        if ($this->_languages === null) {
            $this->_languages = (new DbQuery())->select(['short_code', 'id'])->indexBy('short_code')->from('admin_lang')->all();
        }

        return $this->_languages;
    }
public function getLanguages()
    {
        if ($this->_languages === null) {
            $this->_languages = (new DbQuery())->select(['short_code', 'id'])->indexBy('short_code')->from('admin_lang')->all();
        }

        return $this->_languages;
    }
public function getLanguages ( ) { if ( $ this -> _languages === null ) { $ this -> _languages = ( new DbQuery ( ) ) -> select ( [ 'short_code' , 'id' ] ) -> indexBy ( 'short_code' ) -> from ( 'admin_lang' ) -> all ( ) ; } return $ this -> _languages ; }
Get an array with all available system languages based on the admin_lang table.

@return array An array where the key is the short_code and the value an array containing shortcode and id.
Get an array with all available system languages based on the admin_lang table .