ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__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... | |
Protected Attributes | |
$children = [] | |
$name | |
The SimpleCollection is used to quickly setup static directory structures. Just create the object with a proper name, and add children to use it.
Definition at line 15 of file SimpleCollection.php.
Sabre\DAV\SimpleCollection::__construct | ( | $name, | |
array | $children = [] |
||
) |
Creates this node.
The name of the node must be passed, child nodes can also be passed. This nodes must be instances of INode
string | $name | |
INode[] | $children |
Definition at line 40 of file SimpleCollection.php.
References Sabre\DAV\SimpleCollection\$children, Sabre\DAV\SimpleCollection\$name, and Sabre\DAV\SimpleCollection\addChild().
Sabre\DAV\SimpleCollection::addChild | ( | INode | $child | ) |
Adds a new childnode to this collection.
INode | $child |
Definition at line 58 of file SimpleCollection.php.
References Sabre\DAV\INode\getName().
Referenced by Sabre\DAV\SimpleCollection\__construct().
Sabre\DAV\SimpleCollection::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 if the node does not exist.
string | $name |
Exception |
Implements Sabre\DAV\ICollection.
Definition at line 88 of file SimpleCollection.php.
References Sabre\DAV\SimpleCollection\$name, and Sabre\DAV\SimpleCollection\getName().
Sabre\DAV\SimpleCollection::getChildren | ( | ) |
Returns a list of children for this collection.
Implements Sabre\DAV\ICollection.
Definition at line 100 of file SimpleCollection.php.
Referenced by Sabre\DAV\Sync\MockSyncCollection\getChanges().
Sabre\DAV\SimpleCollection::getName | ( | ) |
Returns the name of the collection.
Implements Sabre\DAV\INode.
Definition at line 69 of file SimpleCollection.php.
References Sabre\DAV\SimpleCollection\$name.
Referenced by Sabre\DAV\SimpleCollection\getChild().
|
protected |
Definition at line 22 of file SimpleCollection.php.
Referenced by Sabre\DAV\SimpleCollection\__construct().
|
protected |
Definition at line 29 of file SimpleCollection.php.
Referenced by Sabre\DAV\SimpleCollection\__construct(), Sabre\DAV\SimpleCollection\getChild(), and Sabre\DAV\SimpleCollection\getName().