static function getConfig($zone = null, $type = "host") { $config = SConfig::getConfig(self::$_config, $zone); if (isset($config->{$type})) { return $config->{$type}; } elseif (isset($config->host)) { return $config->host; } return; }