|
@@ 228-232 (lines=5) @@
|
| 225 |
|
|
| 226 |
|
$result = $this->_config->getDb()->query($query); |
| 227 |
|
|
| 228 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 229 |
|
$this->categoryName[$row['id']] = $row; |
| 230 |
|
$this->categories[] =& $this->categoryName[$row['id']]; |
| 231 |
|
$this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']]; |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
return $this->categories; |
| 235 |
|
} |
|
@@ 1350-1356 (lines=7) @@
|
| 1347 |
|
} |
| 1348 |
|
$query .= ' ORDER BY id'; |
| 1349 |
|
$result = $this->_config->getDb()->query($query); |
| 1350 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 1351 |
|
if (!array_key_exists($row['id'],$this->categoryName)) { |
| 1352 |
|
$this->categoryName[$row['id']] = $row; |
| 1353 |
|
$this->categories[] =& $this->categoryName[$row['id']]; |
| 1354 |
|
$this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']]; |
| 1355 |
|
} |
| 1356 |
|
} |
| 1357 |
|
} |
| 1358 |
|
|
| 1359 |
|
/** |