ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Node.php
Go to the documentation of this file.
1<?php
2
4
7use Sabre\DAV;
9
21class Node extends DAV\File implements INode, DAVACL\IACL {
22
23 use DAVACL\ACLTrait;
24
30 protected $caldavBackend;
31
37 protected $notification;
38
44 protected $principalUri;
45
53 function __construct(CalDAV\Backend\NotificationSupport $caldavBackend, $principalUri, NotificationInterface $notification) {
54
55 $this->caldavBackend = $caldavBackend;
56 $this->principalUri = $principalUri;
58
59 }
60
66 function getName() {
67
68 return $this->notification->getId() . '.xml';
69
70 }
71
79 function getETag() {
80
81 return $this->notification->getETag();
82
83 }
84
92
94
95 }
96
102 function delete() {
103
104 $this->caldavBackend->deleteNotification($this->getOwner(), $this->notification);
105
106 }
107
115 function getOwner() {
116
117 return $this->principalUri;
118
119 }
120
121}
An exception for terminatinating execution or to throw for unit testing.
This node represents a single notification.
Definition: Node.php:21
getOwner()
Returns the owner principal.
Definition: Node.php:115
__construct(CalDAV\Backend\NotificationSupport $caldavBackend, $principalUri, NotificationInterface $notification)
Constructor.
Definition: Node.php:53
getName()
Returns the path name for this notification.
Definition: Node.php:66
getNotificationType()
This method must return an xml element, using the Sabre\CalDAV\Xml\Notification\NotificationInterface...
Definition: Node.php:91
getETag()
Returns the etag for the notification.
Definition: Node.php:79
File class.
Definition: File.php:15
This node represents a single notification.
Definition: INode.php:21
This interface reflects a single notification type.
ACL-enabled node.
Definition: IACL.php:16
notification()
Definition: notification.php:2