PHP Class Jobby\BackgroundJob

Mostrar archivo Open project: hellogerard/jobby Class Usage Examples

Protected Properties

Property Type Description
$config array
$helper Helper
$job string
$tmpDir string

Public Methods

Method Description
__construct ( string $job, array $config, Helper $helper = null )
run ( )

Protected Methods

Method Description
checkMaxRuntime ( string $lockFile )
getLockFile ( ) : string
getLogfile ( ) : string
log ( string $message )
mail ( string $message )
runFile ( )
runFunction ( )
shouldRun ( ) : boolean

Method Details

__construct() public method

public __construct ( string $job, array $config, Helper $helper = null )
$job string
$config array
$helper Helper

checkMaxRuntime() protected method

protected checkMaxRuntime ( string $lockFile )
$lockFile string

getLockFile() protected method

protected getLockFile ( ) : string
return string

getLogfile() protected method

protected getLogfile ( ) : string
return string

log() protected method

protected log ( string $message )
$message string

mail() protected method

protected mail ( string $message )
$message string

run() public method

public run ( )

runFile() protected method

protected runFile ( )

runFunction() protected method

protected runFunction ( )

shouldRun() protected method

protected shouldRun ( ) : boolean
return boolean

Property Details

$config protected_oe property

protected array $config
return array

$helper protected_oe property

protected Helper,jobby $helper
return Helper

$job protected_oe property

protected string $job
return string

$tmpDir protected_oe property

protected string $tmpDir
return string