Properties

$id

$id : 

Type

$enable

$enable : 

Type

$class

$class : 

Type

$function

$function : 

Type

$schedule

$schedule : 

Type

$timeout

$timeout : 

Type

$deamon

$deamon : 

Type

$deamonSleepTime

$deamonSleepTime : 

Type

$option

$option : 

Type

$once

$once : 

Type

Methods

all()

all(  $_order = false) : array

Return an array of all cron object

Parameters

$_order

Returns

array

byId()

byId(integer  $_id) : object

Get cron object associate to id

Parameters

integer $_id

Returns

object

byClassAndFunction()

byClassAndFunction(string  $_class, string  $_function, string  $_option = '') : object

Return cron object corresponding to parameters

Parameters

string $_class
string $_function
string $_option

Returns

object

searchClassAndFunction()

searchClassAndFunction(\type  $_class, \type  $_function, \type  $_option = '') : \type

Parameters

\type $_class
\type $_function
\type $_option

Returns

\type

clean()

clean() 

nbCronRun()

nbCronRun() : integer

Return number of cron running

Returns

integer

nbProcess()

nbProcess() : integer

Return number of process on system

Returns

integer

loadAvg()

loadAvg() : array

Return array of load average

Returns

array

setPidFile()

setPidFile() 

Set jeecron pid of current process

getPidFile()

getPidFile() : integer

Return the current pid of jeecron or empty if not running

Returns

integer

jeeCronRun()

jeeCronRun() : boolean

Return state of jeecron master

Returns

boolean

convertDateToCron()

convertDateToCron(  $_date) 

Parameters

$_date

preSave()

preSave() 

Check if cron object is valid before save

Throws

\Exception

postInsert()

postInsert() 

save()

save() : boolean

Save cron object

Returns

boolean

remove()

remove(  $halt_before = true) : boolean

Remove cron object

Parameters

$halt_before

Returns

boolean

start()

start() 

Set cron to be start

run()

run(  $_noErrorReport = false) 

Launch cron (this method must be only call by jeecron master)

Parameters

$_noErrorReport

Throws

\Exception

running()

running() : boolean

Check if this cron is currently running

Returns

boolean

refresh()

refresh() : boolean

Refresh DB state of this cron

Returns

boolean

stop()

stop() 

halt()

halt() 

isDue()

isDue() : boolean

Check if it's time to launch cron

Returns

boolean

getNextRunDate()

getNextRunDate() 

getName()

getName() : string

Get human name of cron

Returns

string

toArray()

toArray() 

getId()

getId() 

getClass()

getClass() 

getFunction()

getFunction() 

getLastRun()

getLastRun() 

getState()

getState() 

getEnable()

getEnable(  $_default) 

Parameters

$_default

getPID()

getPID(  $_default = null) 

Parameters

$_default

setId()

setId(  $id) 

Parameters

$id

setEnable()

setEnable(  $enable) 

Parameters

$enable

setClass()

setClass(  $class) 

Parameters

$class

setFunction()

setFunction(  $function) 

Parameters

$function

setLastRun()

setLastRun(  $lastRun) 

Parameters

$lastRun

setState()

setState(  $state) 

Parameters

$state

setPID()

setPID(  $pid = null) 

Parameters

$pid

getSchedule()

getSchedule() 

setSchedule()

setSchedule(  $schedule) 

Parameters

$schedule

getDeamon()

getDeamon() 

setDeamon()

setDeamon(  $deamons) 

Parameters

$deamons

getTimeout()

getTimeout() 

setTimeout()

setTimeout(  $timeout) 

Parameters

$timeout

getDeamonSleepTime()

getDeamonSleepTime() 

setDeamonSleepTime()

setDeamonSleepTime(  $deamonSleepTime) 

Parameters

$deamonSleepTime

getOption()

getOption() 

getOnce()

getOnce(  $_default) 

Parameters

$_default

setOption()

setOption(  $option) 

Parameters

$option

setOnce()

setOnce(  $once) 

Parameters

$once

getCache()

getCache(  $_key = '',   $_default = '') 

Parameters

$_key
$_default

setCache()

setCache(  $_key,   $_value = null) 

Parameters

$_key
$_value