1 | <?php |
||
29 | class ClientLocal implements RequestsInterface |
||
30 | { |
||
31 | /** |
||
32 | * @var BaseTableGateway[] |
||
33 | */ |
||
34 | protected $tableGateways = []; |
||
35 | |||
36 | /** |
||
37 | * @var Connection |
||
38 | */ |
||
39 | protected $connection = null; |
||
40 | |||
41 | /** |
||
42 | * ClientLocal constructor. |
||
43 | * |
||
44 | * @param $connection |
||
45 | */ |
||
46 | public function __construct($connection) |
||
50 | |||
51 | /** |
||
52 | * Gets the list of tables name in the database |
||
53 | * |
||
54 | * @param array $params |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | public function getTables(array $params = []) |
||
62 | |||
63 | /** |
||
64 | * Gets all the columns in the database |
||
65 | * |
||
66 | * @param array $params |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | public function getColumns(array $params = []) |
||
74 | |||
75 | /** |
||
76 | * Gets table columns |
||
77 | * |
||
78 | * @param $tableName |
||
79 | * @param array $params |
||
80 | * |
||
81 | * @return \Directus\Database\Object\Column[] |
||
82 | */ |
||
83 | public function getTableColumns($tableName, array $params = []) |
||
89 | |||
90 | /** |
||
91 | * Gets all the entries in the given table name |
||
92 | * |
||
93 | * @param string $tableName |
||
94 | * @param array $params |
||
95 | * |
||
96 | * @return Entry|EntryCollection |
||
97 | */ |
||
98 | public function getEntries($tableName, array $params = []) |
||
104 | |||
105 | /** |
||
106 | * Gets an entry in the given table name with the given id |
||
107 | * |
||
108 | * @param string $tableName |
||
109 | * @param mixed $id |
||
110 | * @param array $params |
||
111 | * |
||
112 | * @return array|mixed |
||
113 | */ |
||
114 | public function getEntry($tableName, $id, array $params = []) |
||
121 | |||
122 | /** |
||
123 | * Gets the list of users |
||
124 | * |
||
125 | * @param array $params |
||
126 | * |
||
127 | * @return array|mixed |
||
128 | */ |
||
129 | public function getUsers(array $params = []) |
||
134 | |||
135 | /** |
||
136 | * Gets an user by the given id |
||
137 | * |
||
138 | * @param $id |
||
139 | * @param array $params |
||
140 | * |
||
141 | * @return array|mixed |
||
142 | */ |
||
143 | public function getUser($id, array $params = []) |
||
147 | |||
148 | /** |
||
149 | * @inheritDoc |
||
150 | */ |
||
151 | public function fetchTables() |
||
155 | |||
156 | /** |
||
157 | * @inheritDoc |
||
158 | */ |
||
159 | public function fetchTableInfo($tableName) |
||
163 | |||
164 | /** |
||
165 | * @inheritDoc |
||
166 | */ |
||
167 | public function fetchColumns($tableName) |
||
171 | |||
172 | /** |
||
173 | * @inheritDoc |
||
174 | */ |
||
175 | public function fetchColumnInfo($tableName, $columnName) |
||
179 | |||
180 | /** |
||
181 | * @inheritDoc |
||
182 | */ |
||
183 | public function fetchItems($tableName = null, $conditions = []) |
||
203 | |||
204 | /** |
||
205 | * @inheritDoc |
||
206 | */ |
||
207 | public function fetchItem($tableName, $itemID) |
||
211 | |||
212 | /** |
||
213 | * @inheritDoc |
||
214 | */ |
||
215 | public function fetchGroups() |
||
219 | |||
220 | /** |
||
221 | * @inheritDoc |
||
222 | */ |
||
223 | public function fetchGroupInfo($groupID) |
||
227 | |||
228 | /** |
||
229 | * @inheritDoc |
||
230 | */ |
||
231 | public function fetchGroupPrivileges($groupID) |
||
235 | |||
236 | /** |
||
237 | * @inheritDoc |
||
238 | */ |
||
239 | public function getFiles(array $params = []) |
||
243 | |||
244 | /** |
||
245 | * @inheritDoc |
||
246 | */ |
||
247 | public function getFile($id, array $params = []) |
||
251 | |||
252 | /** |
||
253 | * @inheritDoc |
||
254 | */ |
||
255 | public function fetchSettings() |
||
259 | |||
260 | /** |
||
261 | * @inheritDoc |
||
262 | */ |
||
263 | public function fetchSettingCollection($collectionName) |
||
267 | |||
268 | /** |
||
269 | * @inheritDoc |
||
270 | */ |
||
271 | public function getMessages($userId) |
||
278 | |||
279 | /** |
||
280 | * Get a table gateway for the given table name |
||
281 | * |
||
282 | * @param $tableName |
||
283 | * |
||
284 | * @return RelationalTableGateway |
||
285 | */ |
||
286 | protected function getTableGateway($tableName) |
||
294 | |||
295 | // @TODO: move to a builder class |
||
296 | protected function createResponseFromData($data) |
||
306 | } |
||
307 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.