| @@ 1134-1138 (lines=5) @@ | ||
| 1131 | $retCount = []; |
|
| 1132 | if ($asObject) { |
|
| 1133 | while (false !== ($myrow = $this->db->fetchArray($result))) { |
|
| 1134 | if ($id_as_key) { |
|
| 1135 | $retCount[$myrow[$this->keyName]] = array_pop($myrow); |
|
| 1136 | } else { |
|
| 1137 | $retCount[] = array_pop($myrow); |
|
| 1138 | } |
|
| 1139 | $object = $this->create(false); |
|
| 1140 | $object->assignVars($myrow); |
|
| 1141 | if ($id_as_key) { |
|
| @@ 1151-1155 (lines=5) @@ | ||
| 1148 | } else { |
|
| 1149 | $object = $this->create(false); |
|
| 1150 | while (false !== ($myrow = $this->db->fetchArray($result))) { |
|
| 1151 | if ($id_as_key) { |
|
| 1152 | $retCount[$myrow[$this->keyName]] = array_pop($myrow); |
|
| 1153 | } else { |
|
| 1154 | $retCount[] = array_pop($myrow); |
|
| 1155 | } |
|
| 1156 | $object->assignVars($myrow); |
|
| 1157 | if ($id_as_key) { |
|
| 1158 | $ret[$myrow[$this->keyName]] = $object->getValues(array_keys($myrow)); |
|