Nextcloud PHP API (master)

BeforeSabrePubliclyLoadedEvent extends SabrePluginEvent
in package

Dispatched before Sabre is loaded when accessing public webdav endpoints This can be used to inject a Sabre plugin for example

Tags
since
26.0.0

Table of Contents

Properties

$message  : string
$server  : Server
$statusCode  : int
$propagationStopped  : bool

Methods

__construct()  : mixed
Compatibility constructor
getMessage()  : string
getServer()  : null|Server
getStatusCode()  : int
isPropagationStopped()  : bool
{@inheritDoc}
setMessage()  : self
setStatusCode()  : self
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Properties

$propagationStopped

private bool $propagationStopped = false
Tags
since
22.0.0

Methods

__construct()

Compatibility constructor

public __construct() : mixed

In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base class that had a constructor (with default arguments). To lower the risk of a breaking change (PHP won't allow parent constructor calls if there is none), this empty constructor's only purpose is to hopefully not break existing sub- classes of this class.

Tags
since
18.0.0

getMessage()

public getMessage() : string
Tags
since
8.2.0
Return values
string

getServer()

public getServer() : null|Server
Tags
since
9.0.0
Return values
null|Server

getStatusCode()

public getStatusCode() : int
Tags
since
8.2.0
Return values
int

isPropagationStopped()

{@inheritDoc}

public isPropagationStopped() : bool
Tags
since
22.0.0
see
StoppableEventInterface
Return values
bool

setMessage()

public setMessage(string $message) : self
Parameters
$message : string
Tags
since
8.2.0
Return values
self

setStatusCode()

public setStatusCode(int $statusCode) : self
Parameters
$statusCode : int
Tags
since
8.2.0
Return values
self

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results