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

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from Sabre\DAV\Tree
 __construct (ICollection $rootNode)
 Creates the object. More...
 
 getNodeForPath ($path)
 Returns the INode object for the requested path. More...
 
 nodeExists ($path)
 This function allows you to check if a node exists. More...
 
 copy ($sourcePath, $destinationPath)
 Copies a file from path to another. More...
 
 move ($sourcePath, $destinationPath)
 Moves a file from one location to another. More...
 
 delete ($path)
 Deletes a node from the tree. More...
 
 getChildren ($path)
 Returns a list of childnodes for a given path. More...
 
 markDirty ($path)
 This method is called with every tree update. More...
 
 getMultipleNodes ($paths)
 This method tells the tree system to pre-fetch and cache a list of children of a single parent. More...
 

Private Attributes

 $nodes = []
 

Additional Inherited Members

- Protected Member Functions inherited from Sabre\DAV\Tree
 copyNode (INode $source, ICollection $destinationParent, $destinationName=null)
 copyNode More...
 
- Protected Attributes inherited from Sabre\DAV\Tree
 $rootNode
 
 $cache = []
 

Detailed Description

Definition at line 86 of file TreeTest.php.

Constructor & Destructor Documentation

◆ __construct()

Sabre\DAV\TreeMock::__construct ( )

Definition at line 90 of file TreeTest.php.

90  {
91 
92  $file = new TreeFileTester('file');
93  $file->properties = ['test1' => 'value'];
94  $file->data = 'foobar';
95 
96  parent::__construct(
97  new TreeDirectoryTester('root', [
98  new TreeDirectoryTester('hi', [
99  new TreeDirectoryTester('sub'),
100  $file,
101  ]),
102  new TreeMultiGetTester('multi', [
103  new TreeFileTester('1'),
104  new TreeFileTester('2'),
105  new TreeFileTester('3'),
106  ])
107  ])
108  );
109 
110  }

Field Documentation

◆ $nodes

Sabre\DAV\TreeMock::$nodes = []
private

Definition at line 88 of file TreeTest.php.


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