Skip to content

Commit 1de92a7

Browse files
author
Dennis van den Heerik
committed
-client from private to protected. To make it possible to extend the
client. -added reportBPE convert and parse
1 parent 4b48977 commit 1de92a7

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Mplusqapiclient.php

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class MplusQAPIclient
44
{
5-
const CLIENT_VERSION = '1.27.3';
5+
const CLIENT_VERSION = '1.27.4';
66
const WSDL_TTL = 300;
77

88
var $MIN_API_VERSION_MAJOR = 0;
@@ -44,7 +44,7 @@ class MplusQAPIclient
4444
/**
4545
* @var
4646
*/
47-
private $client = null;
47+
protected $client = null;
4848
/**
4949
* @var
5050
*/
@@ -5841,6 +5841,14 @@ public function parseReportResult($method, $soapReportResult)
58415841
}
58425842
}
58435843
break;
5844+
case "reportBPE":
5845+
$data = array();
5846+
if (isset($soapReportResult->bpeList->bpes)) {
5847+
foreach ($soapReportResult->bpeList->bpes as $soapBpes) {
5848+
$data[] = $soapBpes;
5849+
}
5850+
}
5851+
break;
58445852
}
58455853
return $data;
58465854
} // END parseReportResult()
@@ -8108,6 +8116,14 @@ public function convertReportRequest($method, $arguments)
81088116
'branchNumbers', 'employeeNumbers',
81098117
),
81108118
),
8119+
'reportBPE' => array(
8120+
'required' => array(
8121+
'fromFinancialDate', 'throughFinancialDate',
8122+
),
8123+
'optional' => array(
8124+
'branchNumbers', 'articleNumbers', 'perHour',
8125+
),
8126+
),
81118127
);
81128128
$request = [];
81138129
if (array_key_exists($method, $fields)) {

0 commit comments

Comments
 (0)