\Horde_Dav_Collection

A collection (directory) object.

Summary

Methods
Properties
Constants
__construct()
getName()
getLastModified()
getChildren()
createFile()
updateProperties()
getProperties()
propPatch()
No public properties found
No constants found
No protected methods found
$_path
$_item
$_registry
$_mimedb
$_propertyMap
N/A
No private methods found
No private properties found
N/A

Properties

$_path

$_path : string

The path to the current collection.

Type

string

$_item

$_item : array

Collection details.

Type

array

$_registry

$_registry : \Horde_Registry

A registry object.

Type

\Horde_Registry

$_mimedb

$_mimedb : string

The path to a MIME magic database.

Type

string

$_propertyMap

$_propertyMap : array

Mapping of WebDAV property names to Horde API's browse() properties.

Type

array

Methods

__construct()

__construct(string  $path = null, array  $item = array(), \Horde_Registry  $registry, string  $mimedb) 

Constructor.

Parameters

string $path

The path to this collection.

array $item

Collection details.

\Horde_Registry $registry

A registry object.

string $mimedb

Location of a MIME magic database.

getName()

getName() : string

Returns the name of the node.

This is used to generate the url.

Returns

string

getLastModified()

getLastModified() : integer

Returns the last modification time, as a unix timestamp

Returns

integer

getChildren()

getChildren() : array<mixed,\Sabre\DAV\INode>

Returns an array with all the child nodes

Returns

array<mixed,\Sabre\DAV\INode>

createFile()

createFile(string  $name, resource|string  $data = null) : null|string

Creates a new file in the directory

Parameters

string $name

Name of the file

resource|string $data

Initial payload

Returns

null|string

updateProperties()

updateProperties(array  $mutations) : boolean|array

Updates properties on this node.

Parameters

array $mutations

Returns

boolean|array

getProperties()

getProperties(array  $properties) : void

Returns a list of properties for this nodes.

Parameters

array $properties

propPatch()

propPatch(\Sabre\DAV\PropPatch  $propPatch) 

Parameters

\Sabre\DAV\PropPatch $propPatch