@@ 532-540 (lines=9) @@ | ||
529 | /** |
|
530 | * Collapse the complete category tree. |
|
531 | */ |
|
532 | public function collapseAll() |
|
533 | { |
|
534 | $numTreeTab = count($this->treeTab); |
|
535 | for ($i = 0; $i < $numTreeTab; ++$i) { |
|
536 | if ($this->treeTab[$i]['symbol'] == 'minus') { |
|
537 | $this->treeTab[$i]['symbol'] = 'plus'; |
|
538 | } |
|
539 | } |
|
540 | } |
|
541 | ||
542 | /** |
|
543 | * expand the node $id. |
|
@@ 582-590 (lines=9) @@ | ||
579 | * |
|
580 | * @return void |
|
581 | */ |
|
582 | public function expandAll() |
|
583 | { |
|
584 | $numTreeTab = count($this->treeTab); |
|
585 | for ($i = 0; $i < $numTreeTab; ++$i) { |
|
586 | if ($this->treeTab[$i]['symbol'] == 'plus') { |
|
587 | $this->treeTab[$i]['symbol'] = 'minus'; |
|
588 | } |
|
589 | } |
|
590 | } |
|
591 | ||
592 | /** |
|
593 | * Total height of the expanded tree. |