1 | <?php |
||
27 | class RestApiSpoofer |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * @var Read |
||
32 | */ |
||
33 | protected $rest_api; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * RestApiSpoofer constructor. |
||
38 | * |
||
39 | * @param Read $rest_api |
||
40 | * @param string $api_version |
||
41 | */ |
||
42 | public function __construct(Read $rest_api, $api_version = '4.8.36') |
||
47 | |||
48 | |||
49 | /** |
||
50 | * @param EEM_Base $model |
||
51 | * @param array $query_params |
||
52 | * @param string $include |
||
53 | * @return array |
||
54 | * @throws EE_Error |
||
55 | * @throws InvalidArgumentException |
||
56 | * @throws InvalidDataTypeException |
||
57 | * @throws InvalidInterfaceException |
||
58 | * @throws ModelConfigurationException |
||
59 | * @throws ReflectionException |
||
60 | * @throws RestException |
||
61 | * @throws RestPasswordIncorrectException |
||
62 | * @throws RestPasswordRequiredException |
||
63 | * @throws UnexpectedEntityException |
||
64 | * @since $VID:$ |
||
65 | */ |
||
66 | public function getApiResults(EEM_Base $model, array $query_params, $include = '') |
||
83 | |||
84 | } |