SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class WorkerBase

Base class for worker jobs, which are run via CLI in a separate process

Variables

NameVisibilityDescription
$job_name
Specify a custom job name by overwriting this
$metric_names
Specify up to three metrics

Functions

NameVisibilityDescription
__constructpublicConstructor
getMetricNamespublicGets the job name
getNamepublicGets the job name

public __construct

void $WorkerBase->__construct ( );

Constructor

Manually checks if the method 'run' exists,
because it's a varags,
so can't use the normal abstract function approach

public getMetricNames

unknown $WorkerBase->getMetricNames ( );

Gets the job name

public getName

unknown $WorkerBase->getName ( );

Gets the job name