Nextcloud PHP API (master)

BeforePreviewFetchedEvent extends Event
in package

Base event class for the event dispatcher service

Tags
since
25.0.1

Table of Contents

Properties

$crop  : bool|null
$height  : int|null
$mode  : string|null
$node  : Node
$propagationStopped  : bool
$width  : int|null

Methods

__construct()  : mixed
Compatibility constructor
getHeight()  : int|null
getMode()  : null|IPreview::MODE_FILL|IPreview::MODE_COVER
getNode()  : Node
getWidth()  : int|null
isCrop()  : bool|null
isPropagationStopped()  : bool
{@inheritDoc}
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(Node $node[, int|null $width = null ][, int|null $height = null ][, bool|null $crop = null ][, string|null $mode = null ]) : mixed
Parameters
$node : Node
$width : int|null = null
$height : int|null = null
$crop : bool|null = null
$mode : string|null = null
Tags
since
25.0.1

getMode()

public getMode() : null|IPreview::MODE_FILL|IPreview::MODE_COVER
Tags
since
28.0.0
Return values
null|IPreview::MODE_FILL|IPreview::MODE_COVER

isPropagationStopped()

{@inheritDoc}

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

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results