ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\TreeMultiGetTester Class Reference
+ Inheritance diagram for Sabre\DAV\TreeMultiGetTester:
+ Collaboration diagram for Sabre\DAV\TreeMultiGetTester:

Public Member Functions

 getMultipleChildren (array $paths)
 This method receives a list of paths in it's first argument. More...
 
- Public Member Functions inherited from Sabre\DAV\TreeDirectoryTester
 createDirectory ($name)
 Creates a new subdirectory. More...
 
 createFile ($name, $data=null)
 Creates a new file in the directory. More...
 
 getChild ($name)
 Returns a specific child node, referenced by its name. More...
 
 childExists ($name)
 Checks if a child-node with the specified name exists. More...
 
 delete ()
 Deleted the current node. More...
 
 setName ($name)
 Renames the node. More...
 
- Public Member Functions inherited from Sabre\DAV\SimpleCollection
 __construct ($name, array $children=[])
 Creates this node. More...
 
 addChild (INode $child)
 Adds a new childnode to this collection. More...
 
 getName ()
 Returns the name of the collection. More...
 
 getChild ($name)
 Returns a child object, by its name. More...
 
 getChildren ()
 Returns a list of children for this collection. More...
 
- Public Member Functions inherited from Sabre\DAV\Collection
 getChild ($name)
 Returns a child object, by its name. More...
 
 childExists ($name)
 Checks is a child-node exists. More...
 
 createFile ($name, $data=null)
 Creates a new file in the directory. More...
 
 createDirectory ($name)
 Creates a new subdirectory. More...
 
- Public Member Functions inherited from Sabre\DAV\Node
 getLastModified ()
 Returns the last modification time as a unix timestamp. More...
 
 delete ()
 Deletes the current node. More...
 
 setName ($name)
 Renames the node. More...
 

Additional Inherited Members

- Data Fields inherited from Sabre\DAV\TreeDirectoryTester
 $newDirectories = []
 
 $newFiles = []
 
 $isDeleted = false
 
 $isRenamed = false
 
- Protected Attributes inherited from Sabre\DAV\SimpleCollection
 $children = []
 
 $name
 

Detailed Description

Definition at line 215 of file TreeTest.php.

Member Function Documentation

◆ getMultipleChildren()

Sabre\DAV\TreeMultiGetTester::getMultipleChildren ( array  $paths)

This method receives a list of paths in it's first argument.

It must return an array with Node objects.

If any children are not found, you do not have to return them.

Parameters
array$paths
Returns
array

Implements Sabre\DAV\IMultiGet.

Definition at line 226 of file TreeTest.php.

References $path, and $result.

226  {
227 
228  $result = [];
229  foreach ($paths as $path) {
230  try {
231  $child = $this->getChild($path);
232  $result[] = $child;
233  } catch (Exception\NotFound $e) {
234  // Do nothing
235  }
236  }
237 
238  return $result;
239 
240  }
$path
Definition: aliased.php:25
$result
if($argc< 2) $paths
Definition: migrateto20.php:44
getChild($name)
Returns a specific child node, referenced by its name.
Definition: TreeTest.php:133

The documentation for this class was generated from the following file: