public function getObjectTypes() { $this->loadLanguageFile('default'); $arrTypes = ImmoConnector::getRealestateTypes(); $arrOptions = array(); foreach ($arrTypes as $strType) { $arrOptions[$strType] = $GLOBALS['TL_LANG']['immoConnector'][$strType] ?: $strType; } return $arrOptions; }