| @@ 74-91 (lines=18) @@ | ||
| 71 | /** |
|
| 72 | * @return array of Merchants |
|
| 73 | */ |
|
| 74 | public function getMerchants() : array |
|
| 75 | { |
|
| 76 | if (!$this->checkLogin()) { |
|
| 77 | return array(); |
|
| 78 | } |
|
| 79 | $arrResult = array(); |
|
| 80 | $merchantList = $this->_network->getMerchantList(); |
|
| 81 | foreach($merchantList as $merchant) { |
|
| 82 | $Merchant = Merchant::createInstance(); |
|
| 83 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 84 | $Merchant->name = $merchant['name']; |
|
| 85 | $Merchant->url = $merchant['url']; |
|
| 86 | $Merchant->status = $merchant['status']; |
|
| 87 | $arrResult[] = $Merchant; |
|
| 88 | } |
|
| 89 | ||
| 90 | return $arrResult; |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * @param int|null $merchantID |
|
| @@ 71-88 (lines=18) @@ | ||
| 68 | /** |
|
| 69 | * @return array of Merchants |
|
| 70 | */ |
|
| 71 | public function getMerchants() : array |
|
| 72 | { |
|
| 73 | if (!$this->checkLogin()) { |
|
| 74 | return array(); |
|
| 75 | } |
|
| 76 | $arrResult = array(); |
|
| 77 | $merchantList = $this->_network->getMerchantList(); |
|
| 78 | foreach($merchantList as $merchant) { |
|
| 79 | $Merchant = Merchant::createInstance(); |
|
| 80 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 81 | $Merchant->name = $merchant['name']; |
|
| 82 | $Merchant->status = $merchant['status']; |
|
| 83 | $Merchant->url = $merchant['url']; |
|
| 84 | $arrResult[] = $Merchant; |
|
| 85 | } |
|
| 86 | ||
| 87 | return $arrResult; |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * @param int $merchantID |
|
| @@ 81-96 (lines=16) @@ | ||
| 78 | /** |
|
| 79 | * @return array of Merchants |
|
| 80 | */ |
|
| 81 | public function getMerchants() : array |
|
| 82 | { |
|
| 83 | $arrResult = array(); |
|
| 84 | $merchantList = $this->_network->getMerchantList(); |
|
| 85 | foreach($merchantList as $merchant) { |
|
| 86 | $Merchant = Merchant::createInstance(); |
|
| 87 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 88 | $Merchant->name = $merchant['name']; |
|
| 89 | // Added more info - 2018-04-23 <PN> |
|
| 90 | $Merchant->status = $merchant['status']; |
|
| 91 | $Merchant->url = $merchant['url']; |
|
| 92 | $arrResult[] = $Merchant; |
|
| 93 | } |
|
| 94 | ||
| 95 | return $arrResult; |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * @param int $merchantID to filter only one merchant |
|
| @@ 76-92 (lines=17) @@ | ||
| 73 | /** |
|
| 74 | * @return array of Merchants |
|
| 75 | */ |
|
| 76 | public function getMerchants() : array |
|
| 77 | { |
|
| 78 | if (!$this->checkLogin()) { |
|
| 79 | return array(); |
|
| 80 | } |
|
| 81 | $arrResult = array(); |
|
| 82 | $merchantList = $this->_network->getMerchantList(); |
|
| 83 | foreach($merchantList as $merchant) { |
|
| 84 | $Merchant = Merchant::createInstance(); |
|
| 85 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 86 | $Merchant->name = $merchant['name']; |
|
| 87 | $Merchant->url = $merchant['url']; |
|
| 88 | $Merchant->status = $merchant['status']; |
|
| 89 | $arrResult[] = $Merchant; |
|
| 90 | } |
|
| 91 | return $arrResult; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param int|null $merchantID |
|
| @@ 74-87 (lines=14) @@ | ||
| 71 | /** |
|
| 72 | * @return array of Merchants |
|
| 73 | */ |
|
| 74 | public function getMerchants() : array |
|
| 75 | { |
|
| 76 | $arrResult = array(); |
|
| 77 | $merchantList = $this->_network->getMerchantList(); |
|
| 78 | foreach($merchantList as $merchant) { |
|
| 79 | $Merchant = Merchant::createInstance(); |
|
| 80 | $Merchant->merchant_ID = $merchant['cid']; |
|
| 81 | $Merchant->name = $merchant['name']; |
|
| 82 | $Merchant->status = $merchant['status']; |
|
| 83 | $Merchant->termination_date = $merchant['termination_date']; |
|
| 84 | $arrResult[] = $Merchant; |
|
| 85 | } |
|
| 86 | return $arrResult; |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * @param int $merchantID |
|