Copied!

BulkTranslationJobFinishedEvent

BulkTranslationJobFinishedEvent.php : 22
Final
Extends Event

Emitted once a bulk translation job has run to a terminal state ({@see JobStatus::STATUS_COMPLETED}, {@see JobStatus::STATUS_FOR_REVIEW} or {@see JobStatus::STATUS_FAILED}), regardless of whether the user it ran as can still be notified.

A JobStatus::STATUS_FOR_REVIEW job may or may not have failed items, so the count travels with it. The job is the one loaded before it finished; its terminal status and failed items count are the event's own.

Properties

public $failedItems read-only

BulkTranslationJobFinishedEvent.php : 27
public int $failedItems

public $job read-only

BulkTranslationJobFinishedEvent.php : 25
public Job $job

public $status read-only

BulkTranslationJobFinishedEvent.php : 26
public JobStatus $status

Methods

public__construct()

BulkTranslationJobFinishedEvent.php : 24
public __construct(Job $job, JobStatus $status, int $failedItems)

Parameters

Name Type Default value Description
$job Job - -
$status JobStatus - -
$failedItems int - -

publicisPropagationStopped()

Event.php : 35
public isPropagationStopped() : bool

Return values

bool

publicstopPropagation()

Event.php : 47

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().