98 switch ($this->type) {
102 case self::TYPE_MEDIUM :
106 case self::TYPE_HIGH :
113 $writer->endElement();
127 switch ($this->type) {
128 case self::TYPE_LOW :
131 case self::TYPE_MEDIUM :
135 case self::TYPE_HIGH :
144 if ($this->description) {
145 $writer->
writeElement($cs .
'description', $this->description);
151 $writer->endElement();
writeAttribute($name, $value)
Writes a new attribute.
This interface reflects a single notification type.
startElement($name)
Opens a new element.
xmlSerialize(Writer $writer)
The serialize method is called during xml writing.
getId()
Returns a unique id for this notification.
SystemStatus notification.
xmlSerializeFull(Writer $writer)
This method serializes the entire notification, as it is used in the response body.
getETag()
Returns the ETag for this notification.
const NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
__construct($id, $etag, $type=self::TYPE_HIGH, $description=null, $href=null)
Creates the notification.
writeElement($name, $content=null)
Write a full element tag and it's contents.