1 | <?php |
||
28 | class ClientLocal implements RequestsInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var BaseTableGateway[] |
||
32 | */ |
||
33 | protected $tableGateways = []; |
||
34 | |||
35 | /** |
||
36 | * @var Connection |
||
37 | */ |
||
38 | protected $connection = null; |
||
39 | |||
40 | /** |
||
41 | * ClientLocal constructor. |
||
42 | * |
||
43 | * @param $connection |
||
44 | */ |
||
45 | public function __construct($connection) |
||
49 | |||
50 | /** |
||
51 | * Gets the list of tables name in the database |
||
52 | * |
||
53 | * @param array $params |
||
54 | * |
||
55 | * @return array |
||
56 | */ |
||
57 | public function getTables(array $params = []) |
||
61 | |||
62 | /** |
||
63 | * Gets all the columns in the database |
||
64 | * |
||
65 | * @param array $params |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | public function getColumns(array $params = []) |
||
73 | |||
74 | /** |
||
75 | * Gets table columns |
||
76 | * |
||
77 | * @param $tableName |
||
78 | * @param array $params |
||
79 | * |
||
80 | * @return \Directus\Database\Object\Column[] |
||
81 | */ |
||
82 | public function getTableColumns($tableName, array $params = []) |
||
88 | |||
89 | /** |
||
90 | * Gets all the entries in the given table name |
||
91 | * |
||
92 | * @param string $tableName |
||
93 | * @param array $params |
||
94 | * |
||
95 | * @return Entry|EntryCollection |
||
96 | */ |
||
97 | public function getEntries($tableName, array $params = []) |
||
103 | |||
104 | /** |
||
105 | * Gets an entry in the given table name with the given id |
||
106 | * |
||
107 | * @param string $tableName |
||
108 | * @param mixed $id |
||
109 | * @param array $params |
||
110 | * |
||
111 | * @return array|mixed |
||
112 | */ |
||
113 | public function getEntry($tableName, $id, array $params = []) |
||
120 | |||
121 | /** |
||
122 | * Gets the list of users |
||
123 | * |
||
124 | * @param array $params |
||
125 | * |
||
126 | * @return array|mixed |
||
127 | */ |
||
128 | public function getUsers(array $params = []) |
||
133 | |||
134 | /** |
||
135 | * Gets an user by the given id |
||
136 | * |
||
137 | * @param $id |
||
138 | * @param array $params |
||
139 | * |
||
140 | * @return array|mixed |
||
141 | */ |
||
142 | public function getUser($id, array $params = []) |
||
146 | |||
147 | /** |
||
148 | * @inheritDoc |
||
149 | */ |
||
150 | public function fetchTables() |
||
154 | |||
155 | /** |
||
156 | * @inheritDoc |
||
157 | */ |
||
158 | public function fetchTableInfo($tableName) |
||
162 | |||
163 | /** |
||
164 | * @inheritDoc |
||
165 | */ |
||
166 | public function fetchColumns($tableName) |
||
170 | |||
171 | /** |
||
172 | * @inheritDoc |
||
173 | */ |
||
174 | public function fetchColumnInfo($tableName, $columnName) |
||
178 | |||
179 | /** |
||
180 | * @inheritDoc |
||
181 | */ |
||
182 | public function fetchItems($tableName = null, $conditions = []) |
||
202 | |||
203 | /** |
||
204 | * @inheritDoc |
||
205 | */ |
||
206 | public function fetchItem($tableName, $itemID) |
||
210 | |||
211 | /** |
||
212 | * @inheritDoc |
||
213 | */ |
||
214 | public function fetchGroups() |
||
218 | |||
219 | /** |
||
220 | * @inheritDoc |
||
221 | */ |
||
222 | public function fetchGroupInfo($groupID) |
||
226 | |||
227 | /** |
||
228 | * @inheritDoc |
||
229 | */ |
||
230 | public function fetchGroupPrivileges($groupID) |
||
234 | |||
235 | /** |
||
236 | * @inheritDoc |
||
237 | */ |
||
238 | public function getFiles(array $params = []) |
||
242 | |||
243 | /** |
||
244 | * @inheritDoc |
||
245 | */ |
||
246 | public function getFile($id, array $params = []) |
||
250 | |||
251 | /** |
||
252 | * @inheritDoc |
||
253 | */ |
||
254 | public function fetchSettings() |
||
258 | |||
259 | /** |
||
260 | * @inheritDoc |
||
261 | */ |
||
262 | public function fetchSettingCollection($collectionName) |
||
266 | |||
267 | /** |
||
268 | * Get a table gateway for the given table name |
||
269 | * |
||
270 | * @param $tableName |
||
271 | * |
||
272 | * @return RelationalTableGateway |
||
273 | */ |
||
274 | protected function getTableGateway($tableName) |
||
282 | |||
283 | // @TODO: move to a builder class |
||
284 | protected function createResponseFromData($data) |
||
294 | } |
||
295 |
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.