1 | <?php |
||
15 | class JsonResponseParser { |
||
16 | |||
17 | /** |
||
18 | * @var DataValueDeserializer |
||
19 | */ |
||
20 | private $dataValueDeserializer; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $subjectList = array(); |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $printRequestPropertyList = array(); |
||
31 | |||
32 | /** |
||
33 | * @var boolean |
||
34 | */ |
||
35 | private $furtherResults = false; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | private $printouts = array(); |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | private $internalLabelToKeyMap = array(); |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | private $rawResponseResult = array(); |
||
51 | |||
52 | /** |
||
53 | * @since 1.0 |
||
54 | * |
||
55 | * @param DataValueDeserializer $dataValueDeserializer |
||
56 | */ |
||
57 | 14 | public function __construct( DataValueDeserializer $dataValueDeserializer ) { |
|
60 | |||
61 | /** |
||
62 | * @since 1.0 |
||
63 | * |
||
64 | * @param DIProperty $property |
||
65 | * |
||
66 | * @return DIProperty |
||
67 | */ |
||
68 | 3 | public function findPropertyFromInMemoryExternalRepositoryCache( DIProperty $property ) { |
|
78 | |||
79 | /** |
||
80 | * @since 1.0 |
||
81 | * |
||
82 | * @param DIWikiPage[] |
||
83 | */ |
||
84 | 8 | public function getResultSubjectList() { |
|
87 | |||
88 | /** |
||
89 | * @since 1.0 |
||
90 | * |
||
91 | * @param [] |
||
92 | */ |
||
93 | public function getPrintouts() { |
||
96 | |||
97 | /** |
||
98 | * @since 1.0 |
||
99 | * |
||
100 | * @param [] |
||
101 | */ |
||
102 | 8 | public function getPrintRequestPropertyList() { |
|
105 | |||
106 | /** |
||
107 | * @since 1.0 |
||
108 | * |
||
109 | * @return boolean |
||
110 | */ |
||
111 | 12 | public function hasFurtherResults() { |
|
114 | |||
115 | /** |
||
116 | * @since 1.0 |
||
117 | * |
||
118 | * @return array |
||
119 | */ |
||
120 | 5 | public function getRawResponseResult() { |
|
123 | |||
124 | /** |
||
125 | * @since 1.0 |
||
126 | * |
||
127 | * @param DIWikiPage $subject |
||
128 | * @param DIProperty $property |
||
129 | * |
||
130 | * @return array |
||
131 | */ |
||
132 | public function getPropertyValuesFor( DIWikiPage $subject, DIProperty $property ) { |
||
143 | |||
144 | /** |
||
145 | * @since 1.0 |
||
146 | * |
||
147 | * @param array $result |
||
148 | */ |
||
149 | 13 | public function doParse( array $result ) { |
|
175 | |||
176 | 8 | private function addResultsToPrintoutList( $k, $value ) { |
|
202 | |||
203 | 8 | private function addPropertyValues( $hash, $pk, $pvalues ) { |
|
234 | |||
235 | 10 | private function addPrintRequestToPropertyList( $value ) { |
|
256 | |||
257 | } |
||
258 |