/core/functions_cron.php

Description

Core Cron Job and automated task functions for ILance.

  • author: ILance
  • version: $Revision: 1.0.0 $
Functions
build_cron_next_runtime (line 236)

Function to build a cron job's next execution time

  • return: array with next run information
array build_cron_next_runtime ([integer $nextrun = ''])
  • integer $nextrun: cron id
construct_cron_item (line 151)

Function to determine the next run time for a particular task within the ILance automation system

  • return: returns next run time (or 0)
integer construct_cron_item (integer $cronid, [array $data = ''])
  • integer $cronid: cron id
  • array $data: cron data array
execute_task (line 255)

Function to execute a task within the cron job system

nothing execute_task ([integer $cronid = null])
  • integer $cronid: cron id (default null)
fetch_cron_next_minute (line 130)

Fetches the next minute for a particular cron job

boolean fetch_cron_next_minute (array $minutedata, integer $minute)
  • array $minutedata: minute array
  • integer $minute: minute
fetch_cron_next_run (line 58)

Fetches the next run time for a particular cron job

  • return: Return single date array
array fetch_cron_next_run (string $data, [integer $hour = -2], [integer $minute = -2])
  • string $data: date array
  • integer $hour: hour
  • integer $minute: minute
log_cron_action (line 32)

Function to log actions created by specific cron job tasks in the system

nothing log_cron_action (string $description, array $nextitem)
  • string $description: description of task
  • array $nextitem: array holding the next cron job item details

Documentation generated on Mon, 08 Aug 2011 17:40:58 +0200 by phpDocumentor 1.4.1