Properties

$children

$children : 

Type

$url

$url : String

Type

String

$path

$path : 

Type

Methods

createFile()

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

Creates a new file in the directory

Data will either be supplied as a stream resource, or in certain cases as a string. Keep in mind that you may have to support either.

After succesful creation of the file, you may choose to return the ETag of the new file here.

The returned ETag must be surrounded by double-quotes (The quotes should be part of the actual string).

If you cannot accurately determine the ETag, you should not return it. If you don't store the file exactly as-is (you're transforming it somehow) you should also not return an ETag.

This means that if a subsequent GET to this new file does not exactly return the same contents of what was submitted here, you are strongly recommended to omit the ETag.

Parameters

string $name

Name of the file

resource|string $data

Initial payload

Returns

null|string

createDirectory()

createDirectory(string  $name) : void

Creates a new subdirectory

Parameters

string $name

getChild()

getChild(string  $name) : \Sabre\DAV\INode

Returns a specific child node, referenced by its name

Parameters

string $name

Throws

\Sabre\DAV\Exception\NotFound

Returns

\Sabre\DAV\INode

getChildren()

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

Returns an array with all the child nodes

Returns

array<mixed,\Sabre\DAV\INode>

childExists()

childExists(string  $name) : boolean

Checks if a child-node with the specified name exists

Parameters

string $name

Returns

boolean

getUrl()

getUrl() : String

Returns

String

delete()

delete() : void

Deleted the current node

getName()

getName() : string

Returns the name of the node.

This is used to generate the url.

Returns

string

setName()

setName(string  $name) : void

Renames the node

Parameters

string $name

The new name

getLastModified()

getLastModified() : integer

Returns the last modification time, as a unix timestamp

Returns

integer

updateProperties()

updateProperties(array  $properties) : boolean|array

Updates properties on this node,

Parameters

array $properties

Returns

boolean|array

getProperties()

getProperties(array  $properties) : array

Returns a list of properties for this nodes.;

The properties list is a list of propertynames the client requested, encoded as xmlnamespace#tagName, for example: http://www.example.org/namespace#author If the array is empty, all properties should be returned

Parameters

array $properties

Returns

array

putResourceData()

putResourceData(  $array, null  $newURL = null) 

Metadata manager

Parameters

$array
null $newURL

getResourceData()

getResourceData() : array

Metadata manager

Returns

array