1 | <?php |
||
38 | class CirclesRequestBuilder { |
||
|
|||
39 | |||
40 | const TABLE_CIRCLES = 'circles_circles'; |
||
41 | const TABLE_MEMBERS = 'circles_members'; |
||
42 | |||
43 | /** @var IDBConnection */ |
||
44 | protected $dbConnection; |
||
45 | |||
46 | /** @var L10N */ |
||
47 | protected $l10n; |
||
48 | |||
49 | private $default_select_alias; |
||
50 | |||
51 | |||
52 | /** |
||
53 | * Join the Circles table |
||
54 | * |
||
55 | * @param IQueryBuilder $qb |
||
56 | */ |
||
57 | protected function joinCircles(& $qb, $field) { |
||
63 | |||
64 | |||
65 | /** |
||
66 | * Limit the request to the Share by its Id. |
||
67 | * |
||
68 | * @param IQueryBuilder $qb |
||
69 | * @param int $circleId |
||
70 | */ |
||
71 | protected function limitToCircle(IQueryBuilder &$qb, $circleId) { |
||
77 | |||
78 | |||
79 | |||
80 | /** |
||
81 | * Limit the request to the Share by its Id. |
||
82 | * |
||
83 | * @param IQueryBuilder $qb |
||
84 | * @param int $id |
||
85 | */ |
||
86 | protected function limitToId(IQueryBuilder &$qb, $id) { |
||
92 | |||
93 | |||
94 | /** |
||
95 | * Limit the request to the Share by its Id. |
||
96 | * |
||
97 | * @param IQueryBuilder $qb |
||
98 | * @param string $userId |
||
99 | */ |
||
100 | protected function limitToUserId(IQueryBuilder &$qb, $userId) { |
||
106 | |||
107 | |||
108 | |||
109 | |||
110 | |||
111 | protected function limitToMemberLevel(IQueryBuilder &$qb, $level) { |
||
117 | |||
118 | |||
119 | /** |
||
120 | * @param IQueryBuilder $qb |
||
121 | * |
||
122 | * @deprecated |
||
123 | * never used in fact. |
||
124 | */ |
||
125 | protected function leftJoinOwner(IQueryBuilder &$qb) { |
||
142 | |||
143 | |||
144 | /** |
||
145 | * Base of the Sql Insert request |
||
146 | * |
||
147 | * @return IQueryBuilder |
||
148 | */ |
||
149 | protected function getSharesInsertSql() { |
||
156 | |||
157 | |||
158 | /** |
||
159 | * @return IQueryBuilder |
||
160 | */ |
||
161 | protected function getMembersSelectSql() { |
||
171 | |||
172 | |||
173 | /** |
||
174 | * @return IQueryBuilder |
||
175 | */ |
||
176 | protected function getCirclesSelectSql() { |
||
185 | |||
186 | /** |
||
187 | * @param array $data |
||
188 | * |
||
189 | * @return Member |
||
190 | */ |
||
191 | protected function parseMembersSelectSql(array $data) { |
||
201 | |||
202 | |||
203 | /** |
||
204 | * @param array $data |
||
205 | * |
||
206 | * @return Circle |
||
207 | */ |
||
208 | protected function parseCirclesSelectSql(array $data) { |
||
223 | } |
This check marks property names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString
.