public function initialize(DAV\Server $server)
    {
        $this->server = $server;
        $this->server->on('method:GET', [$this, 'httpGet'], 90);
        $server->on('browserButtonActions', function ($path, $node, &$actions) {
            if ($node instanceof IAddressBook) {
                $actions .= '<a href="'.htmlspecialchars($path, ENT_QUOTES, 'UTF-8').'?export"><span class="oi" data-glyph="book"></span></a>';
            }
        });
    }
public function initialize(DAV\Server $server)
    {
        $this->server = $server;
        $this->server->on('method:GET', [$this, 'httpGet'], 90);
        $server->on('browserButtonActions', function ($path, $node, &$actions) {
            if ($node instanceof IAddressBook) {
                $actions .= '<a href="'.htmlspecialchars($path, ENT_QUOTES, 'UTF-8').'?export"><span class="oi" data-glyph="book"></span></a>';
            }
        });
    }
public function initialize ( DAV \ Server $ server ) { $ this -> server = $ server ; $ this -> server -> on ( 'method:GET' , [ $ this , 'httpGet' ] , 90 ) ; $ server -> on ( 'browserButtonActions' , function ( $ path , $ node , & $ actions ) { if ( $ node instanceof IAddressBook ) { $ actions .= '<a href="' . htmlspecialchars ( $ path , ENT_QUOTES , 'UTF-8' ) . '?export"><span class="oi" data-glyph="book"></span></a>' ; } } ) ; }
Initializes the plugin and registers event handlers.

@param DAV\Server $server
Initializes the plugin and registers event handlers .