protected function getObjectTypes() { $arrTypes = array('' => $GLOBALS['TL_LANG']['immoConnector']['all']); foreach (ImmoConnector::getRealEstateTypes() as $strType) { $arrTypes[$strType] = isset($GLOBALS['TL_LANG']['immoConnector'][$strType]) ? $GLOBALS['TL_LANG']['immoConnector'][$strType] : $strType; } return $arrTypes; }