1 | <?php |
||
5 | abstract class OldCoreQuery extends BaseQuery |
||
6 | { |
||
7 | /** |
||
8 | * Query select. |
||
9 | * |
||
10 | * @var array |
||
11 | */ |
||
12 | public $select = ['FIELDS', 'PROPS']; |
||
13 | |||
14 | /** |
||
15 | * Fetch method and parameters. |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $fetchUsing; |
||
20 | |||
21 | /** |
||
22 | * Constructor. |
||
23 | * |
||
24 | * @param object $bxObject |
||
25 | * @param string $modelName |
||
26 | */ |
||
27 | public function __construct($bxObject, $modelName) |
||
33 | |||
34 | /** |
||
35 | * Set fetch using from string or array. |
||
36 | * |
||
37 | * @param string|array $methodAndParams |
||
38 | * @return $this |
||
39 | */ |
||
40 | public function fetchUsing($methodAndParams) |
||
62 | |||
63 | /** |
||
64 | * Choose between Fetch() and GetNext($bTextHtmlAuto, $useTilda) and then fetch |
||
65 | * |
||
66 | * @param \CDBResult $rsItems |
||
67 | * @return array|false |
||
68 | */ |
||
69 | protected function performFetchUsingSelectedMethod($rsItems) |
||
75 | } |
||
76 |