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}
An exception for terminatinating execution or to throw for unit testing.
CalDAV plugin.
Definition: Plugin.php:28
const NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
Definition: Plugin.php:38
__construct($canBeShared, $canBePublished)
Constructor.
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
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.