Invite
in package
implements
XmlSerializable
Invite property.
This property encodes the 'invite' property, as defined by the 'caldav-sharing-02' spec, in the http://calendarserver.org/ns/ namespace.
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>
- The list of users a calendar has been shared to.
- __construct() : mixed
- Creates the property.
- getValue() : array<string|int, mixed>
- Returns the list of users, as it was passed to the constructor.
- xmlSerialize() : mixed
- The xmlSerialize method is called during xml writing.
Properties
$sharees
The list of users a calendar has been shared to.
protected
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 —getValue()
Returns the list of users, as it was passed to the constructor.
public
getValue() : array<string|int, mixed>
Return values
array<string|int, 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