src/UI/HTML/FormElements.php
public static function Input( $name, $value = NULL, $class = NULL, $readOnly = NULL, $tabIndex = NULL, $maxLength = NULL, $validator = NULL )
	{
		$attributes	= array(
			'id'		=> $name,
			'type'		=> "text",
			'name'		=> $name,
			'value'		=> $value,
			'class'		=> $class,
			'tabindex'	=> $tabIndex,
			'maxlength'	=> $maxLength,
			'onkeyup'	=> $validator	? "allowOnly(this,'".$validator."');" : NULL,
		);
		if( $readOnly )
			self::addReadonlyAttributes( $attributes, $readOnly );
		return UI_HTML_Tag::create( "input", NULL, $attributes );
	}
public static function Input( $name, $value = NULL, $class = NULL, $readOnly = NULL, $tabIndex = NULL, $maxLength = NULL, $validator = NULL )
	{
		$attributes	= array(
			'id'		=> $name,
			'type'		=> "text",
			'name'		=> $name,
			'value'		=> $value,
			'class'		=> $class,
			'tabindex'	=> $tabIndex,
			'maxlength'	=> $maxLength,
			'onkeyup'	=> $validator	? "allowOnly(this,'".$validator."');" : NULL,
		);
		if( $readOnly )
			self::addReadonlyAttributes( $attributes, $readOnly );
		return UI_HTML_Tag::create( "input", NULL, $attributes );
	}
public static function Input ( $ name , $ value = NULL , $ class = NULL , $ readOnly = NULL , $ tabIndex = NULL , $ maxLength = NULL , $ validator = NULL ) { $ attributes = array ( 'id' => $ name , 'type' => "text" , 'name' => $ name , 'value' => $ value , 'class' => $ class , 'tabindex' => $ tabIndex , 'maxlength' => $ maxLength , 'onkeyup' => $ validator ? "allowOnly(this,'" . $ validator . "');" : NULL , ) ; if ( $ readOnly ) self :: addReadonlyAttributes ( $ attributes , $ readOnly ) ; return UI_HTML_Tag :: create ( "input" , NULL , $ attributes ) ; }
Builds HTML Code for an Input Field. Validation is possible using Validator Classes from UI.validateInput.js.
@access		public
@static
@param		string		$name			Field Name
@param		string		$value			Field Value
@param		string		$class			CSS Class (xl|l|m|s|xs)
@param		mixed		$readOnly		Field is not writable, JavaScript Alert if String is given
@param		int			$tabIndex		Tabbing Order
@param		int			$maxLength		Maximum Length
@param		string		$validator		Validator Class (using UI.validateInput.js)
@return		string
Builds HTML Code for an Input Field . Validation is possible using Validator Classes from UI . validateInput . js .