| @@ 52-58 (lines=7) @@ | ||
| 49 | } |
|
| 50 | ||
| 51 | // complex case |
|
| 52 | if (in_array($methodAndParams['method'], ['GetNext', 'getNext'])) { |
|
| 53 | $bTextHtmlAuto = isset($methodAndParams['params'][0]) ? $methodAndParams['params'][0] : true; |
|
| 54 | $useTilda = isset($methodAndParams['params'][1]) ? $methodAndParams['params'][1] : true; |
|
| 55 | $this->fetchUsing = ['method' => 'GetNext', 'params' => [$bTextHtmlAuto, $useTilda]]; |
|
| 56 | } else { |
|
| 57 | $this->fetchUsing = ['method' => 'Fetch']; |
|
| 58 | } |
|
| 59 | ||
| 60 | return $this; |
|
| 61 | } |
|
| @@ 390-397 (lines=8) @@ | ||
| 387 | } |
|
| 388 | ||
| 389 | // complex case |
|
| 390 | if (in_array($methodAndParams['method'], ['GetNextElement', 'getNextElement'])) { |
|
| 391 | $bTextHtmlAuto = isset($methodAndParams['params'][0]) ? $methodAndParams['params'][0] : true; |
|
| 392 | $useTilda = isset($methodAndParams['params'][1]) ? $methodAndParams['params'][1] : true; |
|
| 393 | $this->fetchUsing = ['method' => 'GetNextElement', 'params' => [$bTextHtmlAuto, $useTilda]]; |
|
| 394 | $this->select(['FIELDS', 'PROPERTY_*']); |
|
| 395 | } else { |
|
| 396 | parent::fetchUsing($methodAndParams); |
|
| 397 | } |
|
| 398 | ||
| 399 | return $this; |
|
| 400 | } |
|