Example #1
0
 public function init()
 {
     parent::init();
     $this->displayError();
     $this->setMemoryLimit('1024M');
     $this->setTimeLimt(-1);
 }
Example #2
0
 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';
 }
Example #3
0
 /**
  * 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;
 }
Example #4
0
 public function init()
 {
     parent::init();
 }
Example #5
0
 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();
 }