ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Invite.php
Go to the documentation of this file.
1<?php
2
4
8
23class Invite implements XmlSerializable {
24
30 public $sharees = [];
31
37 function __construct(array $sharees) {
38
39 $this->sharees = $sharees;
40
41 }
42
62 function xmlSerialize(Writer $writer) {
63
64 foreach ($this->sharees as $sharee) {
65 $writer->writeElement('{DAV:}sharee', $sharee);
66 }
67
68 }
69
70}
An exception for terminatinating execution or to throw for unit testing.
This class represents the {DAV:}sharee element.
Definition: Sharee.php:21
This class represents the {DAV:}invite property.
Definition: Invite.php:23
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
Definition: Invite.php:62
__construct(array $sharees)
Creates the property.
Definition: Invite.php:37
The XML Writer class.
Definition: Writer.php:31
writeElement($name, $content=null)
Write a full element tag and it's contents.
Definition: Writer.php:189
Objects implementing XmlSerializable can control how they are represented in Xml.