public function add($label, $content = null, $tabId = null, $active = false)
    {
        $tabId = is_null($tabId) ? $this->getTabId() : $tabId;
        $label = is_null($label) ? $tabId : $label;

        $this->tabs[$tabId] = array (
            'label'     => $label,
            'content'   => $content,
            'active'    => $active,
        );

        return $this;
    }
public function add($label, $content = null, $tabId = null, $active = false)
    {
        $tabId = is_null($tabId) ? $this->getTabId() : $tabId;
        $label = is_null($label) ? $tabId : $label;

        $this->tabs[$tabId] = array (
            'label'     => $label,
            'content'   => $content,
            'active'    => $active,
        );

        return $this;
    }
public function add ( $ label , $ content = null , $ tabId = null , $ active = false ) { $ tabId = is_null ( $ tabId ) ? $ this -> getTabId ( ) : $ tabId ; $ label = is_null ( $ label ) ? $ tabId : $ label ; $ this -> tabs [ $ tabId ] = array ( 'label' => $ label , 'content' => $ content , 'active' => $ active , ) ; return $ this ; }
Add a new tab.

@param string  $label   The label for the tab.
@param string  $content The tab's content. Can be added later.
@param string  $tabId   The tab's id. Autogenerated when left empty.
@param boolean $active  If this tab should be active.

@return Tabs Fluent interface
Add a new tab .