PHP Class Horde_Dav_Collection, horde

Author: Jan Schneider ([email protected])
Inheritance: extends Sabre\DAV\Collection, implements Sabre\DAV\IProperties
Exibir arquivo Open project: horde/horde

Protected Properties

Property Type Description
$_item array Collection details.
$_mimedb string The path to a MIME magic database.
$_path string The path to the current collection.
$_propertyMap array Mapping of WebDAV property names to Horde API's browse() properties.
$_registry Horde_Registry A registry object.

Public Methods

Method Description
__construct ( string $path = null, array $item = [], Horde_Registry $registry, string $mimedb ) Constructor.
createFile ( string $name, resource | string $data = null ) : null | string Creates a new file in the directory
getChildren ( ) : Sabre\DAV\INode[] Returns an array with all the child nodes
getLastModified ( ) : integer Returns the last modification time, as a unix timestamp
getName ( ) : string Returns the name of the node.
getProperties ( array $properties ) : void Returns a list of properties for this nodes.
propPatch ( Sabre\DAV\PropPatch $propPatch )
updateProperties ( array $mutations ) : boolean | array Updates properties on this node.

Method Details

__construct() public method

Constructor.
public __construct ( string $path = null, array $item = [], Horde_Registry $registry, string $mimedb )
$path string The path to this collection.
$item array Collection details.
$registry Horde_Registry A registry object.
$mimedb string Location of a MIME magic database.

createFile() public method

Creates a new file in the directory
public createFile ( string $name, resource | string $data = null ) : null | string
$name string Name of the file
$data resource | string Initial payload
return null | string

getChildren() public method

Returns an array with all the child nodes
public getChildren ( ) : Sabre\DAV\INode[]
return Sabre\DAV\INode[]

getLastModified() public method

Returns the last modification time, as a unix timestamp
public getLastModified ( ) : integer
return integer

getName() public method

This is used to generate the url.
public getName ( ) : string
return string

getProperties() public method

Returns a list of properties for this nodes.
public getProperties ( array $properties ) : void
$properties array
return void

propPatch() public method

public propPatch ( Sabre\DAV\PropPatch $propPatch )
$propPatch Sabre\DAV\PropPatch

updateProperties() public method

Updates properties on this node.
public updateProperties ( array $mutations ) : boolean | array
$mutations array
return boolean | array

Property Details

$_item protected_oe property

Collection details.
protected array $_item
return array

$_mimedb protected_oe property

The path to a MIME magic database.
protected string $_mimedb
return string

$_path protected_oe property

The path to the current collection.
protected string $_path
return string

$_propertyMap protected_oe static_oe property

Mapping of WebDAV property names to Horde API's browse() properties.
protected static array $_propertyMap
return array

$_registry protected_oe property

A registry object.
protected Horde_Registry $_registry
return Horde_Registry