src/UI/HTML/FormElements.php
public static function OptionGroup( $label, $options, $selected = NULL )
	{
		$attributes	= array( 'label' => $label );
		$options	= self::Options( $options, $selected );
		return UI_HTML_Tag::create( "optgroup", $options, $attributes );
	}
public static function OptionGroup( $label, $options, $selected = NULL )
	{
		$attributes	= array( 'label' => $label );
		$options	= self::Options( $options, $selected );
		return UI_HTML_Tag::create( "optgroup", $options, $attributes );
	}
public static function OptionGroup ( $ label , $ options , $ selected = NULL ) { $ attributes = array ( 'label' => $ label ) ; $ options = self :: Options ( $ options , $ selected ) ; return UI_HTML_Tag :: create ( "optgroup" , $ options , $ attributes ) ; }
Builds HTML Code for an Option Group for a Select.
@access		public
@static
@param		string		$label			Group Label
@param		string		$options 		Array of Options
@param		string		$selected		Value of selected Option
@return		string
Builds HTML Code for an Option Group for a Select .