kernel/private/classes/webdav/ezwebdavcontentbackend.php
protected function fetchContentList( $fullPath, &$node, $target, $depth, $properties )
    {
        // We'll return an array of entries (which is an array of attributes).
        $entries = array();

        if ( $depth === ezcWebdavRequest::DEPTH_ONE || $depth === ezcWebdavRequest::DEPTH_INFINITY )
            // @as added || $depth === ezcWebdavRequest::DEPTH_INFINITY
        {
            // Get all the children of the target node.
            $subTree = $node->subTree( array ( 'Depth' => 1 ) );

            // Build the entries array by going through all the
            // nodes in the subtree and getting their attributes:
            foreach ( $subTree as $someNode )
            {
                $entries[] = $this->fetchNodeInfo( $fullPath, $someNode );
            }
        }

        // Always include the information about the current level node
        $thisNodeInfo = $this->fetchNodeInfo( $fullPath, $node );

        $scriptURL = $fullPath;
        if ( $scriptURL{strlen( $scriptURL ) - 1} !== '/' )
        {
            $scriptURL .= "/";
        }

        $thisNodeInfo["href"] = $scriptURL;
        $entries[] = $thisNodeInfo;

        // Return the content of the target.
        return $entries;
    }
protected function fetchContentList( $fullPath, &$node, $target, $depth, $properties )
    {
        // We'll return an array of entries (which is an array of attributes).
        $entries = array();

        if ( $depth === ezcWebdavRequest::DEPTH_ONE || $depth === ezcWebdavRequest::DEPTH_INFINITY )
            // @as added || $depth === ezcWebdavRequest::DEPTH_INFINITY
        {
            // Get all the children of the target node.
            $subTree = $node->subTree( array ( 'Depth' => 1 ) );

            // Build the entries array by going through all the
            // nodes in the subtree and getting their attributes:
            foreach ( $subTree as $someNode )
            {
                $entries[] = $this->fetchNodeInfo( $fullPath, $someNode );
            }
        }

        // Always include the information about the current level node
        $thisNodeInfo = $this->fetchNodeInfo( $fullPath, $node );

        $scriptURL = $fullPath;
        if ( $scriptURL{strlen( $scriptURL ) - 1} !== '/' )
        {
            $scriptURL .= "/";
        }

        $thisNodeInfo["href"] = $scriptURL;
        $entries[] = $thisNodeInfo;

        // Return the content of the target.
        return $entries;
    }
protected function fetchContentList ( $ fullPath , & $ node , $ target , $ depth , $ properties ) { // We'll return an array of entries (which is an array of attributes). $ entries = array ( ) ; if ( $ depth === ezcWebdavRequest :: DEPTH_ONE || $ depth === ezcWebdavRequest :: DEPTH_INFINITY ) // @as added || $depth === ezcWebdavRequest::DEPTH_INFINITY { // Get all the children of the target node. $ subTree = $ node -> subTree ( array ( 'Depth' => 1 ) ) ; // Build the entries array by going through all the // nodes in the subtree and getting their attributes: foreach ( $ subTree as $ someNode ) { $ entries [ ] = $ this -> fetchNodeInfo ( $ fullPath , $ someNode ) ; } } // Always include the information about the current level node $ thisNodeInfo = $ this -> fetchNodeInfo ( $ fullPath , $ node ) ; $ scriptURL = $ fullPath ; if ( $ scriptURL { strlen ( $ scriptURL ) - 1 } !== '/' ) { $ scriptURL .= "/" ; } $ thisNodeInfo [ "href" ] = $ scriptURL ; $ entries [ ] = $ thisNodeInfo ; // Return the content of the target. return $ entries ; }
Gets and returns the content of an actual node.

List of other nodes belonging to the target node (one level below it)
will be returned as well.

An entry in the the returned array is of this form:
<code>
array( 'name' => node name (eg. 'Content'),
'size' => storage size of the_node in bytes (eg. 4096 for collections),
'mimetype' => mime type of the node (eg. 'httpd/unix-directory'),
'ctime' => creation time as timestamp,
'mtime' => latest modification time as timestamp,
'href' => the path to the node (eg. '/plain_site_user/Content/')
</code>

@param string $fullPath Eg. '/plain_site_user/Content/'
@param eZContentObject &$node The note corresponding to $fullPath
@param string $target Eg. 'Content'
@param string $depth One of -1 (infinite), 0, 1
@param array(string) $properties Currently not used
@return array(array(string=>mixed))
Gets and returns the content of an actual node .