public function addPane() { $pane = html::tabPane($this->lastChild()->href); $pane->parent = $this; $this->panes[] = $pane; return $this; }