|
@@ 358-364 (lines=7) @@
|
| 355 |
|
*/ |
| 356 |
|
public function invokeOperation($operation, array $params = null, $method = 'POST') |
| 357 |
|
{ |
| 358 |
|
if (!empty($params) || !is_array($params) || !$this->isAssocArray($params)) { |
| 359 |
|
$this->lastErrorMessage = new WSClientError( |
| 360 |
|
"You have to specified a list of operation parameters, |
| 361 |
|
but apparently it's not an associative array ('prop' => value), you must fix it!" |
| 362 |
|
); |
| 363 |
|
return false; |
| 364 |
|
} |
| 365 |
|
|
| 366 |
|
// Perform re-login if required |
| 367 |
|
$this->checkLogin(); |
|
@@ 655-661 (lines=7) @@
|
| 652 |
|
*/ |
| 653 |
|
private function checkParams(array $params, $paramsPurpose) |
| 654 |
|
{ |
| 655 |
|
if (empty($params) || !is_array($params) || !$this->isAssocArray($params)) { |
| 656 |
|
$this->lastErrorMessage = new WSClientError(sprintf( |
| 657 |
|
"You have to specify at least one search parameter (prop => value) in order to %s", |
| 658 |
|
$paramsPurpose |
| 659 |
|
)); |
| 660 |
|
return false; |
| 661 |
|
} |
| 662 |
|
return true; |
| 663 |
|
} |
| 664 |
|
|