ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Invite.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\DAV\Xml\Property;
4 
8 
23 class 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 }
Objects implementing XmlSerializable can control how they are represented in Xml. ...
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
This class represents the {DAV:}invite property.
Definition: Invite.php:23
writeElement($name, $content=null)
Write a full element tag and it&#39;s contents.
Definition: Writer.php:189
The XML Writer class.
Definition: Writer.php:31