protected function process_data(&$signal) { $result = parent::process_data($signal); $params = $this->get_task_params(); $params['title'] = $signal->data_title($this->default_data_key); if (is_null($params['title'])) { return false; } require_once dirname(__FILE__) . '/../../../../core/tasks//delete_title.php'; $task = new Task_DeleteTitle($this->core); $result = $task->go($params); $this->set_jobdata($result, array('title' => $params['title'])); return $result; }
public function delete_title($title, $reason, $watch = NULL, $oldimage = NULL) { $params = array('title' => $title, 'reason' => $reason, 'watch' => $watch, 'oldimage' => $oldimage); require_once dirname(__FILE__) . '/../../core/tasks/delete_title.php'; $task = new Task_DeleteTitle($this->core); return $task->go($params); }