Child classes:
- MyDirectory
- Directory class
- Sabre_CalDAV_CalendarRootNode
- Users collection
- Sabre_DAV_Auth_PrincipalCollection
- Principals Collection
- Sabre_DAV_SimpleDirectory
- SimpleDirectory
- Sabre_DAV_DirectoryMock
- Directory class
Inherited Methods
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
Directory class
This is a helper class, that should aid in getting directory classes setup. Most of its methods are implemented, and throw permission denied exceptions
Tags:
- author - Evert Pot (http://www.rooftopsolutions.nl/)
- copyright - Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.
- abstract -
- license - Modified BSD License
[ Top ]
Class Variables
Class Methods
createDirectory
void createDirectory(
string
$name)
[line 59]
Creates a new subdirectory
Tags:
- throws - Sabre_DAV_Exception_Forbidden
- access - public
- Sabre_DAV_ICollection::createDirectory()
- Creates a new subdirectory
Parameters:
- string $name -
[ Top ]
createFile
void createFile(
string
$name, [string
$data = null])
[line 46]
Creates a new file in the directory
Tags:
- throws - Sabre_DAV_Exception_Forbidden
- access - public
- Sabre_DAV_ICollection::createFile()
- Creates a new file in the directory
Parameters:
- string $name - Name of the file
- string $data - Initial payload
[ Top ]
getChild
Sabre_DAV_INode getChild(
string
$name)
[line 27]
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
Overridden in child classes as:
- Sabre_DAV_SimpleDirectory::getChild()
- Returns a child object, by its name.
- Sabre_DAV_ICollection::getChild()
- Returns a specific child node, referenced by its name
Parameters:
- string $name -
[ Top ]