<?php /** * @file ScheduledTask.inc.php * * Copyright (c) 2000-2008 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @package core * @class ScheduledTask * * Base class for executing scheduled tasks. * All scheduled task classes must extend this class and implement execute(). * * $Id: ScheduledTask.inc.php,v 1.5 2008/04/04 17:06:46 asmecher Exp $ */ class ScheduledTask { /** @var array task arguments */ var $args; function ScheduledTask($args = array()) { $this->args = $args; } /** * Fallback method in case task does not implement execute method. */ function execute() { fatalError("ScheduledTask does not implement execute()!\n"); } } ?>