SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class DemoWorker

A basic demonstration of how worker jobs run, using WorkerBase

Variables

NameVisibilityDescription
$job_name 
$metric_names 

Functions

NameVisibilityDescription
__constructpublicConstructor
getMetricNamespublicGets the job name
getNamepublicGets the job name
runpublicDo the work which a worker must do

public __construct (from WorkerBase)

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 (from WorkerBase)

unknown $WorkerBase->getMetricNames ( );

Gets the job name

public getName (from WorkerBase)

unknown $WorkerBase->getName ( );

Gets the job name

public run

void $DemoWorker->run ( mixed $a , mixed $b , mixed $c );

Do the work which a worker must do