src/UI/HTML/FormElements.php
public static function Textarea( $name, $content, $class = NULL, $readOnly = NULL, $validator = NULL )
	{
		$attributes	= array(
			'id'		=> $name,
			'name'		=> $name,
			'class'		=> $class,
			'onkeyup'	=> $validator	? "allowOnly(this,'".$validator."');" : NULL,
		);
		if( $readOnly )
			self::addReadonlyAttributes( $attributes, $readOnly );
		return UI_HTML_Tag::create( "textarea", (string) $content, $attributes );
	}
public static function Textarea( $name, $content, $class = NULL, $readOnly = NULL, $validator = NULL )
	{
		$attributes	= array(
			'id'		=> $name,
			'name'		=> $name,
			'class'		=> $class,
			'onkeyup'	=> $validator	? "allowOnly(this,'".$validator."');" : NULL,
		);
		if( $readOnly )
			self::addReadonlyAttributes( $attributes, $readOnly );
		return UI_HTML_Tag::create( "textarea", (string) $content, $attributes );
	}
public static function Textarea ( $ name , $ content , $ class = NULL , $ readOnly = NULL , $ validator = NULL ) { $ attributes = array ( 'id' => $ name , 'name' => $ name , 'class' => $ class , 'onkeyup' => $ validator ? "allowOnly(this,'" . $ validator . "');" : NULL , ) ; if ( $ readOnly ) self :: addReadonlyAttributes ( $ attributes , $ readOnly ) ; return UI_HTML_Tag :: create ( "textarea" , ( string ) $ content , $ attributes ) ; }
Builds HTML Code for a Textarea.
@access		public
@static
@param		string		$name			Field Name
@param		string		$content		Field Content
@param		string		$class			CSS Class (ll|lm|ls|ml|mm|ms|sl|sm|ss)
@param		mixed		$readOnly		Field is not writable, JavaScript Alert if String is given
@param		string		$validator		Validator Class (using UI.validateInput.js)
@return		string
Builds HTML Code for a Textarea .