|
2 | 2 |
|
3 | 3 | class MplusQAPIclient |
4 | 4 | { |
5 | | - const CLIENT_VERSION = '1.1.1'; |
| 5 | + const CLIENT_VERSION = '1.1.2'; |
6 | 6 |
|
7 | 7 | var $MIN_API_VERSION_MAJOR = 0; |
8 | 8 | var $MIN_API_VERSION_MINOR = 9; |
@@ -575,10 +575,10 @@ public function getDeliveryMethods() |
575 | 575 |
|
576 | 576 | //---------------------------------------------------------------------------- |
577 | 577 |
|
578 | | - public function getProducts($articleNumbers = array(), $groupNumbers = array(), $pluNumbers = array(), $changedSinceTimestamp = null, $changedSinceBranchNumber = null, $syncMarker = null) |
| 578 | + public function getProducts($articleNumbers = array(), $groupNumbers = array(), $pluNumbers = array(), $changedSinceTimestamp = null, $changedSinceBranchNumber = null, $syncMarker = null, $onlyWebshop = null, $onlyActive = null) |
579 | 579 | { |
580 | 580 | try { |
581 | | - $result = $this->client->getProducts($this->parser->convertGetProductsRequest($articleNumbers, $groupNumbers, $pluNumbers, $changedSinceTimestamp, $changedSinceBranchNumber, $syncMarker)); |
| 581 | + $result = $this->client->getProducts($this->parser->convertGetProductsRequest($articleNumbers, $groupNumbers, $pluNumbers, $changedSinceTimestamp, $changedSinceBranchNumber, $syncMarker, $onlyWebshop, $onlyActive)); |
582 | 582 | return $this->parser->parseProducts($result); |
583 | 583 | } catch (SoapFault $e) { |
584 | 584 | throw new MplusQAPIException('SoapFault occurred: '.$e->getMessage(), 0, $e); |
@@ -2680,7 +2680,7 @@ public function parseUpdateProductResult($soapUpdateProductResult) { |
2680 | 2680 |
|
2681 | 2681 | //---------------------------------------------------------------------------- |
2682 | 2682 |
|
2683 | | - public function convertGetProductsRequest($articleNumbers, $groupNumbers, $pluNumbers, $changedSinceTimestamp, $changedSinceBranchNumber, $syncMarker) |
| 2683 | + public function convertGetProductsRequest($articleNumbers, $groupNumbers, $pluNumbers, $changedSinceTimestamp, $changedSinceBranchNumber, $syncMarker, $onlyWebshop, $onlyActive) |
2684 | 2684 | { |
2685 | 2685 | if ( ! is_array($articleNumbers)) { |
2686 | 2686 | if (is_null($articleNumbers)) { |
@@ -2715,6 +2715,12 @@ public function convertGetProductsRequest($articleNumbers, $groupNumbers, $pluNu |
2715 | 2715 | if ( ! is_null($syncMarker)) { |
2716 | 2716 | $array['request']['syncMarker'] = (int)$syncMarker; |
2717 | 2717 | } |
| 2718 | + if ( ! is_null($onlyWebshop) and is_bool($onlyWebshop)) { |
| 2719 | + $array['request']['onlyWebshop'] = $onlyWebshop; |
| 2720 | + } |
| 2721 | + if ( ! is_null($onlyActive) and is_bool($onlyActive)) { |
| 2722 | + $array['request']['onlyActive'] = $onlyActive; |
| 2723 | + } |
2718 | 2724 | $object = arrayToObject($array); |
2719 | 2725 | return $object; |
2720 | 2726 | } // END convertGetProductsRequest() |
|
0 commit comments