1 | <?php |
||
7 | class Utilities |
||
8 | { |
||
9 | /** |
||
10 | * This sets up the "allowed" args, and translates the GraphQL-friendly keys to model |
||
11 | * friendly keys. |
||
12 | * |
||
13 | * @param array $where_args |
||
14 | * @param array $arg_mapping |
||
15 | * @param array $id_fields The fields to convert from global IDs to DB IDs. |
||
16 | * @return array |
||
17 | */ |
||
18 | public function sanitizeWhereArgs(array $where_args, array $arg_mapping, array $id_fields) |
||
44 | |||
45 | |||
46 | /** |
||
47 | * Converts global ID to DB ID. |
||
48 | * |
||
49 | * @param string|string[] $ID |
||
50 | * @return mixed |
||
51 | */ |
||
52 | protected function convertGlobalId($ID) |
||
60 | } |
||
61 |