public function init() { parent::init(); $this->displayError(); $this->setMemoryLimit('1024M'); $this->setTimeLimt(-1); }
public function init() { parent::init(); self::$logDir = '/tmp/process/'; if (!is_dir(self::$logDir)) { mkdir(self::$logDir, 0777, true); } self::$cliPath = APPLICATION_PATH . '/cli/cli.php'; }
/** * Init * * @return mixed * * @author Sebastian Diel <*****@*****.**> * @since 14.05.2012 */ public function init() { $result = parent::init(); if (array_key_exists('argv', $_SERVER)) { $args = $_SERVER['argv']; if (is_array($args)) { array_shift($args); array_shift($args); foreach ($args as $arg) { if (strpos($arg, '=') !== false) { list($name, $value) = explode('=', $arg); } else { $name = $arg; $value = true; } $this->setCliArg($name, $value); } } } return $result; }
public function init() { parent::init(); }
public function init() { Deprecation::notice('3.1', 'ScheduledTask, QuarterHourlyTask, HourlyTask, DailyTask, MonthlyTask, WeeklyTask and ' . 'YearlyTask are deprecated, please extend from BuildTask or CliController, ' . 'and invoke them in self-defined frequencies through Unix cronjobs etc.'); parent::init(); }