protected function process_data(&$signal) { $result = parent::process_data($signal); $params = $this->get_task_params(); require_once dirname(__FILE__) . '/../../../../core/tasks//createaccount.php'; $task = new Task_Createaccount($this->core); $result = $task->go($params); $this->set_jobdata($result); return $result; }
protected function set_params($params) { $this->_set_param($params, 'summary'); $this->_set_param($params, 'section'); $this->_set_param($params, 'sectiontitle'); $this->_set_param($params, 'is_bot'); $this->_set_param($params, 'is_minor'); $this->_set_param($params, 'watch'); $this->_set_param($params, 'recreate'); $this->_set_param($params, 'createonly'); $this->_set_param($params, 'nocreate'); return parent::set_params($params); }
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//import_interwiki.php'; $task = new Task_ImportInterwiki($this->core); $result = $task->go($params); $this->set_jobdata($result, array('title' => $params['title'])); return $result; }
protected function process_data(&$signal) { $result = parent::process_data($signal); $params = $this->get_task_params(); $params['user'] = $signal->data_user($this->default_data_key); if (is_null($params['user'])) { return false; } require_once dirname(__FILE__) . '/../../../../core/tasks//userrights.php'; $task = new Task_Userrights($this->core); $result = $task->go($params); $this->set_jobdata($result, array('user' => $params['user'])); return $result; }
protected function process_data(&$signal) { $result = parent::process_data($signal); $params = $this->get_task_params(); $element = $signal->data_element($this->default_data_key); if (is_array($element)) { $params['xml'] = isset($element['xml']) ? $element['xml'] : NULL; } else { $params['xml'] = $element; } require_once dirname(__FILE__) . '/../../../../core/tasks//import_xml.php'; $task = new Task_ImportXML($this->core); $result = $task->go($params); $this->set_jobdata($result); return $result; }
protected function task_paramnames() { return array_merge(parent::task_paramnames(), array("reason", "expiry", "anononly", "nocreate", "autoblock", "noemail")); }
protected function task_paramnames() { return array_merge(parent::task_paramnames(), array("reason", "watch", "oldimage")); }
protected function task_paramnames() { return array_merge(parent::task_paramnames(), array("reason", "to_title", "noredirect", "movetalk", "movesubpages", "watch")); }