Nextcloud PHP API (master)

BeforeDirectFileDownloadEvent extends Event
in package

This event is triggered when a user tries to download a file directly.

Tags
since
25.0.0

Table of Contents

Properties

$errorMessage  : string|null
$path  : string
$propagationStopped  : bool
$successful  : bool

Methods

__construct()  : mixed
Compatibility constructor
getErrorMessage()  : string|null
Get the error message, if any
getPath()  : string
isPropagationStopped()  : bool
{@inheritDoc}
isSuccessful()  : bool
setErrorMessage()  : void
setSuccessful()  : void
Set if the event was successful
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(string $path) : mixed
Parameters
$path : string
Tags
since
25.0.0

getErrorMessage()

Get the error message, if any

public getErrorMessage() : string|null
Tags
since
25.0.0
Return values
string|null

isPropagationStopped()

{@inheritDoc}

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

setSuccessful()

Set if the event was successful

public setSuccessful(bool $successful) : void
Parameters
$successful : bool
Tags
since
25.0.0

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results