Bootstrapper\Form::tel PHP 메소드

tel() 공개 메소드

Creates a tel element
public tel ( string $name, null $value = null, array $attributes = [] ) : string
$name string The name of the element
$value null
$attributes array
리턴 string
    public function tel($name, $value = null, $attributes = array())
    {
        $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL;
        return parent::input('tel', $name, $value, $attributes);
    }

Usage Example

예제 #1
0
 /**
  * Creates a tel element
  *
  * @param string $name The name of the element
  * @param null $value
  * @param array $attributes
  * @return string 
  * @static 
  */
 public static function tel($name, $value = null, $attributes = array())
 {
     return \Bootstrapper\Form::tel($name, $value, $attributes);
 }