Nextcloud PHP API (master)

MetadataBackgroundEvent extends AMetadataEvent
in package

MetadataBackgroundEvent is an event similar to MetadataLiveEvent but dispatched on a background thread instead of live thread. Meaning there is no limit to the time required for the generation of your metadata.

Tags
see
AMetadataEvent::getMetadata()
see
AMetadataEvent::getNode()
since
28.0.0

Table of Contents

Properties

$metadata  : IFilesMetadata
$node  : Node
$propagationStopped  : bool

Methods

__construct()  : mixed
Compatibility constructor
getMetadata()  : IFilesMetadata
returns metadata. if known, it already contains data from the database.
getNode()  : Node
returns related node
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

getMetadata()

returns metadata. if known, it already contains data from the database.

public getMetadata() : IFilesMetadata

If the object is modified using its setters, changes are stored in database at the end of the event.

Tags
since
28.0.0
Return values
IFilesMetadata

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