Esempio n. 1
0
 protected function process_data(&$signal)
 {
     $result = parent::process_data($signal);
     $params = $this->get_task_params();
     $params['rcid'] = $signal->data_rcid($this->default_data_key);
     if (is_null($params['rcid'])) {
         return false;
     }
     require_once dirname(__FILE__) . '/../../../../core/tasks//patrol.php';
     $task = new Task_Patrol($this->core);
     $result = $task->go($params);
     $this->set_jobdata($result, array('rcid' => $params['rcid']));
     return $result;
 }
Esempio n. 2
0
 public function patrol($rcid)
 {
     $params = array('rcid' => $rcid);
     require_once dirname(__FILE__) . '/../../core/tasks/patrol.php';
     $task = new Task_Patrol($this->core);
     return $task->go($params);
 }