|
@@ 362-368 (lines=7) @@
|
| 359 |
|
*/ |
| 360 |
|
public function invokeOperation($operation, array $params = null, $method = 'POST') |
| 361 |
|
{ |
| 362 |
|
if (!empty($params) || !is_array($params) || !$this->isAssocArray($params)) { |
| 363 |
|
$this->lastErrorMessage = new WSClientError( |
| 364 |
|
"You have to specified a list of operation parameters, |
| 365 |
|
but apparently it's not an associative array ('prop' => value), you must fix it!" |
| 366 |
|
); |
| 367 |
|
return false; |
| 368 |
|
} |
| 369 |
|
|
| 370 |
|
// Perform re-login if required |
| 371 |
|
$this->checkLogin(); |
|
@@ 676-682 (lines=7) @@
|
| 673 |
|
*/ |
| 674 |
|
private function checkParams(array $params, $paramsPurpose) |
| 675 |
|
{ |
| 676 |
|
if (empty($params) || !is_array($params) || !$this->isAssocArray($params)) { |
| 677 |
|
$this->lastErrorMessage = new WSClientError(sprintf( |
| 678 |
|
"You have to specify at least one search parameter (prop => value) in order to %s", |
| 679 |
|
$paramsPurpose |
| 680 |
|
)); |
| 681 |
|
return false; |
| 682 |
|
} |
| 683 |
|
return true; |
| 684 |
|
} |
| 685 |
|
|