|
@@ 239-244 (lines=6) @@
|
| 236 |
|
$result = $this->_config->getDb()->query($query); |
| 237 |
|
|
| 238 |
|
if ($result) { |
| 239 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 240 |
|
$this->categoryName[$row['id']] = $row; |
| 241 |
|
$this->categories[] =& $this->categoryName[$row['id']]; |
| 242 |
|
$this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']]; |
| 243 |
|
$this->owner[$row['id']] =& $row['user_id']; |
| 244 |
|
} |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
return $this->categories; |
|
@@ 1465-1471 (lines=7) @@
|
| 1462 |
|
} |
| 1463 |
|
$query .= ' ORDER BY id'; |
| 1464 |
|
$result = $this->_config->getDb()->query($query); |
| 1465 |
|
while ($row = $this->_config->getDb()->fetchArray($result)) { |
| 1466 |
|
if (!array_key_exists($row['id'], $this->categoryName)) { |
| 1467 |
|
$this->categoryName[$row['id']] = $row; |
| 1468 |
|
$this->categories[$row['id']] = &$this->categoryName[$row['id']]; |
| 1469 |
|
$this->children[$row['parent_id']][$row['id']] = &$this->categoryName[$row['id']]; |
| 1470 |
|
} |
| 1471 |
|
} |
| 1472 |
|
} |
| 1473 |
|
|
| 1474 |
|
/** |