|
@@ 106-114 (lines=9) @@
|
| 103 |
|
* @return array Array with elements like array('user_id_value' => 'value', 'result' => array('code' => 0, 'message' => 'Operation was successful')). Note that if the result array contains a code different |
| 104 |
|
* than 0, an error occured |
| 105 |
|
*/ |
| 106 |
|
public function DisableUsers($secret_key, $users) |
| 107 |
|
{ |
| 108 |
|
$verifKey = $this->verifyKey($secret_key); |
| 109 |
|
if ($verifKey instanceof WSError) { |
| 110 |
|
// Let the implementation handle it |
| 111 |
|
$this->handleError($verifKey); |
| 112 |
|
} else { |
| 113 |
|
return $this->changeUsersActiveState($users, 0); |
| 114 |
|
} |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
/** |
|
@@ 149-157 (lines=9) @@
|
| 146 |
|
* @return array Array with elements like array('user_id_value' => 'value', 'result' => array('code' => 0, 'message' => 'Operation was successful')). Note that if the result array contains a code different |
| 147 |
|
* than 0, an error occured |
| 148 |
|
*/ |
| 149 |
|
public function EnableUsers($secret_key, $users) |
| 150 |
|
{ |
| 151 |
|
$verifKey = $this->verifyKey($secret_key); |
| 152 |
|
if ($verifKey instanceof WSError) { |
| 153 |
|
// Let the implementation handle it |
| 154 |
|
$this->handleError($verifKey); |
| 155 |
|
} else { |
| 156 |
|
return $this->changeUsersActiveState($users, 1); |
| 157 |
|
} |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
/** |