src/UI/HTML/Tabs.php
public function addTab( $label, $content, $fragmentKey = NULL )
	{
		if( is_null( $fragmentKey ) )
		{
			$this->tabs[]	= $label;
			$this->divs[]	= $content;
		}
		else
		{
			if( isset( $this->tabs[$fragmentKey] ) )
				throw new Exception( 'Tab with Fragment ID "'.$fragmentKey.'" is already set' );
			$this->tabs[$fragmentKey]	= $label;
			$this->divs[$fragmentKey]	= $content;
		}
	}
public function addTab( $label, $content, $fragmentKey = NULL )
	{
		if( is_null( $fragmentKey ) )
		{
			$this->tabs[]	= $label;
			$this->divs[]	= $content;
		}
		else
		{
			if( isset( $this->tabs[$fragmentKey] ) )
				throw new Exception( 'Tab with Fragment ID "'.$fragmentKey.'" is already set' );
			$this->tabs[$fragmentKey]	= $label;
			$this->divs[$fragmentKey]	= $content;
		}
	}
public function addTab ( $ label , $ content , $ fragmentKey = NULL ) { if ( is_null ( $ fragmentKey ) ) { $ this -> tabs [ ] = $ label ; $ this -> divs [ ] = $ content ; } else { if ( isset ( $ this -> tabs [ $ fragmentKey ] ) ) throw new Exception ( 'Tab with Fragment ID "' . $ fragmentKey . '" is already set' ) ; $ this -> tabs [ $ fragmentKey ] = $ label ; $ this -> divs [ $ fragmentKey ] = $ content ; } }
Adds a new Tab by its Label and Content.
@access		public
@param		string		$label		Label of Tab
@param		string		$content	Content related to Tab
@return		void
Adds a new Tab by its Label and Content .