ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CalDAV\Schedule\Outbox Class Reference

The CalDAV scheduling outbox. More...

+ Inheritance diagram for Sabre\CalDAV\Schedule\Outbox:
+ Collaboration diagram for Sabre\CalDAV\Schedule\Outbox:

Public Member Functions

 __construct ($principalUri)
 Constructor. More...
 
 getName ()
 Returns the name of the node. More...
 
 getChildren ()
 Returns an array with all the child nodes. More...
 
 getOwner ()
 Returns the owner principal. More...
 
 getACL ()
 Returns a list of ACE's for this node. More...
 
- Public Member Functions inherited from Sabre\DAV\Collection
 getChild ($name)
 Returns a child object, by its name. More...
 
 childExists ($name)
 Checks is a child-node exists. More...
 
 createFile ($name, $data=null)
 Creates a new file in the directory. More...
 
 createDirectory ($name)
 Creates a new subdirectory. More...
 
- Public Member Functions inherited from Sabre\DAV\Node
 getLastModified ()
 Returns the last modification time as a unix timestamp. More...
 
 delete ()
 Deletes the current node. More...
 
 setName ($name)
 Renames the node. More...
 
- Public Member Functions inherited from Sabre\DAVACL\IACL
 getGroup ()
 Returns a group principal. More...
 
 setACL (array $acl)
 Updates the ACL. More...
 
 getSupportedPrivilegeSet ()
 Returns the list of supported privileges for this node. More...
 

Protected Attributes

 $principalUri
 

Detailed Description

The CalDAV scheduling outbox.

The outbox is mainly used as an endpoint in the tree for a client to do free-busy requests. This functionality is completely handled by the Scheduling plugin, so this object is actually mostly static.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 20 of file Outbox.php.

Constructor & Destructor Documentation

◆ __construct()

Sabre\CalDAV\Schedule\Outbox::__construct (   $principalUri)

Constructor.

Parameters
string$principalUri

Definition at line 36 of file Outbox.php.

References Sabre\CalDAV\Schedule\Outbox\$principalUri.

36  {
37 
38  $this->principalUri = $principalUri;
39 
40  }

Member Function Documentation

◆ getACL()

Sabre\CalDAV\Schedule\Outbox::getACL ( )

Returns a list of ACE's for this node.

Each ACE has the following properties:

  • 'privilege', a string such as {DAV:}read or {DAV:}write. These are currently the only supported privileges
  • 'principal', a url to the principal who owns the node
  • 'protected' (optional), indicating that this ACE is not allowed to be updated.
Returns
array

Implements Sabre\DAVACL\IACL.

Definition at line 91 of file Outbox.php.

References Sabre\CalDAV\Schedule\Outbox\getOwner(), and Sabre\CalDAV\Plugin\NS_CALDAV.

91  {
92 
93  return [
94  [
95  'privilege' => '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-send',
96  'principal' => $this->getOwner(),
97  'protected' => true,
98  ],
99  [
100  'privilege' => '{DAV:}read',
101  'principal' => $this->getOwner(),
102  'protected' => true,
103  ],
104  [
105  'privilege' => '{' . CalDAV\Plugin::NS_CALDAV . '}schedule-send',
106  'principal' => $this->getOwner() . '/calendar-proxy-write',
107  'protected' => true,
108  ],
109  [
110  'privilege' => '{DAV:}read',
111  'principal' => $this->getOwner() . '/calendar-proxy-read',
112  'protected' => true,
113  ],
114  [
115  'privilege' => '{DAV:}read',
116  'principal' => $this->getOwner() . '/calendar-proxy-write',
117  'protected' => true,
118  ],
119  ];
120 
121  }
getOwner()
Returns the owner principal.
Definition: Outbox.php:73
const NS_CALDAV
This is the official CalDAV namespace.
Definition: Plugin.php:33
+ Here is the call graph for this function:

◆ getChildren()

Sabre\CalDAV\Schedule\Outbox::getChildren ( )

Returns an array with all the child nodes.

Returns
[]

Implements Sabre\DAV\ICollection.

Definition at line 60 of file Outbox.php.

60  {
61 
62  return [];
63 
64  }

◆ getName()

Sabre\CalDAV\Schedule\Outbox::getName ( )

Returns the name of the node.

This is used to generate the url.

Returns
string

Implements Sabre\DAV\INode.

Definition at line 49 of file Outbox.php.

49  {
50 
51  return 'outbox';
52 
53  }

◆ getOwner()

Sabre\CalDAV\Schedule\Outbox::getOwner ( )

Returns the owner principal.

This must be a url to a principal, or null if there's no owner

Returns
string|null

Implements Sabre\DAVACL\IACL.

Definition at line 73 of file Outbox.php.

References Sabre\CalDAV\Schedule\Outbox\$principalUri.

Referenced by Sabre\CalDAV\Schedule\Outbox\getACL().

73  {
74 
75  return $this->principalUri;
76 
77  }
+ Here is the caller graph for this function:

Field Documentation

◆ $principalUri

Sabre\CalDAV\Schedule\Outbox::$principalUri
protected

The documentation for this class was generated from the following file: