static function getType($siteConfig) { global $types; $result = SiteConfigType::get($siteConfig->getTypeName()); return $result; }