Methods |
public
|
getHTTPMethods(string $uri): array
Use this method to tell the server this plugin defines additional
HTTP methods.
Use this method to tell the server this plugin defines additional
HTTP methods.
This method is passed a uri. It should only return HTTP methods that are
available for the specified uri.
Overrides
Overriden by
|
#
|
public
|
getCalendarHomeForPrincipal(string $principalUrl): string
Returns the path to a principal's calendar home.
Returns the path to a principal's calendar home.
The return url must not end with a slash.
This function should return null in case a principal did not have
a calendar home.
Overriden by
|
#
|
public
|
getFeatures(): array
Returns a list of features for the DAV: HTTP header.
Returns a list of features for the DAV: HTTP header.
Overrides
|
#
|
public
|
getPluginName(): string
Returns a plugin name.
Returns a plugin name.
Using this name other plugins will be able to access other plugins
using DAV\Server::getPlugin
Overrides
|
#
|
public
|
getSupportedReportSet(string $uri): array
Returns a list of reports this plugin supports.
Returns a list of reports this plugin supports.
This will be used in the {DAV:}supported-report-set property.
Note that you still need to subscribe to the 'report' event to actually
implement them
Overrides
|
#
|
public
|
initialize(Server $server)
Initializes the plugin.
|
#
|
public
|
report(string $reportName, mixed $report, mixed $path): bool|null
This functions handles REPORT requests specific to CalDAV.
This functions handles REPORT requests specific to CalDAV.
|
#
|
public
|
httpMkCalendar(RequestInterface $request, ResponseInterface $response): bool
This function handles the MKCALENDAR HTTP method, which creates
a new calendar.
This function handles the MKCALENDAR HTTP method, which creates
a new calendar.
|
#
|
public
|
propFind(PropFind $propFind, INode $node)
PropFind.
PropFind.
This method handler is invoked before any after properties for a
resource are fetched. This allows us to add in any CalDAV specific
properties.
|
#
|
public
|
calendarMultiGetReport(CalendarMultiGetReport $report)
This function handles the calendar-multiget REPORT.
This function handles the calendar-multiget REPORT.
This report is used by the client to fetch the content of a series
of urls. Effectively avoiding a lot of redundant requests.
|
#
|
public
|
calendarQueryReport(CalendarQueryReport $report)
This function handles the calendar-query REPORT.
This function handles the calendar-query REPORT.
This report is used by clients to request calendar objects based on
complex conditions.
|
#
|
public
|
beforeWriteContent(string $path, IFile $node, resource &$data, bool &$modified)
This method is triggered before a file gets updated with new content.
This method is triggered before a file gets updated with new content.
This plugin uses this method to ensure that CalDAV objects receive
valid calendar data.
Parameters
$modified |
should be set to true, if this event handler
changed &$data
|
Overriden by
|
#
|
public
|
beforeCreateFile(string $path, resource &$data, ICollection $parentNode, bool &$modified)
This method is triggered before a new file is created.
This method is triggered before a new file is created.
This plugin uses this method to ensure that newly created calendar
objects contain valid calendar data.
Parameters
$modified |
should be set to true, if this event handler
changed &$data
|
Overriden by
|
#
|
public
|
getSupportedPrivilegeSet(INode $node, array &$supportedPrivilegeSet)
This method is triggered whenever a subsystem reqeuests the privileges
that are supported on a particular node.
This method is triggered whenever a subsystem reqeuests the privileges
that are supported on a particular node.
|
#
|
public
|
htmlActionsPanel(INode $node, string &$output): bool
This method is used to generate HTML output for the
DAV\Browser\Plugin. This allows us to generate an interface users…
This method is used to generate HTML output for the
DAV\Browser\Plugin. This allows us to generate an interface users
can use to create new calendars.
|
#
|
public
|
httpAfterGet(RequestInterface $request, ResponseInterface $response)
This event is triggered after GET requests.
This event is triggered after GET requests.
This is used to transform data into jCal, if this was requested.
|
#
|
public
|
getPluginInfo(): array
Returns a bunch of meta-data about the plugin.
Returns a bunch of meta-data about the plugin.
Providing this information is optional, and is mainly displayed by the
Browser plugin.
The description key in the returned array may contain html and will not
be sanitized.
Overrides
|
#
|