@@ -35,12 +35,18 @@ |
||
| 35 | 35 | return $segment; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param integer $index |
|
| 40 | + */ |
|
| 38 | 41 | public function activate($index){ |
| 39 | 42 | $this->content["menu"]->getItem($index)->setActive(true); |
| 40 | 43 | $this->content[$index]->setActive(true); |
| 41 | 44 | return $this; |
| 42 | 45 | } |
| 43 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $title |
|
| 49 | + */ |
|
| 44 | 50 | public function addPanel($title,$content){ |
| 45 | 51 | return $this->addItem([$title,$content]); |
| 46 | 52 | } |