ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
VCF Exporter. More...
Public Member Functions | |
initialize (DAV\Server $server) | |
Initializes the plugin and registers event handlers. More... | |
httpGet (RequestInterface $request, ResponseInterface $response) | |
Intercepts GET requests on addressbook urls ending with ?export. More... | |
generateVCF (array $nodes) | |
Merges all vcard objects, and builds one big vcf export. More... | |
getPluginName () | |
Returns a plugin name. More... | |
getPluginInfo () | |
Returns a bunch of meta-data about the plugin. More... | |
Public Member Functions inherited from Sabre\DAV\ServerPlugin | |
initialize (Server $server) | |
This initializes the plugin. More... | |
getFeatures () | |
This method should return a list of server-features. More... | |
getHTTPMethods ($path) | |
Use this method to tell the server this plugin defines additional HTTP methods. More... | |
getPluginName () | |
Returns a plugin name. More... | |
getSupportedReportSet ($uri) | |
Returns a list of reports this plugin supports. More... | |
getPluginInfo () | |
Returns a bunch of meta-data about the plugin. More... | |
Protected Attributes | |
$server | |
VCF Exporter.
This plugin adds the ability to export entire address books as .vcf files. This is useful for clients that don't support CardDAV yet. They often do support vcf files.
Definition at line 22 of file VCFExportPlugin.php.
Sabre\CardDAV\VCFExportPlugin::generateVCF | ( | array | $nodes | ) |
Merges all vcard objects, and builds one big vcf export.
array | $nodes |
Definition at line 113 of file VCFExportPlugin.php.
References Sabre\VObject\$output, Sabre\CardDAV\Plugin\NS_CARDDAV, and Sabre\VObject\Reader\read().
Referenced by Sabre\CardDAV\VCFExportPlugin\httpGet().
Sabre\CardDAV\VCFExportPlugin::getPluginInfo | ( | ) |
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.
Definition at line 162 of file VCFExportPlugin.php.
References Sabre\CardDAV\VCFExportPlugin\getPluginName().
Sabre\CardDAV\VCFExportPlugin::getPluginName | ( | ) |
Returns a plugin name.
Using this name other plugins will be able to access other plugins using ::getPlugin
Definition at line 145 of file VCFExportPlugin.php.
Referenced by Sabre\CardDAV\VCFExportPlugin\getPluginInfo().
Sabre\CardDAV\VCFExportPlugin::httpGet | ( | RequestInterface | $request, |
ResponseInterface | $response | ||
) |
Intercepts GET requests on addressbook urls ending with ?export.
RequestInterface | $request | |
ResponseInterface | $response |
Definition at line 55 of file VCFExportPlugin.php.
References $aclPlugin, $filename, $format, $nodes, Sabre\VObject\$output, $path, Sabre\CardDAV\VCFExportPlugin\generateVCF(), Sabre\HTTP\RequestInterface\getPath(), Sabre\HTTP\RequestInterface\getQueryParameters(), Sabre\CardDAV\Plugin\NS_CARDDAV, Sabre\HTTP\MessageInterface\setBody(), Sabre\HTTP\MessageInterface\setHeader(), and Sabre\HTTP\ResponseInterface\setStatus().
Sabre\CardDAV\VCFExportPlugin::initialize | ( | DAV\Server | $server | ) |
Initializes the plugin and registers event handlers.
DAV\Server | $server |
Definition at line 37 of file VCFExportPlugin.php.
References $path, and Sabre\CardDAV\VCFExportPlugin\$server.
|
protected |
Definition at line 29 of file VCFExportPlugin.php.
Referenced by Sabre\CardDAV\VCFExportPlugin\initialize().