PHP Class ScheduledTaskTool, pkp-lib

Inheritance: extends CommandLineTool
Mostra file Open project: pkp/pkp-lib Class Usage Examples

Public Properties

Property Type Description
$file the XML file listing the tasks to be executed
$taskDao the DAO object

Public Methods

Method Description
__construct ( $argv = [] ) Constructor.
execute ( ) Parse and execute the scheduled tasks.
executeTask ( $className, $args ) Execute the specified task.
parseTasks ( $file ) Parse and execute the scheduled tasks in the specified file.
usage ( ) Print command usage information.

Method Details

__construct() public method

Constructor.
public __construct ( $argv = [] )
$argv array command-line arguments If specified, the first parameter should be the path to a tasks XML descriptor file (other than the default)

execute() public method

Parse and execute the scheduled tasks.
public execute ( )

executeTask() public method

Execute the specified task.
public executeTask ( $className, $args )
$className string the class name to execute
$args array the array of arguments to pass to the class constructors

parseTasks() public method

Parse and execute the scheduled tasks in the specified file.
public parseTasks ( $file )
$file string

usage() public method

Print command usage information.
public usage ( )

Property Details

$file public_oe property

the XML file listing the tasks to be executed
public $file

$taskDao public_oe property

the DAO object
public $taskDao