@@ 4284-4300 (lines=17) @@ | ||
4281 | ||
4282 | $output = array(); |
|
4283 | ||
4284 | foreach($datasets as $dataset) { |
|
4285 | $dataset = explode('=', $dataset); |
|
4286 | ||
4287 | if(count($dataset) > 2) { |
|
4288 | for($i = 2; $i < count($dataset); $i++) { |
|
4289 | $dataset[1] .= '='.$dataset[$i]; |
|
4290 | } |
|
4291 | $output[$this->unEscapeText($dataset[0])] = $this->unEscapeText($dataset[1]); |
|
4292 | }else{ |
|
4293 | if(count($dataset) == 1) { |
|
4294 | $output[$this->unEscapeText($dataset[0])] = ''; |
|
4295 | }else{ |
|
4296 | $output[$this->unEscapeText($dataset[0])] = $this->unEscapeText($dataset[1]); |
|
4297 | } |
|
4298 | ||
4299 | } |
|
4300 | } |
|
4301 | return $this->generateOutput(true, array(), $output); |
|
4302 | } |
|
4303 | if($mode == 'multi') { |
|
@@ 4314-4328 (lines=15) @@ | ||
4311 | ||
4312 | $tmpArray = array(); |
|
4313 | ||
4314 | foreach($datablock as $dataset) { |
|
4315 | $dataset = explode('=', $dataset); |
|
4316 | if(count($dataset) > 2) { |
|
4317 | for($i = 2; $i < count($dataset); $i++) { |
|
4318 | $dataset[1] .= '='.$dataset[$i]; |
|
4319 | } |
|
4320 | $tmpArray[$this->unEscapeText($dataset[0])] = $this->unEscapeText($dataset[1]); |
|
4321 | }else{ |
|
4322 | if(count($dataset) == 1) { |
|
4323 | $tmpArray[$this->unEscapeText($dataset[0])] = ''; |
|
4324 | }else{ |
|
4325 | $tmpArray[$this->unEscapeText($dataset[0])] = $this->unEscapeText($dataset[1]); |
|
4326 | } |
|
4327 | } |
|
4328 | } |
|
4329 | $output[] = $tmpArray; |
|
4330 | } |
|
4331 | return $this->generateOutput(true, array(), $output); |