Language class in the file /classes/Language.php contains static function getLanguages(). By default this function returns only active languages. If you wish to retreive all languages including non active ones supply as first parameter boolean false eg. Language::getLanguages(false).