protected function _prepareForVfs($resource)
    {
        // get folder from file
        $path = dirname($resource);

        // fix slashed for vfs
        $path = $this->_vfsSlashes($path);

        // and store as root for virtual-filesystem
        if ($this->vfsLastPath != $path) {
            $this->vfs->setup($path);
            $this->vfsLastPath = $path;
        }

        // wrap file
        return $this->vfs->url($resource);
    }
protected function _prepareForVfs($resource)
    {
        // get folder from file
        $path = dirname($resource);

        // fix slashed for vfs
        $path = $this->_vfsSlashes($path);

        // and store as root for virtual-filesystem
        if ($this->vfsLastPath != $path) {
            $this->vfs->setup($path);
            $this->vfsLastPath = $path;
        }

        // wrap file
        return $this->vfs->url($resource);
    }
protected function _prepareForVfs ( $ resource ) { // get folder from file $ path = dirname ( $ resource ) ; // fix slashed for vfs $ path = $ this -> _vfsSlashes ( $ path ) ; // and store as root for virtual-filesystem if ( $ this -> vfsLastPath != $ path ) { $ this -> vfs -> setup ( $ path ) ; $ this -> vfsLastPath = $ path ; } // wrap file return $ this -> vfs -> url ( $ resource ) ; }
Prepares a resource for virtual filesystem

This method is intend to prepare a resource for virtual filesystem access.

@param string $resource The resource to prepare

@author Benjamin Carl <opensource@clickalicious.de>
@return string The prepared resource
@access protected
Prepares a resource for virtual filesystem