@@ 549-557 (lines=9) @@ | ||
546 | /** |
|
547 | * Collapse the complete category tree. |
|
548 | */ |
|
549 | public function collapseAll() |
|
550 | { |
|
551 | $numTreeTab = count($this->treeTab); |
|
552 | for ($i = 0; $i < $numTreeTab; ++$i) { |
|
553 | if ($this->treeTab[$i]['symbol'] == 'minus') { |
|
554 | $this->treeTab[$i]['symbol'] = 'plus'; |
|
555 | } |
|
556 | } |
|
557 | } |
|
558 | ||
559 | /** |
|
560 | * expand the node $id. |
|
@@ 599-607 (lines=9) @@ | ||
596 | * |
|
597 | * @return void |
|
598 | */ |
|
599 | public function expandAll() |
|
600 | { |
|
601 | $numTreeTab = count($this->treeTab); |
|
602 | for ($i = 0; $i < $numTreeTab; ++$i) { |
|
603 | if ($this->treeTab[$i]['symbol'] == 'plus') { |
|
604 | $this->treeTab[$i]['symbol'] = 'minus'; |
|
605 | } |
|
606 | } |
|
607 | } |
|
608 | ||
609 | /** |
|
610 | * Total height of the expanded tree. |