本文整理汇总了PHP中Illuminate\Html\FormBuilder::email方法的典型用法代码示例。如果您正苦于以下问题:PHP FormBuilder::email方法的具体用法?PHP FormBuilder::email怎么用?PHP FormBuilder::email使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Html\FormBuilder
的用法示例。
在下文中一共展示了FormBuilder::email方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: email
/**
* Create a email input field.
*
* @param string $name
* @param string $value
* @param array $options
*
* @return string
*/
public function email($name, $value = null, $options = [])
{
$this->addErrorClass($name, $options);
$tags['input'] = parent::email($name, $value, $options);
$tags['error'] = $this->getErrorTag($name);
return $this->buildTags($tags);
}
示例2: email
public function email($name, $value = null, $options = array())
{
if (strpos(@$options['class'], 'form-control') === false) {
@($options['class'] .= ' form-control');
}
return parent::email($name, $value, $options);
}
示例3: email
/**
* Create an e-mail input field.
*
* @param string $name
* @param string $value
* @param array $options
* @return string
* @static
*/
public static function email($name, $value = null, $options = array())
{
return \Illuminate\Html\FormBuilder::email($name, $value, $options);
}
示例4: email
/**
* {@inheritdoc}
* @param string $name The name of the email input
* @param string|null $value The default value of the input
* @param array $attributes The attributes of the email input
* @return string
*/
public function email($name, $value = null, $attributes = array())
{
$attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL;
return parent::email($name, $value, $attributes);
}
示例5: emailField
/**
* @param Field $field
* @return string
*/
public function emailField(Field $field)
{
return $this->builder->email($field->name, $field->value, $field->getAttributes());
}
示例6: email
/**
* Create an e-mail input field.
*
* @param string $name
* @param string $value
* @param array $options
* @return string
*/
public function email($name, $value = null, $options = array())
{
$this->appendReadOnly($options);
return parent::email($name, $value, $options);
}
示例7: email
/**
* Create an e-mail input field.
*
* @param string $name
* @param string $value
* @param array $options
* @return string
*/
public function email($name, $value = null, $options = array())
{
return parent::email($name, $value, $this->addClass($options, static::TEXT_INPUT_CLASS));
}