ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
groupwareserver.php File Reference

Go to the source code of this file.

Functions

 exception_error_handler ($errno, $errstr, $errfile, $errline)
 Mapping PHP errors to exceptions. More...
 

Variables

 $pdo = new \PDO('sqlite:data/db.sqlite')
 Make sure this setting is turned on and reflect the root url for your WebDAV server. More...
 
 $authBackend = new \Sabre\DAV\Auth\Backend\PDO($pdo)
 The backends. More...
 
 $principalBackend = new \Sabre\DAVACL\PrincipalBackend\PDO($pdo)
 
 $carddavBackend = new \Sabre\CardDAV\Backend\PDO($pdo)
 
 $caldavBackend = new \Sabre\CalDAV\Backend\PDO($pdo)
 
 $nodes
 The directory tree. More...
 
 $server = new \Sabre\DAV\Server($nodes)
 

Function Documentation

◆ exception_error_handler()

exception_error_handler (   $errno,
  $errstr,
  $errfile,
  $errline 
)

Mapping PHP errors to exceptions.

While this is not strictly needed, it makes a lot of sense to do so. If an E_NOTICE or anything appears in your code, this allows SabreDAV to intercept the issue and send a proper response back to the client (HTTP/1.1 500).

Definition at line 45 of file groupwareserver.php.

45  {
46  throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
47 }

Variable Documentation

◆ $authBackend

$authBackend = new \Sabre\DAV\Auth\Backend\PDO($pdo)

The backends.

Yes we do really need all of them.

This allows any developer to subclass just any of them and hook into their own backend systems.

Definition at line 59 of file groupwareserver.php.

◆ $caldavBackend

◆ $carddavBackend

$carddavBackend = new \Sabre\CardDAV\Backend\PDO($pdo)

Definition at line 61 of file groupwareserver.php.

◆ $nodes

$nodes
Initial value:
= [
new \Sabre\CalDAV\Principal\Collection($principalBackend),
new \Sabre\CalDAV\CalendarRoot($principalBackend, $caldavBackend),
new \Sabre\CardDAV\AddressBookRoot($principalBackend, $carddavBackend),
]
$carddavBackend
$principalBackend
$caldavBackend

The directory tree.

Basically this is an array which contains the 'top-level' directories in the WebDAV server.

Definition at line 70 of file groupwareserver.php.

◆ $pdo

$pdo = new \PDO('sqlite:data/db.sqlite')

Make sure this setting is turned on and reflect the root url for your WebDAV server.

This can be for example the root / or a complete path to your server script. Database

Feel free to switch this to MySQL, it will definitely be better for higher concurrency.

Definition at line 35 of file groupwareserver.php.

◆ $principalBackend

$principalBackend = new \Sabre\DAVACL\PrincipalBackend\PDO($pdo)

Definition at line 60 of file groupwareserver.php.

◆ $server

$server = new \Sabre\DAV\Server($nodes)

Definition at line 80 of file groupwareserver.php.