ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AllowedSharingModes.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
26 
32  protected $canBeShared;
33 
39  protected $canBePublished;
40 
49 
50  $this->canBeShared = $canBeShared;
51  $this->canBePublished = $canBePublished;
52 
53  }
54 
74  function xmlSerialize(Writer $writer) {
75 
76  if ($this->canBeShared) {
77  $writer->writeElement('{' . Plugin::NS_CALENDARSERVER . '}can-be-shared');
78  }
79  if ($this->canBePublished) {
80  $writer->writeElement('{' . Plugin::NS_CALENDARSERVER . '}can-be-published');
81  }
82 
83  }
84 
85 
86 
87 }
Objects implementing XmlSerializable can control how they are represented in Xml. ...
__construct($canBeShared, $canBePublished)
Constructor.
const NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
Definition: Plugin.php:38
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
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