Prado\Web\Services\TJsonService::loadJsonServices PHP Метод

loadJsonServices() защищенный Метод

Load the service definitions.
protected loadJsonServices ( $config )
    protected function loadJsonServices($config)
    {
        if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP) {
            if (is_array($config)) {
                foreach ($config['json'] as $id => $json) {
                    $this->_services[$id] = $json;
                }
            }
        } else {
            foreach ($config->getElementsByTagName('json') as $json) {
                if (($id = $json->getAttribute('id')) !== null) {
                    $this->_services[$id] = $json;
                } else {
                    throw new TConfigurationException('jsonservice_id_required');
                }
            }
        }
    }