Skip to content

IcmsAutoTasksCron

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

IcmsAutoTasksCron

some parts are taked from CronTab class developed by cjpa@audiophile.com

Properties

$_lines

private mixed $_lines = array()
  • Visibility: private

$_line_id

private mixed $_line_id = -1
  • Visibility: private

Methods

__construct

mixed IcmsAutoTasksCron::__construct()

Constructor

  • Visibility: public

needStart

mixed icms_sys_autotasks_ISystem::needStart()

Checks if need set new timer when automated task object was executed

@return bool

canRun

bool icms_sys_autotasks_ISystem::canRun()

check if can run

getCronCommandLine

string IcmsAutoTasksCron::getCronCommandLine()

Get crontab command line

  • Visibility: public

start

bool icms_sys_autotasks_ISystem::start(int interval)

Set Checking Interval (if not enabled enables automated tasks system

Arguments

  • interval int - <p>interval of checking for new tasks</p>

getInterval

mixed IcmsAutoTasksCron::getInterval()
  • Visibility: public

getIntervalArray

mixed IcmsAutoTasksCron::getIntervalArray(mixed interval)
  • Visibility: public

Arguments

  • interval mixed

getCronTabValue

mixed IcmsAutoTasksCron::getCronTabValue(mixed number)
  • Visibility: public

Arguments

  • number mixed

getNormalValue

mixed IcmsAutoTasksCron::getNormalValue(mixed crontab_number)
  • Visibility: public

Arguments

  • crontab_number mixed

stop

bool icms_sys_autotasks_ISystem::stop()

Stops automated tasks system

isEnabled

bool icms_sys_autotasks_ISystem::isEnabled()

checks if core is enabled

getCommandLine

string IcmsAutoTasksCron::getCommandLine()

gets command executed

  • Visibility: public

getProcessId

int IcmsAutoTasksCron::getProcessId()

gets running process id

  • Visibility: public

getCronTabUser

mixed IcmsAutoTasksCron::getCronTabUser()
  • Visibility: public

readCronTab

mixed IcmsAutoTasksCron::readCronTab()

Reads cron tab file and parses to $this->_lines array

  • Visibility: public

writeCronTab

mixed IcmsAutoTasksCron::writeCronTab()

Writes crontab files back to where it belongs

  • Visibility: public

getName

string icms_sys_autotasks_ISystem::getName()

Gets current system name

needExecution

bool icms_sys_autotasks_ISystem::needExecution()

Returns if handler needs to be executed

needExit

bool icms_sys_autotasks_ISystem::needExit()

Returns if script must end when there is all tasks executed

Clone this wiki locally