Child classes:
- Sabre_DAV_PropTestDirMock
- SimpleDirectory
Inherited Variables
Inherited Constants
Inherited Methods
Class: Sabre_DAV_Directory
- Sabre_DAV_Directory::createDirectory()
- Creates a new subdirectory
- Sabre_DAV_Directory::createFile()
- Creates a new file in the directory
- Sabre_DAV_Directory::getChild()
- Returns a child object, by its name.
Class: Sabre_DAV_Node
- Sabre_DAV_Node::delete()
- Deleted the current node
- Sabre_DAV_Node::getLastModified()
- Returns the last modification time
- Sabre_DAV_Node::setName()
- Renames the node
Class Details
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.
Tags:
- author - Evert Pot (http://www.rooftopsolutions.nl/)
- copyright - Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.
- license - Modified BSD License
[ Top ]
Class Variables
$children = array()
[line 22]
List of childnodes
Tags:
- access - protected
Type: array
Overrides:
[ Top ]
$name
[line 29]
Name of this resource
Tags:
- access - protected
Type: string
Overrides:
[ Top ]
Class Methods
__construct
void __construct(
string
$name, [
$children = array()])
[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
Tags:
- access - public
Overridden in child classes as:
Parameters:
- string $name -
- array $children -
[ Top ]
addChild
void addChild(
Sabre_DAV_INode
$child)
[line 59]
Adds a new childnode to this collection
Tags:
- access - public
Parameters:
- Sabre_DAV_INode $child -
[ Top ]
getChild
Sabre_DAV_INode getChild(
string
$name)
[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
Tags:
- throws - Sabre_DAV_Exception_FileNotFound
- access - public
Overrides Sabre_DAV_Directory::getChild() (Returns a child object, by its name.)
Parameters:
- string $name -
[ Top ]
getChildren
array getChildren(
)
[line 98]
Returns a list of children for this collection
Tags:
- access - public
Parameters:
[ Top ]
getName
string getName(
)
[line 70]
Returns the name of the collection
Tags:
- access - public
Parameters:
[ Top ]