Bootstrapper\Form::datetime PHP Méthode

datetime() public méthode

Creates a datetime form element
See also: Illuminate\FormBuilder\input()
public datetime ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null The value
$attributes array The attributes
Résultat string
    public function datetime($name, $value = null, $attributes = array())
    {
        $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL;
        return parent::input('datetime', $name, $value, $attributes);
    }

Usage Example

Exemple #1
0
 /**
  * Creates a datetime form element
  *
  * @param string $name The name of the element
  * @param null $value The value
  * @param array $attributes The attributes
  * @return string 
  * @see Illuminate\FormBuilder\input()
  * @static 
  */
 public static function datetime($name, $value = null, $attributes = array())
 {
     return \Bootstrapper\Form::datetime($name, $value, $attributes);
 }