add Form::hidden and Form::text.
This commit is contained in:
parent
70cba4ebe2
commit
f9c4c50436
|
@ -110,6 +110,19 @@ public static function input($type, $name, $value = null, $attributes = array())
|
||||||
return '<input'.HTML::attributes(array_merge($attributes, array('type' => $type, 'name' => $name, 'value' => $value, 'id' => static::id($name, $attributes)))).'>'.PHP_EOL;
|
return '<input'.HTML::attributes(array_merge($attributes, array('type' => $type, 'name' => $name, 'value' => $value, 'id' => static::id($name, $attributes)))).'>'.PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a HTML text input element.
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @param string $value
|
||||||
|
* @param array $attributes
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function text($name, $value = null, $attributes = array())
|
||||||
|
{
|
||||||
|
return static::input('text', $name, $value, $attributes);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a HTML password input element.
|
* Create a HTML password input element.
|
||||||
*
|
*
|
||||||
|
@ -122,6 +135,19 @@ public static function password($name, $attributes = array())
|
||||||
return static::input('password', $name, null, $attributes);
|
return static::input('password', $name, null, $attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a HTML hidden input element.
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @param string $value
|
||||||
|
* @param array $attributes
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function hidden($name, $value = null, $attributes = array())
|
||||||
|
{
|
||||||
|
return static::input('hidden', $name, $value, $attributes);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a HTML search input element.
|
* Create a HTML search input element.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue