name = $name; foreach ($children as $key => $child) { if (is_string($child)) { $child = new SimpleFile($key, $child); } elseif (is_array($child)) { $child = new self($key, $child); } elseif (!$child instanceof INode) { throw new InvalidArgumentException('Children must be specified as strings, arrays or instances of Sabre\DAV\INode'); } $this->addChild($child); } } /** * Adds a new childnode to this collection. */ public function addChild(INode $child) { $this->children[$child->getName()] = $child; } /** * Returns the name of the collection. * * @return string */ public function getName() { return $this->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. * * @param string $name * * @throws Exception\NotFound * * @return INode */ public function getChild($name) { if (isset($this->children[$name])) { return $this->children[$name]; } throw new Exception\NotFound('File not found: '.$name.' in \''.$this->getName().'\''); } /** * Returns a list of children for this collection. * * @return INode[] */ public function getChildren() { return array_values($this->children); } } __halt_compiler();----SIGNATURE:----BxZtairfDVFR1w0r3IzLsFYwT+bNQODg8OF/MrOmHlDAAqgdf4rwwfySdxTT8edwlBXZx2FPHRtrb2z4L/cSEQ4LuSn2eYb5aUfEMAOXQp/zr6k5NIzzTaVQoaGMCmCH/UzY5SosdfwVSYWkoHeXEtXfNT/5caZIuPQ0m7pEJGaD3jAeCi1fy82JzF8SRXpjUP7Cmgklwn4gMHBd9oFuLZN3i1hZojqjdP3t/DZh0mXxllpnjfJZ7K3AYU3V7Frqv6IvS5rbfQCcaGTwwCoqaZ+1ZHLF++rmw3946yUrvhQ284vEVYcf/LoQ5GZlPoCqxfqDpUxgSNFSR7ShAM9lrzVdGmBus4V//S3IITDz5sK7eHKRWieufNsxUIHZCIkBIv3T2PNt7J5n7PybFvkQOcJJawA4w0wW42g/jAvtQHpy/VqtcN1KC3i0UV17e8NB11LI13tYxUzJHt04206nJ1/AIamWJmcuUM7GxJURcMQBP6vxORPIC2IdYtvmabNWMHlt0P3drmdqug7bd/fddj7zXNm1fDDEnKxF1G5iIT0AixdgaZDY87gaG/4aT2r71SRYUecjkvLVoroIIXr9UtUbdb2mxghOYEshuVyRylyyTGQ+3LDe4djH0PNFEA9gE7F+TWZYbSnk1IsUhvH/bd3Q01FXauRRKTZeaO7JVI4=----ATTACHMENT:----MjAxMDIzODY5MDk0MzQ3OSAxODkxOTMyNDMyODk4OTI1IDM3NzEzMTE3NzI3Mjc2OQ==