Location: PHPKode > projects > GnomePHP > peec-GnomePHP-b5a360b/gnomephp/form/Input.php
<?php
namespace gnomephp\form;

class Input extends FormField{
	protected $type = 'text';
	
	
	public function __construct($formId, $url, $name, $value, $props, $type){
		parent::__construct($formId, $url, $name, $value, $props);
		
		$this->type = $type;
	}
	
	public function __toString(){
		return '<input type="'.$this->type.'" value="'.$this->value.'" name="'.$this->name.'"'.$this->buildProps($this->props).' />';
	}
	
}
Return current item: GnomePHP