Prado\Web\Services\TSoapService::loadConfig PHP Метод

loadConfig() приватный Метод

Loads configuration from an XML element
private loadConfig ( $config )
    private function loadConfig($config)
    {
        if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP) {
            if (is_array($config)) {
                foreach ($config['soap'] as $id => $server) {
                    $properties = isset($server['properties']) ? $server['properties'] : array();
                    if (isset($this->_servers[$id])) {
                        throw new TConfigurationException('soapservice_serverid_duplicated', $id);
                    }
                    $this->_servers[$id] = $properties;
                }
            }
        } else {
            foreach ($config->getElementsByTagName('soap') as $serverXML) {
                $properties = $serverXML->getAttributes();
                if (($id = $properties->remove('id')) === null) {
                    throw new TConfigurationException('soapservice_serverid_required');
                }
                if (isset($this->_servers[$id])) {
                    throw new TConfigurationException('soapservice_serverid_duplicated', $id);
                }
                $this->_servers[$id] = $properties;
            }
        }
    }