Class Sabre_DAV_SimpleDirectory

Description

SimpleDirectory

The SimpleDirectory is used to quickly setup static directory structures. Just create the object with a proper name, and add children to use it.

  • author: Evert Pot (http://www.rooftopsolutions.nl/)
  • copyright: Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.
  • license: Modified BSD License

Located in /sources_custom/Sabre/DAV/SimpleDirectory.php (line 15)

Sabre_DAV_Node
   |
   --Sabre_DAV_Directory
      |
      --Sabre_DAV_SimpleDirectory
Variable Summary
array $children
string $name
Method Summary
void __construct (string $name, [ $children = array()])
void addChild (Sabre_DAV_INode $child)
Sabre_DAV_INode getChild (string $name)
array getChildren ()
string getName ()
Variables
array $children = array() (line 22)

List of childnodes

  • access: protected
string $name (line 29)

Name of this resource

  • access: protected
Methods
Constructor __construct (line 41)

Creates this node

The name of the node must be passed, child nodes can also be bassed. This nodes must be instances of Sabre_DAV_INode

  • access: public
void __construct (string $name, [ $children = array()])
  • string $name
  • array $children
addChild (line 59)

Adds a new childnode to this collection

  • access: public
void addChild (Sabre_DAV_INode $child)
getChild (line 86)

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

  • throws: Sabre_DAV_Exception_FileNotFound
  • access: public
Sabre_DAV_INode getChild (string $name)
  • string $name

Redefinition of:
Sabre_DAV_Directory::getChild()
Returns a child object, by its name.
getChildren (line 98)

Returns a list of children for this collection

  • access: public
array getChildren ()
getName (line 70)

Returns the name of the collection

  • access: public
string getName ()

Inherited Methods

Inherited From Sabre_DAV_Directory

Sabre_DAV_Directory::childExists()
Sabre_DAV_Directory::createDirectory()
Sabre_DAV_Directory::createFile()
Sabre_DAV_Directory::getChild()

Inherited From Sabre_DAV_Node

Sabre_DAV_Node::delete()
Sabre_DAV_Node::getLastModified()
Sabre_DAV_Node::setName()

Documentation generated on Sun, 02 Jan 2011 23:24:49 +0000 by phpDocumentor 1.4.3