Nextcloud PHP API (master)

BeforeZipCreatedEvent extends Event
in package

Base event class for the event dispatcher service

Tags
since
25.0.0

Table of Contents

Properties

$directory  : string
$errorMessage  : string|null
$files  : array<string|int, mixed>
$propagationStopped  : bool
$successful  : bool

Methods

__construct()  : mixed
Compatibility constructor
getDirectory()  : string
getErrorMessage()  : string|null
Get the error message, if any
getFiles()  : array<string|int, mixed>
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 $directory, array<string|int, mixed> $files) : mixed
Parameters
$directory : string
$files : array<string|int, mixed>
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

getFiles()

public getFiles() : array<string|int, mixed>
Tags
since
25.0.0
Return values
array<string|int, mixed>

isPropagationStopped()

{@inheritDoc}

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

setErrorMessage()

public setErrorMessage(string $errorMessage) : void
Parameters
$errorMessage : string
Tags
since
25.0.0

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