1 | <?php declare(strict_types = 1); |
||
16 | class dbQuery extends QueryHandler |
||
17 | { |
||
18 | /** Virtual field for base table */ |
||
19 | public $own_virtual_fields = array(); |
||
20 | /** Virtual fields */ |
||
21 | public $virtual_fields = array(); |
||
22 | public $empty = false; |
||
23 | protected $class_name; |
||
24 | /** |
||
25 | * @var QueryInterface |
||
26 | */ |
||
27 | protected $query; |
||
28 | /** @var bool True to show requests */ |
||
29 | protected $debug = false; |
||
30 | |||
31 | /** Constructor */ |
||
32 | public function __construct() |
||
37 | |||
38 | /** |
||
39 | * @param string $metadata |
||
40 | * |
||
41 | * @deprecated Use entity() |
||
42 | * @return QueryInterface|string |
||
43 | */ |
||
44 | public function className(string $metadata = null) |
||
52 | |||
53 | |||
54 | /** @deprecated Use QueryInterface implementation */ |
||
55 | public function own_limit($st, $en = 0) |
||
61 | |||
62 | /** @deprecated Use QueryInterface implementation */ |
||
63 | public function own_group_by($params) |
||
69 | |||
70 | /** @deprecated Use QueryInterface implementation */ |
||
71 | public function own_order_by($field, $direction = 'ASC') |
||
77 | |||
78 | /** @see idbQuery::random() */ |
||
79 | public function random(& $return_value = null) |
||
87 | |||
88 | /** |
||
89 | * @param $columnName |
||
90 | * @param string $sorting |
||
91 | * |
||
92 | * @deprecated Use groupBy() |
||
93 | * @return QueryInterface|static |
||
94 | */ |
||
95 | public function order_by($columnName, $sorting = 'ASC') |
||
99 | |||
100 | /** |
||
101 | * Execute current query and receive collection of RecordInterface objects from database. |
||
102 | * @deprecated Use self::find() |
||
103 | * @return RecordInterface[] Database entities collection |
||
104 | */ |
||
105 | public function exec() : array |
||
109 | |||
110 | /** @deprecated Use QueryInterface implementation */ |
||
111 | public function or_($relation = 'OR') |
||
125 | |||
126 | /** @deprecated Use QueryInterface implementation */ |
||
127 | public function debug($value = true) |
||
133 | |||
134 | /** @deprecated Use QueryInterface implementation */ |
||
135 | public function fieldsNew($fieldName, & $return = null) |
||
139 | |||
140 | /** @deprecated Use QueryInterface implementation */ |
||
141 | public function group_by($field) |
||
148 | |||
149 | /** @deprecated Use QueryInterface implementation */ |
||
150 | public function add_field($field, $alias = null, $own = true) |
||
169 | |||
170 | /** @deprecated Use QueryInterface implementation */ |
||
171 | public function innerCount($field = '*') |
||
175 | |||
176 | /** @deprecated Use QueryInterface implementation */ |
||
177 | public function id($value) |
||
183 | |||
184 | /** |
||
185 | * Add condition to current query. |
||
186 | * This method supports receives three possible types for $fieldName, |
||
187 | * this is deprecated logic and this should be changed to use separate methods |
||
188 | * for each argument type. |
||
189 | * |
||
190 | * @param string|ConditionInterface|ArgumentInterface $fieldName Entity field name |
||
191 | * @param string $fieldValue Value |
||
192 | * @param string $relation Relation between field name and its value |
||
193 | * |
||
194 | * @deprecated Use QueryInterface implementation |
||
195 | * @return self Chaining |
||
196 | */ |
||
197 | public function cond($fieldName, $fieldValue = null, $relation = '=') |
||
213 | } |
||
214 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider
.