|
@@ 232-236 (lines=5) @@
|
| 229 |
|
$result = $this->_config->getDb()->query($query); |
| 230 |
|
|
| 231 |
|
if ($result) { |
| 232 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 233 |
|
$this->categoryName[$row['id']] = $row; |
| 234 |
|
$this->categories[$row['id']] = &$this->categoryName[$row['id']]; |
| 235 |
|
$this->children[$row['parent_id']][$row['id']] = &$this->categoryName[$row['id']]; |
| 236 |
|
} |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
return $this->categories; |
|
@@ 1442-1448 (lines=7) @@
|
| 1439 |
|
} |
| 1440 |
|
$query .= ' ORDER BY id'; |
| 1441 |
|
$result = $this->_config->getDb()->query($query); |
| 1442 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 1443 |
|
if (!array_key_exists($row['id'], $this->categoryName)) { |
| 1444 |
|
$this->categoryName[$row['id']] = $row; |
| 1445 |
|
$this->categories[$row['id']] = &$this->categoryName[$row['id']]; |
| 1446 |
|
$this->children[$row['parent_id']][$row['id']] = &$this->categoryName[$row['id']]; |
| 1447 |
|
} |
| 1448 |
|
} |
| 1449 |
|
} |
| 1450 |
|
|
| 1451 |
|
/** |