_tabs[$id])) { $this->_tabs[$id] = array(); } if(strlen($name) == 0 && isset($options['title'])) { $name = $options['title']; } $this->_tabs[$id][] = array('name' => $name, 'content' => $content, 'options' => $options); return $this; } /** * Render TabsContainer with all the currently registered tabs. * * Render all tabs to the given $id. If no arguments are given the * tabsContainer view helper object is returned and can be used * for chaining {@link addPane()} for tab pane adding. * * @link http://docs.jquery.com/UI/Tabs * @param string $id * @param array $params * @param array $attribs * @return string|ZendX_JQuery_View_Helper_TabsContainer */ public function tabContainer($id=null, $params=array(), $attribs=array()) { if(func_num_args() === 0) { return $this; } if(!isset($attribs['id'])) { $attribs['id'] = $id; } $content = ""; if(isset($this->_tabs[$id])) { $list = '