Documentation

LockDiscovery
in package
implements XmlSerializable

Represents {DAV:}lockdiscovery property.

This property is defined here: http://tools.ietf.org/html/rfc4918#section-15.8

This property contains all the open locks on a given resource

Tags
copyright

Copyright (C) fruux GmbH (https://fruux.com/)

author

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

license

http://sabre.io/license/ Modified BSD License

Interfaces, Classes and Traits

XmlSerializable
Objects implementing XmlSerializable can control how they are represented in Xml.

Table of Contents

$hideLockRoot  : bool
Hides the {DAV:}lockroot element from the response.
$locks  : array<string|int, LockInfo>
locks.
__construct()  : mixed
__construct.
xmlSerialize()  : mixed
The serialize method is called during xml writing.

Properties

$hideLockRoot

Hides the {DAV:}lockroot element from the response.

public static bool $hideLockRoot = false

It was reported that showing the lockroot in the response can break Office 2000 compatibility.

Methods

__construct()

__construct.

public __construct(array<string|int, LockInfo$locks) : mixed
Parameters
$locks : array<string|int, LockInfo>
Return values
mixed

xmlSerialize()

The serialize method is called during xml writing.

public xmlSerialize(Writer $writer) : mixed

It should use the $writer argument to encode this object into XML.

Important note: it is not needed to create the parent element. The parent element is already created, and we only have to worry about attributes, child elements and text (if any).

Important note 2: If you are writing any new elements, you are also responsible for closing them.

Parameters
$writer : Writer
Return values
mixed

Search results