Class: Sabre_DAV_Directory

Source Location: /includes/classes/SabreDAV/lib/Sabre/DAV/Directory.php

Class Overview [line 15]

Sabre_DAV_Node
   |
   --Sabre_DAV_Directory

Directory class

Author(s):

  • Evert Pot (http://www.rooftopsolutions.nl/)

Version:

Copyright:

  • Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.

Variables

Constants

Methods


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

Implements interfaces

Inherited Variables

Inherited Constants

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:

[ Top ]


Class Variables


Class Methods

createDirectory

void createDirectory( string $name)

[line 59]

Creates a new subdirectory

Tags:

  • throws - Sabre_DAV_Exception_Forbidden
  • access - public

Implementation of:
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

Implementation of:
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:

MyDirectory::getChild()
Sabre_DAV_SimpleDirectory::getChild()
Returns a child object, by its name.


Implementation of:
Sabre_DAV_ICollection::getChild()
Returns a specific child node, referenced by its name

Parameters:

  • string $name -

[ Top ]


Class Constants


Documentation generated on Mon, 31 May 2010 12:53:12 -0400 by phpDocumentor 1.4.3