| @@ 127-138 (lines=12) @@ | ||
| 124 | /** |
|
| 125 | * @return array |
|
| 126 | */ |
|
| 127 | public function getRespostasCertasAsArray() |
|
| 128 | { |
|
| 129 | $respostas = array(); |
|
| 130 | $respostas = explode(',', $this->getVar('resp_certas')); |
|
| 131 | $par_respostas = array(); |
|
| 132 | foreach ($respostas as $resposta) { |
|
| 133 | $x = explode('-', $resposta); |
|
| 134 | $par_respostas[$x[0]] = @$x[1]; |
|
| 135 | } |
|
| 136 | ||
| 137 | return $par_respostas; |
|
| 138 | } |
|
| 139 | ||
| 140 | /** |
|
| 141 | * @return array |
|
| @@ 143-155 (lines=13) @@ | ||
| 140 | /** |
|
| 141 | * @return array |
|
| 142 | */ |
|
| 143 | public function getRespostasErradasAsArray() |
|
| 144 | { |
|
| 145 | $respostas = explode(',', $this->getVar('resp_erradas')); |
|
| 146 | $par_respostas = array(); |
|
| 147 | foreach ($respostas as $resposta) { |
|
| 148 | $x = explode('-', $resposta); |
|
| 149 | if (isset($x[1])) { |
|
| 150 | $par_respostas[$x[0]] = $x[1]; |
|
| 151 | } |
|
| 152 | } |
|
| 153 | ||
| 154 | return $par_respostas; |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * @return array |
|