[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/ -> functions_task.php (summary)

MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved Website: http://mybb.com License: http://mybb.com/about/license

File Size: 371 lines (9 kb)
Included or required: 6 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  run_task()
  add_task_log()
  fetch_next_run()
  build_next_run_bit()
  fetch_first_run_time()
  run_time_exists()

Functions
Functions that are not part of a class:

run_task($tid=0)   X-Ref
Execute a scheduled task.

param: int The task ID. If none specified, the next task due to be ran is executed
return: boolean True if successful, false on failure

add_task_log($task, $message)   X-Ref
Adds information to the scheduled task log.

param: int The task array to create the log entry for
param: string The message to log

fetch_next_run($task)   X-Ref
Generate the next run time for a particular task.

param: array The task array as fetched from the database.
return: int The next run time as a UNIX timestamp

build_next_run_bit($data, $bit)   X-Ref
Builds the next run time bit for a particular item (day, hour, month etc). Used by fetch_next_run().

param: string A string containing the run timse for this particular item
param: int The current value (be it current day etc)
return: int The new or found value

fetch_first_run_time($data)   X-Ref
Fetches the fist run bit for a particular item (day, hour, month etc). Used by fetch_next_run().

param: string A string containing the run times for this particular item
return: int The first run time

run_time_exists($data, $bit)   X-Ref
Checks if a specific run time exists for a particular item (day, hour, month etc). Used by fetch_next_run().

param: string A string containing the run times for this particular item
param: int The bit we're checking for
return: boolean True if it exists, false if it does not



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1