Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public function createaccount($name, $password, $domain = NULL, $email = NULL, $realname = NULL, $mailpassword = NULL, $reason = NULL, $language = NULL)
 {
     $params = array('name' => $name, 'password' => $password, 'domain' => $domain, 'email' => $email, 'realname' => $realname, 'mailpassword' => $mailpassword, 'reason' => $reason, 'language' => $language);
     require_once dirname(__FILE__) . '/../../core/tasks/createaccount.php';
     $task = new Task_Createaccount($this->core);
     return $task->go($params);
 }