KMP PHP API Reference

QueueProgressHelper extends Helper
in package
uses LocatorAwareTrait

Table of Contents

Constants

CONFIG  = 'default'
KEY  = 'queue_queued-job-statistics'

Properties

$Progress  : ProgressHelper
$helpers  : array<string|int, mixed>
$statistics  : array<string, array<string|int, int>>|null

Methods

getTableLocator()  : TableLocator
htmlProgressBar()  : string|null
htmlTimeoutProgressBar()  : string|null
progress()  : string|null
Returns percentage as formatted value.
progressBar()  : string|null
Returns percentage as visual progress bar.
timeoutProgressBar()  : string|null
Returns percentage as visual progress bar.
calculateJobProgress()  : float|null
calculateTimeoutProgress()  : float|null
Calculates the timeout progress rate.
getJobStatistics()  : array<string|int, int>
readStatistics()  : array<string, array<string|int, int>>

Constants

Properties

Methods

htmlProgressBar()

public htmlProgressBar(QueuedJob $queuedJob[, string|null $fallbackHtml = null ]) : string|null
Parameters
$queuedJob : QueuedJob
$fallbackHtml : string|null = null
Return values
string|null

htmlTimeoutProgressBar()

public htmlTimeoutProgressBar(QueuedJob $queuedJob[, string|null $fallbackHtml = null ]) : string|null
Parameters
$queuedJob : QueuedJob
$fallbackHtml : string|null = null
Return values
string|null

progressBar()

Returns percentage as visual progress bar.

public progressBar(QueuedJob $queuedJob, int $length) : string|null
Parameters
$queuedJob : QueuedJob
$length : int
Return values
string|null

timeoutProgressBar()

Returns percentage as visual progress bar.

public timeoutProgressBar(QueuedJob $queuedJob, int $length) : string|null
Parameters
$queuedJob : QueuedJob
$length : int
Return values
string|null

calculateJobProgress()

protected calculateJobProgress(string $jobType, DateTime $fetched) : float|null
Parameters
$jobType : string
$fetched : DateTime
Return values
float|null

calculateTimeoutProgress()

Calculates the timeout progress rate.

protected calculateTimeoutProgress(QueuedJob $queuedJob) : float|null
Parameters
$queuedJob : QueuedJob
Return values
float|null

getJobStatistics()

protected getJobStatistics(string $jobType) : array<string|int, int>
Parameters
$jobType : string
Return values
array<string|int, int>

readStatistics()

protected readStatistics() : array<string, array<string|int, int>>
Return values
array<string, array<string|int, int>>

        
On this page

Search results