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 = []) |
||
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 fetchFiles() |
||
243 | |||
244 | /** |
||
245 | * @inheritDoc |
||
246 | */ |
||
247 | public function fetchFileInfo($fileID) |
||
251 | |||
252 | /** |
||
253 | * @inheritDoc |
||
254 | */ |
||
255 | public function fetchSettings() |
||
259 | |||
260 | /** |
||
261 | * @inheritDoc |
||
262 | */ |
||
263 | public function fetchSettingCollection($collectionName) |
||
267 | |||
268 | /** |
||
269 | * Get a table gateway for the given table name |
||
270 | * |
||
271 | * @param $tableName |
||
272 | * |
||
273 | * @return RelationalTableGatewayWithConditions |
||
274 | */ |
||
275 | protected function getTableGateway($tableName) |
||
283 | |||
284 | // @TODO: move to a builder class |
||
285 | protected function createResponseFromData($data) |
||
295 | } |
||
296 |
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.