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 | 12 | public function __construct( DataValueDeserializer $dataValueDeserializer ) { |
|
60 | |||
61 | /** |
||
62 | * @since 1.0 |
||
63 | * |
||
64 | * @param DIProperty $property |
||
65 | * |
||
66 | * @return DIProperty |
||
67 | */ |
||
68 | 1 | public function findPropertyFromInMemoryExternalRepositoryCache( DIProperty $property ) { |
|
71 | |||
72 | /** |
||
73 | * @since 1.0 |
||
74 | * |
||
75 | * @param DIWikiPage[] |
||
76 | */ |
||
77 | 7 | public function getResultSubjectList() { |
|
80 | |||
81 | /** |
||
82 | * @since 1.0 |
||
83 | * |
||
84 | * @param [] |
||
85 | */ |
||
86 | public function getPrintouts() { |
||
89 | |||
90 | /** |
||
91 | * @since 1.0 |
||
92 | * |
||
93 | * @param [] |
||
94 | */ |
||
95 | 7 | public function getPrintRequestPropertyList() { |
|
96 | 7 | return $this->printRequestPropertyList; |
|
97 | } |
||
98 | |||
99 | /** |
||
100 | * @since 1.0 |
||
101 | * |
||
102 | * @return boolean |
||
103 | */ |
||
104 | 11 | public function hasFurtherResults() { |
|
107 | |||
108 | /** |
||
109 | * @since 1.0 |
||
110 | * |
||
111 | * @return array |
||
112 | */ |
||
113 | 4 | public function getRawResponseResult() { |
|
116 | |||
117 | /** |
||
118 | * @since 1.0 |
||
119 | * |
||
120 | * @param DIWikiPage $subject |
||
121 | * @param DIProperty $property |
||
122 | * |
||
123 | * @return array |
||
124 | */ |
||
125 | public function getPropertyValuesFor( DIWikiPage $subject, DIProperty $property ) { |
||
136 | |||
137 | /** |
||
138 | * @since 1.0 |
||
139 | * |
||
140 | * @param array $result |
||
141 | */ |
||
142 | 11 | public function doParse( array $result ) { |
|
168 | |||
169 | 7 | private function addResultsToPrintoutList( $value ) { |
|
195 | |||
196 | 7 | private function addPropertyValues( $hash, $pk, $pvalues ) { |
|
227 | |||
228 | 8 | private function addPrintRequestToPropertyList( $value ) { |
|
245 | |||
246 | } |
||
247 |