src/UI/HTML/FormElements.php
public static function Option( $value, $label, $selected = NULL, $disabled = NULL, $class = NULL )
	{
		if( !( $value != "_selected" && $value != "_groupname" ) )
			return "";
		$attributes	= array(
			'value'		=> $value,
			'selected'	=> $selected	? "selected" : NULL,
			'disabled'	=> $disabled	? "disabled" : NULL,
			'class'		=> $class,
		);
		return UI_HTML_Tag::create( "option", htmlspecialchars( $label ), $attributes );
	}
public static function Option( $value, $label, $selected = NULL, $disabled = NULL, $class = NULL )
	{
		if( !( $value != "_selected" && $value != "_groupname" ) )
			return "";
		$attributes	= array(
			'value'		=> $value,
			'selected'	=> $selected	? "selected" : NULL,
			'disabled'	=> $disabled	? "disabled" : NULL,
			'class'		=> $class,
		);
		return UI_HTML_Tag::create( "option", htmlspecialchars( $label ), $attributes );
	}
public static function Option ( $ value , $ label , $ selected = NULL , $ disabled = NULL , $ class = NULL ) { if ( ! ( $ value != "_selected" && $ value != "_groupname" ) ) return "" ; $ attributes = array ( 'value' => $ value , 'selected' => $ selected ? "selected" : NULL , 'disabled' => $ disabled ? "disabled" : NULL , 'class' => $ class , ) ; return UI_HTML_Tag :: create ( "option" , htmlspecialchars ( $ label ) , $ attributes ) ; }
Builds HTML Code for an Option for a Select.
@access		public
@static
@param		string		$value			Option Value
@param		string		$label			Option Label
@param		bool		$selected		Option State
@param		string		$disabled		Option is not selectable
@param		string		$class			CSS Class
@return		string
Builds HTML Code for an Option for a Select .