1 | <?php |
||
24 | class Jsonadm |
||
25 | { |
||
26 | /** |
||
27 | * Deletes the resource object or a list of resource objects |
||
28 | * |
||
29 | * @param ContainerInterface $container Dependency injection container |
||
30 | * @param ServerRequestInterface $request Request object |
||
31 | * @param ResponseInterface $response Response object |
||
32 | * @param array $args Associative list of route parameters |
||
33 | * @return ResponseInterface $response Modified response object with generated output |
||
34 | */ |
||
35 | public static function deleteAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
||
39 | |||
40 | |||
41 | /** |
||
42 | * Returns the requested resource object or list of resource objects |
||
43 | * |
||
44 | * @param ContainerInterface $container Dependency injection container |
||
45 | * @param ServerRequestInterface $request Request object |
||
46 | * @param ResponseInterface $response Response object |
||
47 | * @param array $args Associative list of route parameters |
||
48 | * @return ResponseInterface $response Modified response object with generated output |
||
49 | */ |
||
50 | public static function getAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
||
54 | |||
55 | |||
56 | /** |
||
57 | * Updates a resource object or a list of resource objects |
||
58 | * |
||
59 | * @param ContainerInterface $container Dependency injection container |
||
60 | * @param ServerRequestInterface $request Request object |
||
61 | * @param ResponseInterface $response Response object |
||
62 | * @param array $args Associative list of route parameters |
||
63 | * @return ResponseInterface $response Modified response object with generated output |
||
64 | */ |
||
65 | public static function patchAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
||
69 | |||
70 | |||
71 | /** |
||
72 | * Creates a new resource object or a list of resource objects |
||
73 | * |
||
74 | * @param ContainerInterface $container Dependency injection container |
||
75 | * @param ServerRequestInterface $request Request object |
||
76 | * @param ResponseInterface $response Response object |
||
77 | * @param array $args Associative list of route parameters |
||
78 | * @return ResponseInterface $response Modified response object with generated output |
||
79 | */ |
||
80 | public static function postAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
||
84 | |||
85 | |||
86 | /** |
||
87 | * Creates or updates a single resource object |
||
88 | * |
||
89 | * @param ContainerInterface $container Dependency injection container |
||
90 | * @param ServerRequestInterface $request Request object |
||
91 | * @param ResponseInterface $response Response object |
||
92 | * @param array $args Associative list of route parameters |
||
93 | * @return ResponseInterface $response Modified response object with generated output |
||
94 | */ |
||
95 | public static function putAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
||
99 | |||
100 | |||
101 | /** |
||
102 | * Returns the available HTTP verbs and the resource URLs |
||
103 | * |
||
104 | * @param ContainerInterface $container Dependency injection container |
||
105 | * @param ServerRequestInterface $request Request object |
||
106 | * @param ResponseInterface $response Response object |
||
107 | * @param array $args Associative list of route parameters |
||
108 | * @return ResponseInterface $response Modified response object with generated output |
||
109 | */ |
||
110 | public static function optionsAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
||
114 | |||
115 | |||
116 | /** |
||
117 | * Returns the resource controller |
||
118 | * |
||
119 | * @param ContainerInterface $container Dependency injection container |
||
120 | * @param ServerRequestInterface $request Request object |
||
121 | * @param ResponseInterface $response Response object |
||
122 | * @param array $args Associative list of route parameters |
||
123 | * @return \Aimeos\Admin\JsonAdm\Iface JSON admin client |
||
124 | */ |
||
125 | protected static function createAdmin( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
||
143 | } |
||
144 |