| @@ 194-205 (lines=12) @@ | ||
| 191 | * @param mixed $reason optional reason for suspend/unsuspend |
|
| 192 | * @return mixed |
|
| 193 | */ |
|
| 194 | public function suspend($serial = FALSE, $ipAddress = FALSE, $reason = FALSE) { |
|
| 195 | if ($serial !== FALSE) { |
|
| 196 | $this->params['license_serial'] = $serial; |
|
| 197 | } |
|
| 198 | if ($ipAddress !== FALSE) { |
|
| 199 | $this->params['server_ip'] = $ipAddress; |
|
| 200 | } |
|
| 201 | if ($reason !== FALSE) { |
|
| 202 | $this->params['reason'] = $reason; |
|
| 203 | } |
|
| 204 | return $this->req('Suspend'); |
|
| 205 | } |
|
| 206 | ||
| 207 | /** |
|
| 208 | * Unsuspend a license. |
|
| @@ 215-226 (lines=12) @@ | ||
| 212 | * @param mixed $reason optional reason for suspend/unsuspend |
|
| 213 | * @return mixed |
|
| 214 | */ |
|
| 215 | public function unsuspend($serial = FALSE, $ipAddress = FALSE, $reason = FALSE) { |
|
| 216 | if ($serial !== FALSE) { |
|
| 217 | $this->params['license_serial'] = $serial; |
|
| 218 | } |
|
| 219 | if ($ipAddress !== FALSE) { |
|
| 220 | $this->params['server_ip'] = $ipAddress; |
|
| 221 | } |
|
| 222 | if ($reason !== FALSE) { |
|
| 223 | $this->params['reason'] = $reason; |
|
| 224 | } |
|
| 225 | return $this->req('Unsuspend'); |
|
| 226 | } |
|
| 227 | ||
| 228 | /** |
|
| 229 | * @param bool $serial |
|