public function getLanguageCode() {

		if (!$this->issetCache('lang')) {
	
			$query =
				'SELECT l.code' .
				' FROM `languages` AS l' .
				' INNER JOIN `locales` AS lc ON l.id = lc.language_id' .
				' INNER JOIN `users` AS u ON u.locale_id = lc.id' .
				' WHERE u.id = ?';
			$this->db->setQuery($query);
			$this->setCache('lang', $this->db->loadResult($this->id));

		}
	
		return $this->getCache('lang');

	}
public function getLanguageCode() {

		if (!$this->issetCache('lang')) {
	
			$query =
				'SELECT l.code' .
				' FROM `languages` AS l' .
				' INNER JOIN `locales` AS lc ON l.id = lc.language_id' .
				' INNER JOIN `users` AS u ON u.locale_id = lc.id' .
				' WHERE u.id = ?';
			$this->db->setQuery($query);
			$this->setCache('lang', $this->db->loadResult($this->id));

		}
	
		return $this->getCache('lang');

	}
public function getLanguageCode ( ) { if ( ! $ this -> issetCache ( 'lang' ) ) { $ query = 'SELECT l.code' . ' FROM `languages` AS l' . ' INNER JOIN `locales` AS lc ON l.id = lc.language_id' . ' INNER JOIN `users` AS u ON u.locale_id = lc.id' . ' WHERE u.id = ?' ; $ this -> db -> setQuery ( $ query ) ; $ this -> setCache ( 'lang' , $ this -> db -> loadResult ( $ this -> id ) ) ; } return $ this -> getCache ( 'lang' ) ; }
Return the language code of this user. Cached.

@return	string
Return the language code of this user . Cached .