/**
  * @see WOTAPIAction::execute()
  */
 public function execute()
 {
     $this->userIDsArray = explode(',', $this->userIDsStr);
     foreach ($this->userIDsArray as $userID) {
         $accountEditor = new AccountEditor($userID);
         $accountEditor->delete();
         $this->userObjsArray[$userID] = $accountEditor;
     }
     parent::execute();
 }
Ejemplo n.º 2
0
 /**
  * Creates a new user row
  */
 protected function createUser()
 {
     // check
     $sql = "SELECT COUNT(*)\n\t\t\t\t\tAS count\n\t\t\t\tFROM ugml_users\n\t\t\t\tWHERE id = " . $this->userID;
     $result = WCF::getDB()->getFirstRow($sql);
     if ($result['count'] > 0) {
         $this->wotAPIServerClient->send('user already exists', 300);
         return false;
     }
     AccountEditor::create($this->userID, $this->username, $this->email);
     return true;
 }
 /**
  * @see WOTAPIAction::execute()
  */
 public function execute()
 {
     $account = new AccountEditor($this->userID1);
     $account->doSwitch($this->userID2);
     parent::execute();
 }
 /**
  * @see WOTAPIAction::execute()
  */
 public function execute()
 {
     $account = new AccountEditor($this->data['userid1']);
     $account->doSwitch($this->data['userid2']);
 }