Nextcloud PHP API (master)

IProvider

Interface IProvider

Tags
since
11.0.0

Table of Contents

Methods

parse()  : IEvent

Methods

parse()

public parse(string $language, IEvent $event[, IEvent|null $previousEvent = null ]) : IEvent
Parameters
$language : string

The language which should be used for translating, e.g. "en"

$event : IEvent

The current event which should be parsed

$previousEvent : IEvent|null = null

A potential previous event which you can combine with the current one. To do so, simply use setChildEvent($previousEvent) after setting the combined subject on the current event.

Tags
throws
UnknownActivityException

Should be thrown if your provider does not know this event

since
11.0.0
since
30.0.0

Providers should throw UnknownActivityException instead of \InvalidArgumentException when they did not handle the event. Throwing \InvalidArgumentException directly is deprecated and will be logged as an error in Nextcloud 39.

Return values
IEvent

        
On this page

Search results