Methods |
public
|
__construct(BackendInterface $caldavBackend, array $calendarInfo, array $objectData)
Constructor.
Constructor.
The following properties may be passed within $objectData:
- calendarid - This must refer to a calendarid from a caldavBackend
- uri - A unique uri. Only the 'basename' must be passed.
- calendardata (optional) - The iCalendar data
- etag - (optional) The etag for this object, MUST be encloded with
double-quotes.
- size - (optional) The size of the data in bytes.
- lastmodified - (optional) format as a unix timestamp.
- acl - (optional) Use this to override the default ACL for the node.
|
#
|
public
|
getName(): string
Returns the uri for this object.
Returns the uri for this object.
Implements
|
#
|
public
|
get(): string
Returns the ICalendar-formatted object.
Returns the ICalendar-formatted object.
Overrides
Implements
|
#
|
public
|
put(string|resource $calendarData): string
Updates the ICalendar-formatted object.
Updates the ICalendar-formatted object.
Overrides
Implements
|
#
|
public
|
delete()
Deletes the calendar object.
Deletes the calendar object.
Overrides
Implements
|
#
|
public
|
getContentType(): string
Returns the mime content-type.
Returns the mime content-type.
Overrides
Implements
|
#
|
public
|
getETag(): string
Returns an ETag for this object.
Returns an ETag for this object.
The ETag is an arbitrary string, but MUST be surrounded by double-quotes.
Overrides
Implements
|
#
|
public
|
getLastModified(): int
Returns the last modification date as a unix timestamp.
Returns the last modification date as a unix timestamp.
Overrides
Implements
|
#
|
public
|
getSize(): int
Returns the size of this object in bytes.
Returns the size of this object in bytes.
Overrides
Implements
|
#
|
public
|
getOwner(): string|null
Returns the owner principal.
Returns the owner principal.
This must be a url to a principal, or null if there's no owner
Implements
|
#
|
public
|
getACL(): array
Returns a list of ACE's for this node.
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.
Implements
|
#
|