1 | <?php |
||
6 | abstract class AbstractBuilder |
||
7 | { |
||
8 | /** |
||
9 | * |
||
10 | * Builds the flags as a space-separated string. |
||
11 | * |
||
12 | * @return string |
||
13 | * |
||
14 | */ |
||
15 | 258 | public function buildFlags($flags) |
|
23 | |||
24 | /** |
||
25 | * |
||
26 | * Builds the `WHERE` clause of the statement. |
||
27 | * |
||
28 | * @return string |
||
29 | * |
||
30 | */ |
||
31 | 211 | public function buildWhere($where) |
|
39 | |||
40 | /** |
||
41 | * |
||
42 | * Builds the `ORDER BY ...` clause of the statement. |
||
43 | * |
||
44 | * @return string |
||
45 | * |
||
46 | */ |
||
47 | 211 | public function buildOrderBy($order_by) |
|
55 | |||
56 | /** |
||
57 | * |
||
58 | * Builds the `LIMIT` clause of the statement. |
||
59 | * |
||
60 | * @return string |
||
61 | * |
||
62 | */ |
||
63 | 9 | public function buildLimit($limit) |
|
70 | |||
71 | /** |
||
72 | * |
||
73 | * Builds the `LIMIT ... OFFSET` clause of the statement. |
||
74 | * |
||
75 | * @return string |
||
76 | * |
||
77 | */ |
||
78 | 159 | public function buildLimitOffset($limit, $offset) |
|
96 | |||
97 | /** |
||
98 | * |
||
99 | * Builds the `RETURNING` clause of the statement. |
||
100 | * |
||
101 | * @return string |
||
102 | * |
||
103 | */ |
||
104 | 11 | public function buildReturning($returning) |
|
112 | |||
113 | /** |
||
114 | * |
||
115 | * Returns an array as an indented comma-separated values string. |
||
116 | * |
||
117 | * @param array $list The values to convert. |
||
118 | * |
||
119 | * @return string |
||
120 | * |
||
121 | */ |
||
122 | 225 | public function indentCsv(array $list) |
|
127 | |||
128 | /** |
||
129 | * |
||
130 | * Returns an array as an indented string. |
||
131 | * |
||
132 | * @param array $list The values to convert. |
||
133 | * |
||
134 | * @return string |
||
135 | * |
||
136 | */ |
||
137 | 71 | public function indent(array $list) |
|
142 | } |
||
143 |