1 | <?php |
||
5 | class WSIUtils |
||
6 | { |
||
7 | /** |
||
8 | * Do modifications with response for collection requests |
||
9 | * Fix issues related to specific results in WSI mode |
||
10 | * |
||
11 | * @param mixed $response |
||
12 | * |
||
13 | * @return array |
||
14 | */ |
||
15 | public static function processCollectionResponse($response) |
||
35 | |||
36 | /** |
||
37 | * @param array $response |
||
38 | * @return array |
||
39 | */ |
||
40 | public static function convertResponseToMultiArray($response) |
||
48 | |||
49 | /** |
||
50 | * Parse WSI response and nested data |
||
51 | * |
||
52 | * @param mixed $result |
||
53 | * @param bool $defaultNull if not found in result node return null |
||
54 | * |
||
55 | * @return null |
||
56 | */ |
||
57 | public static function parseWSIResponse($result, $defaultNull = true) |
||
84 | } |
||
85 |