Invite
in package
implements
XmlSerializable
This class represents the {DAV:}invite property.
This property is defined here: https://tools.ietf.org/html/draft-pot-webdav-resource-sharing-03#section-4.4.2
This property is used by clients to determine who currently has access to a shared resource, what their access level is and what their invite status is.
Tags
Interfaces, Classes and Traits
- XmlSerializable
- Objects implementing XmlSerializable can control how they are represented in Xml.
Table of Contents
- $sharees : array<string|int, Sharee>
- A list of sharees.
- __construct() : mixed
- Creates the property.
- xmlSerialize() : mixed
- The xmlSerialize method is called during xml writing.
Properties
$sharees
A list of sharees.
public
array<string|int, Sharee>
$sharees
= []
Methods
__construct()
Creates the property.
public
__construct(array<string|int, Sharee> $sharees) : mixed
Parameters
- $sharees : array<string|int, Sharee>
Return values
mixed —xmlSerialize()
The xmlSerialize method is called during xml writing.
public
xmlSerialize(Writer $writer) : mixed
Use the $writer argument to write its own xml serialization.
An important note: do not create a parent element. Any element implementing XmlSerializable should only ever write what's considered its 'inner xml'.
The parent of the current element is responsible for writing a containing element.
This allows serializers to be re-used for different element names.
If you are opening new elements, you must also close them again.
Parameters
- $writer : Writer