| @@ 402-409 (lines=8) @@ | ||
| 399 | } |
|
| 400 | ||
| 401 | // complex case |
|
| 402 | if (in_array($methodAndParams['method'], ['GetNextElement', 'getNextElement'])) { |
|
| 403 | $bTextHtmlAuto = isset($methodAndParams['params'][0]) ? $methodAndParams['params'][0] : true; |
|
| 404 | $useTilda = isset($methodAndParams['params'][1]) ? $methodAndParams['params'][1] : true; |
|
| 405 | $this->fetchUsing = ['method' => 'GetNextElement', 'params' => [$bTextHtmlAuto, $useTilda]]; |
|
| 406 | $this->select(['FIELDS', 'PROPERTY_*']); |
|
| 407 | } else { |
|
| 408 | parent::fetchUsing($methodAndParams); |
|
| 409 | } |
|
| 410 | ||
| 411 | return $this; |
|
| 412 | } |
|
| @@ 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 | } |
|