45 if (!($child instanceof
INode))
throw new Exception(
'Only instances of Sabre\DAV\INode are allowed to be passed in the children argument');
60 $this->children[$child->
getName()] = $child;
90 if (isset($this->children[
$name]))
return $this->children[
$name];
91 throw new Exception\NotFound(
'File not found: ' . $name .
' in \'' . $this->
getName() .
'\'');
102 return array_values($this->children);
getName()
Returns the name of the node.
getChildren()
Returns a list of children for this collection.
__construct($name, array $children=[])
Creates this node.
addChild(INode $child)
Adds a new childnode to this collection.
The INode interface is the base interface, and the parent class of both ICollection and IFile...
getChild($name)
Returns a child object, by its name.
getName()
Returns the name of the collection.