Properties

$url

$url : String

Type

String

$path

$path : 

Type

Methods

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

put()

put(resource  $data) : null|string

Updates the data

The data argument is a readable stream resource.

After a succesful put operation, you may choose to return an ETag. The etag must always be surrounded by double-quotes. These quotes must appear in the actual string you're returning.

Clients may use the ETag from a PUT request to later on make sure that when they update the file, the contents haven't changed in the mean time.

If you don't plan to store the file byte-by-byte, and you return a different object on a subsequent GET you are strongly recommended to not return an ETag, and just return null.

Parameters

resource $data

Throws

\Sabre\DAV\Exception\Forbidden

Returns

null|string

get()

get() : mixed

Returns the data

This method may either return a string or a readable stream resource

Returns

mixed

getContentType()

getContentType() : void|string

Returns the mime-type for a file

If null is returned, we'll assume application/octet-stream

Returns

void|string

getETag()

getETag() : String|null

Returns the ETag for a file

An ETag is a unique identifier representing the current version of the file. If the file changes, the ETag MUST change.

Return null if the ETag can not effectively be determined

Returns

String|null

getSize()

getSize() : integer

Returns the size of the node, in bytes

Returns

integer

putResourceData()

putResourceData(  $array, null  $newURL = null) 

Metadata manager

Parameters

$array
null $newURL

getResourceData()

getResourceData() : array

Metadata manager

Returns

array