protected function getTabId($current = false)
    {
        if (true === $current) {
            return key($this->tabs);
        }

        $c = $this->tabCount++;

        return $this->defaultTabIdentifier . $c;
    }
protected function getTabId($current = false)
    {
        if (true === $current) {
            return key($this->tabs);
        }

        $c = $this->tabCount++;

        return $this->defaultTabIdentifier . $c;
    }
protected function getTabId ( $ current = false ) { if ( true === $ current ) { return key ( $ this -> tabs ) ; } $ c = $ this -> tabCount ++ ; return $ this -> defaultTabIdentifier . $ c ; }
Generate an id for a tab, or get the last added one.

@param boolean $current Whether or not to get the last added id.

@return string
Generate an id for a tab or get the last added one .