4 * This node represents a single notification.
6 * The signature is mostly identical to that of Sabre_DAV_IFile, but the get() method
7 * MUST return an xml document that matches the requirements of the
8 * 'caldav-notifications.txt' spec.
12 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
13 * @author Evert Pot (http://www.rooftopsolutions.nl/)
14 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
16 class Sabre_CalDAV_Notifications_Node extends Sabre_DAV_Node implements Sabre_CalDAV_Notifications_INode {
19 * The notification backend
21 * @var Sabre_CalDAV_Backend_NotificationSupport
23 protected $caldavBackend;
26 * The actual notification
28 * @var Sabre_CalDAV_Notifications_INotificationType
30 protected $notification;
35 * @param Sabre_CalDAV_Backend_NotificationSupport $caldavBackend
36 * @param Sabre_CalDAV_Notifications_INotificationType $notification
38 public function __construct(Sabre_CalDAV_Backend_NotificationSupport $caldavBackend, Sabre_CalDAV_Notifications_INotificationType $notification) {
40 $this->caldavBackend = $caldavBackend;
41 $this->notification = $notification;
46 * Returns the path name for this notification
50 public function getName() {
52 return $this->notification->getId();
57 * This method must return an xml element, using the
58 * Sabre_CalDAV_Notifications_INotificationType classes.
60 * @return Sabre_DAVNotification_INotificationType
62 public function getNotificationType() {
64 return $this->notification;