apps/dav/lib/CalDAV/Search/SearchPlugin.php
/**
	 * This initializes the plugin.
	 *
	 * This function is called by Sabre\DAV\Server, after
	 * addPlugin is called.
	 *
	 * This method should set up the required event subscriptions.
	 *
	 * @param Server $server
	 */
This initializes the plugin.
This function is called by Sabre\DAV\Server, after
addPlugin is called.

This method should set up the required event subscriptions.

@param Server $server
This initializes the plugin . This function is called by Sabre \ DAV \ Server after addPlugin is called . This method should set up the required event subscriptions . @param Server $server
public function initialize(Server $server) {
		$this->server = $server;
		$server->on('report', [$this, 'report']);
		$server->xml->elementMap['{' . self::NS_Nextcloud . '}calendar-search'] =
			'OCA\\DAV\\CalDAV\\Search\\Xml\\Request\\CalendarSearchReport';
	}
public function initialize ( Server $ server ) { $ this -> server = $ server ; $ server -> on ( 'report' , [ $ this , 'report' ] ) ; $ server -> xml -> elementMap [ '{' . self :: NS_Nextcloud . '}calendar-search' ] = 'OCA\\DAV\\CalDAV\\Search\\Xml\\Request\\CalendarSearchReport' ; }
This initializes the plugin.
This initializes the plugin .