ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
createDirectory ($name) | |
Creates a new subdirectory. More... | |
createFile ($name, $data=null) | |
Creates a new file in the directory. More... | |
getChild ($name) | |
Returns a child object, by its name. More... | |
childExists ($name) | |
Checks is a child-node exists. More... | |
delete () | |
Deletes the current node. More... | |
setName ($name) | |
Renames the node. More... | |
![]() | |
__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... | |
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... | |
![]() | |
getLastModified () | |
Returns the last modification time as a unix timestamp. More... | |
delete () | |
Deletes the current node. More... | |
setName ($name) | |
Renames the node. More... | |
delete () | |
Deleted the current node. More... | |
getName () | |
Returns the name of the node. More... | |
setName ($name) | |
Renames the node. More... | |
getLastModified () | |
Returns the last modification time, as a unix timestamp. More... | |
createFile ($name, $data=null) | |
Creates a new file in the directory. More... | |
createDirectory ($name) | |
Creates a new subdirectory. More... | |
getChild ($name) | |
Returns a specific child node, referenced by its name. More... | |
getChildren () | |
Returns an array with all the child nodes. More... | |
childExists ($name) | |
Checks if a child-node with the specified name exists. More... | |
Data Fields | |
$newDirectories = [] | |
$newFiles = [] | |
$isDeleted = false | |
$isRenamed = false | |
Additional Inherited Members | |
![]() | |
$children = [] | |
$name | |
Definition at line 114 of file TreeTest.php.
Sabre\DAV\TreeDirectoryTester::childExists | ( | $name | ) |
Checks is a child-node exists.
It is generally a good idea to try and override this. Usually it can be optimized.
string | $name |
Reimplemented from Sabre\DAV\Collection.
Definition at line 141 of file TreeTest.php.
References Sabre\DAV\SimpleCollection\$name, and Sabre\DAV\TreeDirectoryTester\getChild().
Sabre\DAV\TreeDirectoryTester::createDirectory | ( | $name | ) |
Creates a new subdirectory.
string | $name |
Exception |
Forbidden
Reimplemented from Sabre\DAV\Collection.
Definition at line 121 of file TreeTest.php.
References Sabre\DAV\SimpleCollection\$name.
Sabre\DAV\TreeDirectoryTester::createFile | ( | $name, | |
$data = null |
|||
) |
Creates a new file in the directory.
Data will either be supplied as a stream resource, or in certain cases as a string. Keep in mind that you may have to support either.
After successful creation of the file, you may choose to return the ETag of the new file here.
The returned ETag must be surrounded by double-quotes (The quotes should be part of the actual string).
If you cannot accurately determine the ETag, you should not return it. If you don't store the file exactly as-is (you're transforming it somehow) you should also not return an ETag.
This means that if a subsequent GET to this new file does not exactly return the same contents of what was submitted here, you are strongly recommended to omit the ETag.
string | $name | Name of the file |
resource | string | $data | Initial payload |
Reimplemented from Sabre\DAV\Collection.
Definition at line 127 of file TreeTest.php.
References $data, and Sabre\DAV\SimpleCollection\$name.
Sabre\DAV\TreeDirectoryTester::delete | ( | ) |
Deletes the current node.
Exception |
Forbidden
Reimplemented from Sabre\DAV\Node.
Definition at line 147 of file TreeTest.php.
Sabre\DAV\TreeDirectoryTester::getChild | ( | $name | ) |
Returns a child object, by its name.
This method makes use of the getChildren method to grab all the child nodes, and compares the name. Generally its wise to override this, as this can usually be optimized
This method must throw Sabre\DAV\Exception\NotFound if the node does not exist.
string | $name |
Exception |
NotFound
Reimplemented from Sabre\DAV\SimpleCollection.
Definition at line 133 of file TreeTest.php.
References Sabre\DAV\SimpleCollection\$name.
Referenced by Sabre\DAV\TreeDirectoryTester\childExists(), and Sabre\DAV\TreeMultiGetTester\getMultipleChildren().
Sabre\DAV\TreeDirectoryTester::setName | ( | $name | ) |
Renames the node.
string | $name | The new name |
Exception |
Forbidden
Reimplemented from Sabre\DAV\Node.
Definition at line 153 of file TreeTest.php.
References Sabre\DAV\SimpleCollection\$name.
Sabre\DAV\TreeDirectoryTester::$isDeleted = false |
Definition at line 118 of file TreeTest.php.
Sabre\DAV\TreeDirectoryTester::$isRenamed = false |
Definition at line 119 of file TreeTest.php.
Sabre\DAV\TreeDirectoryTester::$newDirectories = [] |
Definition at line 116 of file TreeTest.php.
Sabre\DAV\TreeDirectoryTester::$newFiles = [] |
Definition at line 117 of file TreeTest.php.