|
@@ 209-215 (lines=7) @@
|
| 206 |
|
elseif ($this->resultType === static::RESULT_TYPE_MESSAGE) { |
| 207 |
|
$this->assocData = [ $this->result[1] => $this->result[2] ]; |
| 208 |
|
} |
| 209 |
|
elseif ($this->resultType === static::RESULT_TYPE_ARGSVALS) { |
| 210 |
|
$hash = []; |
| 211 |
|
for ($i = 0, $s = sizeof($this->result); $i < $s; ++$i) { |
| 212 |
|
$hash[$this->args[$i]] = $this->result[$i]; |
| 213 |
|
} |
| 214 |
|
$this->assocData = $hash; |
| 215 |
|
} |
| 216 |
|
elseif ($this->resultType === static::RESULT_TYPE_ASSOC) { |
| 217 |
|
$hash = []; |
| 218 |
|
for ($i = 0, $s = sizeof($this->result) - 1; $i < $s; ++$i) { |
|
@@ 216-222 (lines=7) @@
|
| 213 |
|
} |
| 214 |
|
$this->assocData = $hash; |
| 215 |
|
} |
| 216 |
|
elseif ($this->resultType === static::RESULT_TYPE_ASSOC) { |
| 217 |
|
$hash = []; |
| 218 |
|
for ($i = 0, $s = sizeof($this->result) - 1; $i < $s; ++$i) { |
| 219 |
|
$hash[$this->result[$i]] = $this->result[++$i]; |
| 220 |
|
} |
| 221 |
|
$this->assocData = $hash; |
| 222 |
|
} else { |
| 223 |
|
$this->assocData = $this->result; |
| 224 |
|
} |
| 225 |
|
} |