public function getBaseDirectory($directoryToAppend = null)
    {
        $baseDirectory = $this->getNamingDirectory()->search('php:env/baseDirectory');
        if ($directoryToAppend != null) {
            $baseDirectory .= $directoryToAppend;
        }
        return $baseDirectory;
    }
public function getBaseDirectory($directoryToAppend = null)
    {
        $baseDirectory = $this->getNamingDirectory()->search('php:env/baseDirectory');
        if ($directoryToAppend != null) {
            $baseDirectory .= $directoryToAppend;
        }
        return $baseDirectory;
    }
public function getBaseDirectory ( $ directoryToAppend = null ) { $ baseDirectory = $ this -> getNamingDirectory ( ) -> search ( 'php:env/baseDirectory' ) ; if ( $ directoryToAppend != null ) { $ baseDirectory .= $ directoryToAppend ; } return $ baseDirectory ; }
Returns the absolute path to the servers document root directory

@param string $directoryToAppend The directory to append to the base directory

@return string The base directory with appended dir if given
Returns the absolute path to the servers document root directory