app/code/community/Nexcessnet/Turpentine/Model/Dummy/Request.php
public function setBasePath($basePath = null) {
        if ($basePath === null) {
            $filename = (isset($this->SERVER['SCRIPT_FILENAME']))
                      ? basename($this->SERVER['SCRIPT_FILENAME'])
                      : '';

            $baseUrl = $this->getBaseUrl();
            if (empty($baseUrl)) {
                $this->_basePath = '';
                return $this;
            }

            if (basename($baseUrl) === $filename) {
                $basePath = dirname($baseUrl);
            } else {
                $basePath = $baseUrl;
            }
        }

        if (substr(PHP_OS, 0, 3) === 'WIN') {
            $basePath = str_replace('\\', '/', $basePath);
        }

        $this->_basePath = rtrim($basePath, '/');
        return $this;
    }
public function setBasePath($basePath = null) {
        if ($basePath === null) {
            $filename = (isset($this->SERVER['SCRIPT_FILENAME']))
                      ? basename($this->SERVER['SCRIPT_FILENAME'])
                      : '';

            $baseUrl = $this->getBaseUrl();
            if (empty($baseUrl)) {
                $this->_basePath = '';
                return $this;
            }

            if (basename($baseUrl) === $filename) {
                $basePath = dirname($baseUrl);
            } else {
                $basePath = $baseUrl;
            }
        }

        if (substr(PHP_OS, 0, 3) === 'WIN') {
            $basePath = str_replace('\\', '/', $basePath);
        }

        $this->_basePath = rtrim($basePath, '/');
        return $this;
    }
public function setBasePath ( $ basePath = null ) { if ( $ basePath === null ) { $ filename = ( isset ( $ this -> SERVER [ 'SCRIPT_FILENAME' ] ) ) ? basename ( $ this -> SERVER [ 'SCRIPT_FILENAME' ] ) : '' ; $ baseUrl = $ this -> getBaseUrl ( ) ; if ( empty ( $ baseUrl ) ) { $ this -> _basePath = '' ; return $ this ; } if ( basename ( $ baseUrl ) === $ filename ) { $ basePath = dirname ( $ baseUrl ) ; } else { $ basePath = $ baseUrl ; } } if ( substr ( PHP_OS , 0 , 3 ) === 'WIN' ) { $ basePath = str_replace ( '\\' , '/' , $ basePath ) ; } $ this -> _basePath = rtrim ( $ basePath , '/' ) ; return $ this ; }
Set the base path for the URL

@param string|null $basePath
@return Zend_Controller_Request_Http
Set the base path for the URL