PHP Class Jobby\Jobby

Inheritance: use trait SerializerTrait
Exibir arquivo Open project: hellogerard/jobby Class Usage Examples

Protected Properties

Property Type Description
$config array
$helper Helper
$jobs array
$script string

Public Methods

Method Description
__construct ( array $config = [] )
add ( string $job, array $config ) Add a job.
getConfig ( ) : array
getDefaultConfig ( ) : array
run ( ) Run all jobs.
setConfig ( array $config )

Protected Methods

Method Description
getExecutableCommand ( string $job, array $config ) : string
getHelper ( ) : Helper
getPhpBinary ( ) : false | string
runUnix ( string $job, array $config )
runWindows ( string $job, array $config )

Method Details

__construct() public method

public __construct ( array $config = [] )
$config array

add() public method

Add a job.
public add ( string $job, array $config )
$job string
$config array

getConfig() public method

public getConfig ( ) : array
return array

getDefaultConfig() public method

public getDefaultConfig ( ) : array
return array

getExecutableCommand() protected method

protected getExecutableCommand ( string $job, array $config ) : string
$job string
$config array
return string

getHelper() protected method

protected getHelper ( ) : Helper
return Helper

getPhpBinary() protected method

protected getPhpBinary ( ) : false | string
return false | string

run() public method

Run all jobs.
public run ( )

runUnix() protected method

protected runUnix ( string $job, array $config )
$job string
$config array

runWindows() protected method

protected runWindows ( string $job, array $config )
$job string
$config array

setConfig() public method

public setConfig ( array $config )
$config array

Property Details

$config protected_oe property

protected array $config
return array

$helper protected_oe property

protected Helper,jobby $helper
return Helper

$jobs protected_oe property

protected array $jobs
return array

$script protected_oe property

protected string $script
return string