| @@ 3918-3934 (lines=17) @@ | ||
| 3915 | ||
| 3916 | $output = array(); |
|
| 3917 | ||
| 3918 | foreach($datasets as $dataset) { |
|
| 3919 | $dataset = explode('=', $dataset); |
|
| 3920 | ||
| 3921 | if(count($dataset) > 2) { |
|
| 3922 | for($i = 2; $i < count($dataset); $i++) { |
|
| 3923 | $dataset[1] .= '='.$dataset[$i]; |
|
| 3924 | } |
|
| 3925 | $output[$this->unEscapeText($dataset[0])] = $this->unEscapeText($dataset[1]); |
|
| 3926 | }else{ |
|
| 3927 | if(count($dataset) == 1) { |
|
| 3928 | $output[$this->unEscapeText($dataset[0])] = ''; |
|
| 3929 | }else{ |
|
| 3930 | $output[$this->unEscapeText($dataset[0])] = $this->unEscapeText($dataset[1]); |
|
| 3931 | } |
|
| 3932 | ||
| 3933 | } |
|
| 3934 | } |
|
| 3935 | return $this->generateOutput(true, array(), $output); |
|
| 3936 | } |
|
| 3937 | if($mode == 'multi') { |
|
| @@ 3948-3962 (lines=15) @@ | ||
| 3945 | ||
| 3946 | $tmpArray = array(); |
|
| 3947 | ||
| 3948 | foreach($datablock as $dataset) { |
|
| 3949 | $dataset = explode('=', $dataset); |
|
| 3950 | if(count($dataset) > 2) { |
|
| 3951 | for($i = 2; $i < count($dataset); $i++) { |
|
| 3952 | $dataset[1] .= '='.$dataset[$i]; |
|
| 3953 | } |
|
| 3954 | $tmpArray[$this->unEscapeText($dataset[0])] = $this->unEscapeText($dataset[1]); |
|
| 3955 | }else{ |
|
| 3956 | if(count($dataset) == 1) { |
|
| 3957 | $tmpArray[$this->unEscapeText($dataset[0])] = ''; |
|
| 3958 | }else{ |
|
| 3959 | $tmpArray[$this->unEscapeText($dataset[0])] = $this->unEscapeText($dataset[1]); |
|
| 3960 | } |
|
| 3961 | } |
|
| 3962 | } |
|
| 3963 | $output[] = $tmpArray; |
|
| 3964 | } |
|
| 3965 | return $this->generateOutput(true, array(), $output); |
|