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