| @@ 390-399 (lines=10) @@ | ||
| 387 | public function fetchUsing($methodAndParams) |
|
| 388 | { |
|
| 389 | // simple case |
|
| 390 | if (is_string($methodAndParams) || empty($methodAndParams['method'])) { |
|
| 391 | if (in_array($methodAndParams, ['GetNextElement', 'getNextElement'])) { |
|
| 392 | $this->fetchUsing = ['method' => 'GetNextElement', 'params' => [true, true]]; |
|
| 393 | $this->select(['FIELDS', 'PROPERTY_*']); |
|
| 394 | } else { |
|
| 395 | parent::fetchUsing($methodAndParams); |
|
| 396 | } |
|
| 397 | ||
| 398 | return $this; |
|
| 399 | } |
|
| 400 | ||
| 401 | // complex case |
|
| 402 | if (in_array($methodAndParams['method'], ['GetNextElement', 'getNextElement'])) { |
|
| @@ 43-49 (lines=7) @@ | ||
| 40 | public function fetchUsing($methodAndParams) |
|
| 41 | { |
|
| 42 | // simple case |
|
| 43 | if (is_string($methodAndParams) || empty($methodAndParams['method'])) { |
|
| 44 | $this->fetchUsing = in_array($methodAndParams, ['GetNext', 'getNext']) |
|
| 45 | ? ['method' => 'GetNext', 'params' => [true, true]] |
|
| 46 | : ['method' => 'Fetch']; |
|
| 47 | ||
| 48 | return $this; |
|
| 49 | } |
|
| 50 | ||
| 51 | // complex case |
|
| 52 | if (in_array($methodAndParams['method'], ['GetNext', 'getNext'])) { |
|