Prado\Web\Services\TPageService::setBasePath PHP Метод

setBasePath() публичный Метод

public setBasePath ( $value )
    public function setBasePath($value)
    {
        if ($this->_initialized) {
            throw new TInvalidOperationException('pageservice_basepath_unchangeable');
        } else {
            if (($path = Prado::getPathOfNamespace($value)) === null || !is_dir($path)) {
                throw new TConfigurationException('pageservice_basepath_invalid', $value);
            }
        }
        $this->_basePath = realpath($path);
    }