function getLanguages($all = false)
{
global $conf;
if ($conf['show_system'] || $all) {
$where = '';
} else {
$where = 'WHERE lanispl';
}
$sql = "\n\t\t\tSELECT\n\t\t\t\tlanname, lanpltrusted,\n\t\t\t\tlanplcallfoid::pg_catalog.regproc AS lanplcallf\n\t\t\tFROM\n\t\t\t\tpg_catalog.pg_language\n\t\t\t{$where}\n\t\t\tORDER BY lanname\n\t\t";
return $this->selectSet($sql);
}