| @@ 679-687 (lines=9) @@ | ||
| 676 | /** |
|
| 677 | * Collapse the complete category tree. |
|
| 678 | */ |
|
| 679 | public function collapseAll() |
|
| 680 | { |
|
| 681 | $numTreeTab = count($this->treeTab); |
|
| 682 | for ($i = 0; $i < $numTreeTab; ++$i) { |
|
| 683 | if ($this->treeTab[$i]['symbol'] == 'minus') { |
|
| 684 | $this->treeTab[$i]['symbol'] = 'plus'; |
|
| 685 | } |
|
| 686 | } |
|
| 687 | } |
|
| 688 | ||
| 689 | /** |
|
| 690 | * Get the line number where to find the node $id in the category tree. |
|
| @@ 849-857 (lines=9) @@ | ||
| 846 | * |
|
| 847 | * @return void |
|
| 848 | */ |
|
| 849 | public function expandAll() |
|
| 850 | { |
|
| 851 | $numTreeTab = count($this->treeTab); |
|
| 852 | for ($i = 0; $i < $numTreeTab; ++$i) { |
|
| 853 | if ($this->treeTab[$i]['symbol'] == 'plus') { |
|
| 854 | $this->treeTab[$i]['symbol'] = 'minus'; |
|
| 855 | } |
|
| 856 | } |
|
| 857 | } |
|
| 858 | ||
| 859 | /** |
|
| 860 | * Total height of the expanded tree. |
|