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

Public Member Functions

 getName ()
 Returns the name of the node. More...
 
 getChildren ()
 Returns an array with all the child nodes. 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...
 

Detailed Description

Definition at line 211 of file BasicNodeTest.php.

Member Function Documentation

◆ getChildren()

Sabre\DAV\DirectoryMock::getChildren ( )

Returns an array with all the child nodes.

Returns
INode[]

Implements Sabre\DAV\ICollection.

Definition at line 219 of file BasicNodeTest.php.

219  {
220 
221  return [new FileMock()];
222 
223  }

◆ getName()

Sabre\DAV\DirectoryMock::getName ( )

Returns the name of the node.

This is used to generate the url.

Returns
string

Implements Sabre\DAV\INode.

Definition at line 213 of file BasicNodeTest.php.

213  {
214 
215  return 'mockdir';
216 
217  }

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