Stud.IP  4.2 Revision
cronjobs.php File Reference

Variables

 $argc = $_SERVER['argc']
 
 $argv = $_SERVER['argv']
 
 $opts = getopt('hl', array('help', 'list'))
 
if(isset($opts['l'])||isset($opts['list'])) if($argc< 2||isset($opts['h'])||isset($opts['help'])) $id = $_SERVER['argv'][1]
 
 $last_result = $argc > 2 ? $_SERVER['argv'][2] : null
 
 $task = CronjobTask::find($id)
 
if(! $task) if (!file_exists( $GLOBALS[ 'STUDIP_BASE_PATH'] . '/' . $task->filename))
 

Variable Documentation

◆ $argc

$argc = $_SERVER['argc']

◆ $argv

$argv = $_SERVER['argv']

◆ $id

if (isset( $opts[ 'l'])||isset( $opts[ 'list'])) if ( $argc< 2||isset( $opts[ 'h'])||isset( $opts[ 'help'])) $id = $_SERVER['argv'][1]

◆ $last_result

$last_result = $argc > 2 ? $_SERVER['argv'][2] : null

◆ $opts

$opts = getopt('hl', array('help', 'list'))

◆ $task

$task = CronjobTask::find($id)

◆ if

if (! $task) if(!file_exists($GLOBALS['STUDIP_BASE_PATH'] . '/' . $task->filename))