public function propFindEarly(DAV\PropFind $propFind, DAV\INode $node)
    {
        if ($node instanceof ISharedCalendar) {
            $propFind->handle('{'.Plugin::NS_CALENDARSERVER.'}invite', function () use ($node) {
                return new Xml\Property\Invite(
                    $node->getInvites()
                );
            });
        }
    }
public function propFindEarly(DAV\PropFind $propFind, DAV\INode $node)
    {
        if ($node instanceof ISharedCalendar) {
            $propFind->handle('{'.Plugin::NS_CALENDARSERVER.'}invite', function () use ($node) {
                return new Xml\Property\Invite(
                    $node->getInvites()
                );
            });
        }
    }
public function propFindEarly ( DAV \ PropFind $ propFind , DAV \ INode $ node ) { if ( $ node instanceof ISharedCalendar ) { $ propFind -> handle ( '{' . Plugin :: NS_CALENDARSERVER . '}invite' , function ( ) use ( $ node ) { return new Xml \ Property \ Invite ( $ node -> getInvites ( ) ) ; } ) ; } }
This event is triggered when properties are requested for a certain
node.

This allows us to inject any properties early.

@param DAV\PropFind $propFind
@param DAV\INode    $node
This event is triggered when properties are requested for a certain node .