public function getBaseDirectory($directoryToAppend = null)
    {

        // load the base directory from the system configuration
        $baseDirectory = $this->getSystemConfiguration()->getBaseDirectory();

        // if a directory has been passed, make it absolute and append it
        if ($directoryToAppend != null) {
            $baseDirectory .= $this->makePathAbsolute($directoryToAppend);
        }

        // return the base directory, with the passed path appended
        return $baseDirectory;
    }
public function getBaseDirectory($directoryToAppend = null)
    {

        // load the base directory from the system configuration
        $baseDirectory = $this->getSystemConfiguration()->getBaseDirectory();

        // if a directory has been passed, make it absolute and append it
        if ($directoryToAppend != null) {
            $baseDirectory .= $this->makePathAbsolute($directoryToAppend);
        }

        // return the base directory, with the passed path appended
        return $baseDirectory;
    }
public function getBaseDirectory ( $ directoryToAppend = null ) { // load the base directory from the system configuration $ baseDirectory = $ this -> getSystemConfiguration ( ) -> getBaseDirectory ( ) ; // if a directory has been passed, make it absolute and append it if ( $ directoryToAppend != null ) { $ baseDirectory .= $ this -> makePathAbsolute ( $ directoryToAppend ) ; } // return the base directory, with the passed path appended return $ baseDirectory ; }
Returns the application servers base directory.

@param string|null $directoryToAppend Append this directory to the base directory before returning it

@return string The base directory
Returns the application servers base directory .