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 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... | |
Data Fields | |
$newDirectories = [] | |
$newFiles = [] | |
$isDeleted = false | |
$isRenamed = false | |
Additional Inherited Members | |
Protected Attributes inherited from Sabre\DAV\SimpleCollection | |
$children = [] | |
$name | |
Definition at line 114 of file TreeTest.php.
Sabre\DAV\TreeDirectoryTester::childExists | ( | $name | ) |
Checks if a child-node with the specified name exists.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 141 of file TreeTest.php.
References $name.
Sabre\DAV\TreeDirectoryTester::createDirectory | ( | $name | ) |
Creates a new subdirectory.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 121 of file TreeTest.php.
References $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 |
Implements Sabre\DAV\ICollection.
Definition at line 127 of file TreeTest.php.
Sabre\DAV\TreeDirectoryTester::delete | ( | ) |
Deleted the current node.
Implements Sabre\DAV\INode.
Definition at line 147 of file TreeTest.php.
Sabre\DAV\TreeDirectoryTester::getChild | ( | $name | ) |
Returns a specific child node, referenced by its name.
This method must throw Sabre if the node does not exist.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 133 of file TreeTest.php.
References $name.
Sabre\DAV\TreeDirectoryTester::setName | ( | $name | ) |
Renames the node.
string | $name | The new name |
Implements Sabre\DAV\INode.
Definition at line 153 of file TreeTest.php.
References $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.