kernel/private/classes/webdav/ezwebdavcontentbackend.php
protected function fetchVirtualSiteContent( $target, $site, $depth, $properties )
    {
        $requestUri = $target;

        // Always add the current collection
        $contentEntry = array();
        $scriptURL = $requestUri;
        if ( $scriptURL{strlen( $scriptURL ) - 1} !== '/' )
        {
            $scriptURL .= "/";
        }
        $contentEntry["name"]     = $scriptURL;
        $contentEntry["size"]     = 0;
        $contentEntry["mimetype"] = self::DIRECTORY_MIMETYPE;
        $contentEntry["ctime"]    = filectime( 'settings/siteaccess/' . $site );
        $contentEntry["mtime"]    = filemtime( 'settings/siteaccess/' . $site );
        $contentEntry["href"]     = $requestUri;
        $entries[] = $contentEntry;

        $defctime = $contentEntry['ctime'];
        $defmtime = $contentEntry['mtime'];

        if ( $depth > 0 )
        {
            $scriptURL = $requestUri;
            if ( $scriptURL{strlen( $scriptURL ) - 1} !== '/' )
            {
                $scriptURL .= "/";
            }

            // Set up attributes for the virtual content folder:
            foreach ( array( self::virtualContentFolderName(), self::virtualMediaFolderName() ) as $name )
            {
                $entry             = array();
                $entry["name"]     = $name;
                $entry["size"]     = 0;
                $entry["mimetype"] = self::DIRECTORY_MIMETYPE;
                $entry["ctime"]    = $defctime;
                $entry["mtime"]    = $defmtime;
                $entry["href"]     = $scriptURL . $name;

                $entries[]         = $entry;
            }
        }

        return $entries;
    }
protected function fetchVirtualSiteContent( $target, $site, $depth, $properties )
    {
        $requestUri = $target;

        // Always add the current collection
        $contentEntry = array();
        $scriptURL = $requestUri;
        if ( $scriptURL{strlen( $scriptURL ) - 1} !== '/' )
        {
            $scriptURL .= "/";
        }
        $contentEntry["name"]     = $scriptURL;
        $contentEntry["size"]     = 0;
        $contentEntry["mimetype"] = self::DIRECTORY_MIMETYPE;
        $contentEntry["ctime"]    = filectime( 'settings/siteaccess/' . $site );
        $contentEntry["mtime"]    = filemtime( 'settings/siteaccess/' . $site );
        $contentEntry["href"]     = $requestUri;
        $entries[] = $contentEntry;

        $defctime = $contentEntry['ctime'];
        $defmtime = $contentEntry['mtime'];

        if ( $depth > 0 )
        {
            $scriptURL = $requestUri;
            if ( $scriptURL{strlen( $scriptURL ) - 1} !== '/' )
            {
                $scriptURL .= "/";
            }

            // Set up attributes for the virtual content folder:
            foreach ( array( self::virtualContentFolderName(), self::virtualMediaFolderName() ) as $name )
            {
                $entry             = array();
                $entry["name"]     = $name;
                $entry["size"]     = 0;
                $entry["mimetype"] = self::DIRECTORY_MIMETYPE;
                $entry["ctime"]    = $defctime;
                $entry["mtime"]    = $defmtime;
                $entry["href"]     = $scriptURL . $name;

                $entries[]         = $entry;
            }
        }

        return $entries;
    }
protected function fetchVirtualSiteContent ( $ target , $ site , $ depth , $ properties ) { $ requestUri = $ target ; // Always add the current collection $ contentEntry = array ( ) ; $ scriptURL = $ requestUri ; if ( $ scriptURL { strlen ( $ scriptURL ) - 1 } !== '/' ) { $ scriptURL .= "/" ; } $ contentEntry [ "name" ] = $ scriptURL ; $ contentEntry [ "size" ] = 0 ; $ contentEntry [ "mimetype" ] = self :: DIRECTORY_MIMETYPE ; $ contentEntry [ "ctime" ] = filectime ( 'settings/siteaccess/' . $ site ) ; $ contentEntry [ "mtime" ] = filemtime ( 'settings/siteaccess/' . $ site ) ; $ contentEntry [ "href" ] = $ requestUri ; $ entries [ ] = $ contentEntry ; $ defctime = $ contentEntry [ 'ctime' ] ; $ defmtime = $ contentEntry [ 'mtime' ] ; if ( $ depth > 0 ) { $ scriptURL = $ requestUri ; if ( $ scriptURL { strlen ( $ scriptURL ) - 1 } !== '/' ) { $ scriptURL .= "/" ; } // Set up attributes for the virtual content folder: foreach ( array ( self :: virtualContentFolderName ( ) , self :: virtualMediaFolderName ( ) ) as $ name ) { $ entry = array ( ) ; $ entry [ "name" ] = $ name ; $ entry [ "size" ] = 0 ; $ entry [ "mimetype" ] = self :: DIRECTORY_MIMETYPE ; $ entry [ "ctime" ] = $ defctime ; $ entry [ "mtime" ] = $ defmtime ; $ entry [ "href" ] = $ scriptURL . $ name ; $ entries [ ] = $ entry ; } } return $ entries ; }
Builds and returns the content of the virtual start folder for a site.

The virtual startfolder is an intermediate step between the site-list
and actual content. This directory contains the "content" folder which
leads to the site's actual content.

An entry in the the returned array is of this form:
<code>
array( 'name' => node name (eg. 'Group picture'),
'size' => storage size of the_node in bytes (eg. 57123),
'mimetype' => mime type of the node (eg. 'image/jpeg'),
'ctime' => creation time as timestamp,
'mtime' => latest modification time as timestamp,
'href' => the path to the node (eg. '/plain_site_user/Content/Folder1/file1.jpg')
</code>

@param string $target Eg. '/plain_site_user/Content/Folder1'
@param string $site Eg. 'plain_site_user
@param string $depth One of -1 (infinite), 0, 1
@param array(string) $properties Currently not used
@return array(array(string=>mixed))
Builds and returns the content of the virtual start folder for a site .