本文整理匯總了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));
}