class FormEmail extends FormBaseWidget

Traits

PoppyTrait

Properties

bool $inbox from  FormWidget
$ajax from  FormBaseWidget
protected string $title 表单标题
protected bool $withContent

是否包含 JS 加载界面

from  FormWidget
protected Field[] $fields from  FormWidget
protected array $data from  FormWidget
protected array $attributes from  FormWidget
protected array $buttons

Available buttons.

from  FormWidget
protected array $boxTools from  FormWidget
protected array $width

Width for label and submit field.

from  FormWidget

Methods

AuthManager
pyAuth()

get auth

pyTranslator()

get translator

Repository
pyConfig()

Get configuration instance.

DatabaseManager
pyDb()

get db

Kernel
pyConsole()

Get console instance.

Container
pyContainer()

Get IoC Container.

Mailer
pyMailer()

Get mailer instance.

SessionManager|Store
pySession()

Get session instance.

Request
pyRequest()

get request

Redirector
pyRedirector()

get redirector

Factory
pyValidation()

get validation

Dispatcher
pyEvent()

get event

LoggerInterface
pyLogger()

get logger

ResponseFactory
pyResponse()

get response

Filesystem
pyFile()

get file

UrlGenerator
pyUrl()

get url

mixed
pyCache(string $tag = '')

get cache

RedisManager
pyRedis()

get redis

Factory
pyView()

get view

pyPoppy()

get poppy

Ini
pyIni()

Ini Parser

Xml
pyXml()

Ini Parser

pyYaml()

Yaml Parser

__construct(array $data = [])

Form constructor.

array
data()

The data of the form.

$this
fill(array $data = [])

Fill data to form fields.

$this
sanitize()

No description

attribute(string|array $attr, string $value = '')

Add form attributes.

string
formatAttribute(array $attributes = [])

Format form attributes form array to html.

$this
action(string $action)

Action uri of the form.

method(string $method = 'POST')

Method of the form.

$this
disablePjax()

Disable Pjax.

$this
disableReset()

Disable reset button.

$this
disableSubmit()

Disable submit button.

$this
setWidth(int $fieldWidth = 8, int $labelWidth = 2)

Set field and label width in current form.

bool
hasField(string $name)

Determine if the form has field type.

$this
pushField(Field $field)

Add a form field to form.

Field[]
fields()

Get all fields of form.

bool
hasFile()

Determine if form fields has files.

bool|MessageBag
validate(Request $request)

Validate this form fields.

fieldset(string $title, Closure $setCallback)

Add a fieldset to form.

unbox()

No description

boxTools($tools)

No description

plainSkeleton()

No description

render()

Render the form.

Field|$this
__call(string $method, array $arguments)

Generate a Field object and add to form builder if Field exists.

string
title()

Get form title.

array
fetchSkeleton()

No description

initFormAttributes()

Initialize the form attributes.

array
getVariables()

Get variables for render form.

MessageBag
mergeValidationMessages(Validator[] $validators)

Merge validation messages from input validators.

code(mixed $name, mixed $label)

No description

text(mixed $name, mixed $label)

No description

button(mixed $label)

No description

link(mixed $label)

No description

password(mixed $name, mixed $label)

No description

checkbox(mixed $name, mixed $label)

No description

radio(mixed $name, mixed $label)

No description

select(mixed $name, mixed $label)

No description

multipleSelect(mixed $name, mixed $label)

No description

textarea(mixed $name, mixed $label)

No description

hidden(mixed $name, mixed $label)

No description

Id
id(mixed $name, mixed $label)

No description

Ip
ip(mixed $name, mixed $label)

No description

Url
url(mixed $name, mixed $label)

No description

color(mixed $name, mixed $label)

No description

email(mixed $name, mixed $label)

No description

mobile(mixed $name, mixed $label)

No description

slider(mixed $name, mixed $label)

No description

file(mixed $name, mixed $label)

No description

image(mixed $name, mixed $label)

No description

multiImage(mixed $name, mixed $label)

No description

date(mixed $name, mixed $label)

No description

datetime(mixed $name, mixed $label)

No description

time(mixed $name, mixed $label)

No description

year(mixed $column, mixed $label)

No description

month(mixed $column, mixed $label)

No description

dateRange(mixed $start, mixed $end, mixed $label)

No description

DateTimeRange
dateTimeRange(mixed $start, mixed $end, mixed $label)

No description

timeRange(mixed $start, mixed $end, mixed $label)

No description

number(mixed $name, mixed $label)

No description

currency(mixed $name, mixed $label)

No description

switch() $$name, $label)

No description

display(mixed $name, mixed $label)

No description

rate(mixed $name, mixed $label)

No description

divider(mixed $title)

No description

editor(mixed $name, mixed $label)

No description

decimal(mixed $column, mixed $label)

No description

html(mixed $html, mixed $arguments)

No description

tags(mixed $column, mixed $label)

No description

icon(mixed $column, mixed $label)

No description

captcha(mixed $column, mixed $label)

No description

listbox(mixed $column, mixed $label)

No description

table(mixed $column, mixed $label, mixed $builder)

No description

timezone(mixed $column, mixed $label)

No description

keyValue(mixed $column, mixed $label)

No description

keyWord(mixed $column, mixed $label)

No description

Hook
hook(mixed $column, mixed $label)

No description

list(mixed $column, mixed $label)

No description

mixed
handle(Request $request)

Handle the form request.

form()

Build a form here.

Details

in PoppyTrait at line 41
protected AuthManager pyAuth()

get auth

Return Value

AuthManager

in PoppyTrait at line 50
protected Translator pyTranslator()

get translator

Return Value

Translator

in PoppyTrait at line 60
protected Repository pyConfig()

Get configuration instance.

Return Value

Repository

in PoppyTrait at line 70
protected DatabaseManager pyDb()

get db

Return Value

DatabaseManager

in PoppyTrait at line 79
protected Kernel pyConsole()

Get console instance.

Return Value

Kernel

in PoppyTrait at line 88
protected Container pyContainer()

Get IoC Container.

Return Value

Container

| Application

in PoppyTrait at line 97
protected Mailer pyMailer()

Get mailer instance.

Return Value

Mailer

in PoppyTrait at line 106
protected SessionManager|Store pySession()

Get session instance.

Return Value

SessionManager|Store

in PoppyTrait at line 115
protected Request pyRequest()

get request

Return Value

Request

in PoppyTrait at line 125
protected Redirector pyRedirector()

get redirector

Return Value

Redirector

in PoppyTrait at line 134
protected Factory pyValidation()

get validation

Return Value

Factory

in PoppyTrait at line 144
protected Dispatcher pyEvent()

get event

Return Value

Dispatcher

in PoppyTrait at line 154
protected LoggerInterface pyLogger()

get logger

Return Value

LoggerInterface

in PoppyTrait at line 164
protected ResponseFactory pyResponse()

get response

Return Value

ResponseFactory

in PoppyTrait at line 174
protected Filesystem pyFile()

get file

Return Value

Filesystem

in PoppyTrait at line 184
protected UrlGenerator pyUrl()

get url

Return Value

UrlGenerator

in PoppyTrait at line 195
protected mixed pyCache(string $tag = '')

get cache

Parameters

string $tag tag

Return Value

mixed

in PoppyTrait at line 209
protected RedisManager pyRedis()

get redis

Return Value

RedisManager

in PoppyTrait at line 218
protected Factory pyView()

get view

Return Value

Factory

in PoppyTrait at line 227
protected Poppy pyPoppy()

get poppy

Return Value

Poppy

in PoppyTrait at line 236
protected Ini pyIni()

Ini Parser

Return Value

Ini

in PoppyTrait at line 245
protected Xml pyXml()

Ini Parser

Return Value

Xml

in PoppyTrait at line 254
protected Yaml pyYaml()

Yaml Parser

Return Value

Yaml

in FormWidget at line 149
__construct(array $data = [])

Form constructor.

Parameters

array $data

in FormBaseWidget at line 45
array data()

The data of the form.

Return Value

array

in FormWidget at line 171
$this fill(array $data = [])

Fill data to form fields.

Parameters

array $data

Return Value

$this

in FormWidget at line 187
$this sanitize()

No description

Return Value

$this

in FormWidget at line 204
FormWidget attribute(string|array $attr, string $value = '')

Add form attributes.

Parameters

string|array $attr
string $value

Return Value

FormWidget

in FormWidget at line 225
string formatAttribute(array $attributes = [])

Format form attributes form array to html.

Parameters

array $attributes

Return Value

string

in FormWidget at line 248
$this action(string $action)

Action uri of the form.

Parameters

string $action

Return Value

$this

in FormWidget at line 258
method(string $method = 'POST')

Method of the form.

Parameters

string $method

in FormWidget at line 274
$this disablePjax()

Disable Pjax.

Return Value

$this

in FormWidget at line 286
$this disableReset()

Disable reset button.

Return Value

$this

in FormWidget at line 298
$this disableSubmit()

Disable submit button.

Return Value

$this

in FormWidget at line 313
$this setWidth(int $fieldWidth = 8, int $labelWidth = 2)

Set field and label width in current form.

Parameters

int $fieldWidth
int $labelWidth

Return Value

$this

in FormWidget at line 336
bool hasField(string $name)

Determine if the form has field type.

Parameters

string $name

Return Value

bool

in FormWidget at line 348
$this pushField(Field $field)

Add a form field to form.

Parameters

Field $field

Return Value

$this

in FormWidget at line 360
Field[] fields()

Get all fields of form.

Return Value

Field[]

in FormWidget at line 370
bool hasFile()

Determine if form fields has files.

Return Value

bool

in FormWidget at line 388
bool|MessageBag validate(Request $request)

Validate this form fields.

Parameters

Request $request

Return Value

bool|MessageBag

in FormWidget at line 414
Fieldset fieldset(string $title, Closure $setCallback)

Add a fieldset to form.

Parameters

string $title
Closure $setCallback

Return Value

Fieldset

in FormWidget at line 427
unbox()

No description

in FormWidget at line 435
boxTools($tools)

No description

Parameters

$tools

in FormWidget at line 441
plainSkeleton()

No description

in FormWidget at line 449
render()

Render the form.

in FormWidget at line 507
Field|$this __call(string $method, array $arguments)

Generate a Field object and add to form builder if Field exists.

Parameters

string $method
array $arguments

Return Value

Field|$this

in FormWidget at line 528
string title()

Get form title.

Return Value

string

in FormWidget at line 533
array fetchSkeleton()

No description

Return Value

array

in FormWidget at line 581
protected initFormAttributes()

Initialize the form attributes.

in FormWidget at line 598
protected array getVariables()

Get variables for render form.

Return Value

array

in FormWidget at line 622
protected MessageBag mergeValidationMessages(Validator[] $validators)

Merge validation messages from input validators.

Parameters

Validator[] $validators

Return Value

MessageBag

in FormWidget at line 74
Code code(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Code

in FormWidget at line 74
Text text(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Text

in FormWidget at line 74
Button button(mixed $label)

No description

Parameters

mixed $label

Return Value

Button

No description

Parameters

mixed $label

Return Value

Link

in FormWidget at line 74
Password password(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Password

in FormWidget at line 74
Checkbox checkbox(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Checkbox

in FormWidget at line 74
Radio radio(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Radio

in FormWidget at line 74
Select select(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Select

in FormWidget at line 74
MultipleSelect multipleSelect(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

MultipleSelect

in FormWidget at line 74
Textarea textarea(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Textarea

in FormWidget at line 74
Hidden hidden(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Hidden

in FormWidget at line 74
Id id(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Id

in FormWidget at line 74
Ip ip(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Ip

in FormWidget at line 74
Url url(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Url

in FormWidget at line 74
Color color(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Color

in FormWidget at line 74
Email email(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Email

in FormWidget at line 74
Mobile mobile(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Mobile

in FormWidget at line 74
Slider slider(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Slider

in FormWidget at line 74
File file(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

File

in FormWidget at line 74
Image image(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Image

in FormWidget at line 74
MultiImage multiImage(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

MultiImage

in FormWidget at line 74
Date date(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Date

in FormWidget at line 74
Datetime datetime(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Datetime

in FormWidget at line 74
Time time(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Time

in FormWidget at line 74
Year year(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Year

in FormWidget at line 74
Month month(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Month

in FormWidget at line 74
DateRange dateRange(mixed $start, mixed $end, mixed $label)

No description

Parameters

mixed $start
mixed $end
mixed $label

Return Value

DateRange

in FormWidget at line 74
DateTimeRange dateTimeRange(mixed $start, mixed $end, mixed $label)

No description

Parameters

mixed $start
mixed $end
mixed $label

Return Value

DateTimeRange

in FormWidget at line 74
TimeRange timeRange(mixed $start, mixed $end, mixed $label)

No description

Parameters

mixed $start
mixed $end
mixed $label

Return Value

TimeRange

in FormWidget at line 74
Number number(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Number

in FormWidget at line 74
Currency currency(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Currency

in FormWidget at line 74
SwitchField switch() $$name, $label)

No description

Parameters

) $$name
$label

Return Value

SwitchField

in FormWidget at line 74
Display display(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Display

in FormWidget at line 74
Rate rate(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Rate

in FormWidget at line 74
Divider divider(mixed $title)

No description

Parameters

mixed $title

Return Value

Divider

in FormWidget at line 74
Editor editor(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Editor

in FormWidget at line 74
Decimal decimal(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Decimal

in FormWidget at line 74
Html html(mixed $html, mixed $arguments)

No description

Parameters

mixed $html
mixed $arguments

Return Value

Html

in FormWidget at line 74
Tags tags(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Tags

in FormWidget at line 74
Icon icon(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Icon

in FormWidget at line 74
Captcha captcha(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Captcha

in FormWidget at line 74
Listbox listbox(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Listbox

in FormWidget at line 74
Table table(mixed $column, mixed $label, mixed $builder)

No description

Parameters

mixed $column
mixed $label
mixed $builder

Return Value

Table

in FormWidget at line 74
Timezone timezone(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Timezone

in FormWidget at line 74
KeyValue keyValue(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

KeyValue

in FormWidget at line 74
Keyword keyWord(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Keyword

in FormWidget at line 74
Hook hook(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

Hook

in FormWidget at line 74
ListField list(mixed $column, mixed $label)

No description

Parameters

mixed $column
mixed $label

Return Value

ListField

in FormBaseWidget at line 24
mixed handle(Request $request)

Handle the form request.

Parameters

Request $request

Return Value

mixed

at line 19
form()

Build a form here.