public function publishFolder($path) {
        $newName = dirname($_SERVER['SCRIPT_FILENAME']) . DIRECTORY_SEPARATOR .
                $this->publishFolder . DIRECTORY_SEPARATOR . md5($path);
        $url = \mpf\WebApp::get()->request()->getWebRoot() . $this->publishFolder . "/" . md5($path) . "/";
        if ($this->_isPublished($newName))
            return $url;
        $this->_folder($path, $newName);
        $this->publishCache[$newName] = true;
        return $url;
    }
public function publishFolder($path) {
        $newName = dirname($_SERVER['SCRIPT_FILENAME']) . DIRECTORY_SEPARATOR .
                $this->publishFolder . DIRECTORY_SEPARATOR . md5($path);
        $url = \mpf\WebApp::get()->request()->getWebRoot() . $this->publishFolder . "/" . md5($path) . "/";
        if ($this->_isPublished($newName))
            return $url;
        $this->_folder($path, $newName);
        $this->publishCache[$newName] = true;
        return $url;
    }
public function publishFolder ( $ path ) { $ newName = dirname ( $ _SERVER [ 'SCRIPT_FILENAME' ] ) . DIRECTORY_SEPARATOR . $ this -> publishFolder . DIRECTORY_SEPARATOR . md5 ( $ path ) ; $ url = \ mpf \ WebApp :: get ( ) -> request ( ) -> getWebRoot ( ) . $ this -> publishFolder . "/" . md5 ( $ path ) . "/" ; if ( $ this -> _isPublished ( $ newName ) ) return $ url ; $ this -> _folder ( $ path , $ newName ) ; $ this -> publishCache [ $ newName ] = true ; return $ url ; }
Publish an entire folder
@param string $path
@return string Published URL
Publish an entire folder