1 | <?php |
||
12 | abstract class Query { |
||
13 | |||
14 | protected $query = ''; |
||
15 | |||
16 | /** |
||
17 | * Get a field/table name |
||
18 | */ |
||
19 | |||
20 | protected function getName(string $name) : string { |
||
24 | |||
25 | /** |
||
26 | * Get a field value |
||
27 | */ |
||
28 | |||
29 | protected function getValue(string $value) : string { |
||
33 | |||
34 | /** |
||
35 | * Get a field sorting direction |
||
36 | */ |
||
37 | |||
38 | protected function getDirection(string $direction) : string { |
||
42 | |||
43 | /** |
||
44 | * Convert a data array to a string |
||
45 | */ |
||
46 | |||
47 | protected function getString($source = null, string $pattern = '', string $separator = '') : string { |
||
75 | |||
76 | /** |
||
77 | * Convert the object to a string |
||
78 | */ |
||
79 | |||
80 | public function __toString() : string { |
||
84 | } |
||
85 | } |
||
86 |