FormContentEstablish
class FormContentEstablish extends FormWidget
Traits
Properties
bool | $inbox | from FormWidget | |
$ajax | |||
protected string | $title | The title of form. |
from FormWidget |
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 Closure|null | $boxTools | 可用操作 | from FormWidget |
protected array | $width | Width for label and submit field. |
from FormWidget |
Methods
Form constructor.
No description
Format form attributes form array to html.
Set field and label width in current form.
Generate a Field object and add to form builder if Field exists.
Merge validation messages from input validators.
No description
No description
Details
in
PoppyTrait at line 43
protected AuthManager
pyAuth()
get auth
in
PoppyTrait at line 52
protected Translator
pyTranslator()
get translator
in
PoppyTrait at line 62
protected Repository
pyConfig()
Get configuration instance.
in
PoppyTrait at line 72
protected DatabaseManager
pyDb()
get db
in
PoppyTrait at line 81
protected Kernel
pyConsole()
Get console instance.
in
PoppyTrait at line 90
protected Container
pyContainer()
Get IoC Container.
in
PoppyTrait at line 99
protected Mailer
pyMailer()
Get mailer instance.
in
PoppyTrait at line 108
protected SessionManager|Store
pySession()
Get session instance.
in
PoppyTrait at line 117
protected Request
pyRequest()
get request
in
PoppyTrait at line 127
protected Redirector
pyRedirector()
get redirector
in
PoppyTrait at line 136
protected Factory
pyValidation()
get validation
in
PoppyTrait at line 146
protected Dispatcher
pyEvent()
get event
in
PoppyTrait at line 156
protected LoggerInterface
pyLogger()
get logger
in
PoppyTrait at line 166
protected ResponseFactory
pyResponse()
get response
in
PoppyTrait at line 176
protected Filesystem
pyFile()
get file
in
PoppyTrait at line 186
protected UrlGenerator
pyUrl()
get url
in
PoppyTrait at line 197
protected mixed
pyCache(string $tag = '')
get cache
in
PoppyTrait at line 211
protected RedisManager
pyRedis()
get redis
in
PoppyTrait at line 220
protected Factory
pyView()
get view
in
PoppyTrait at line 229
protected Poppy
pyPoppy()
get poppy
in
PoppyTrait at line 238
protected Ini
pyIni()
Ini Parser
in
PoppyTrait at line 247
protected Xml
pyXml()
Ini Parser
in
PoppyTrait at line 256
protected Yaml
pyYaml()
Yaml Parser
at line 34
__construct(array $data = [])
Form constructor.
at line 65
array
data()
No description
in
FormWidget at line 166
FormWidget
fill(array|Arrayable $data = [])
Fill data to form fields.
in
FormWidget at line 182
$this
sanitize()
No description
in
FormWidget at line 199
FormWidget
attribute(string|array $attr, string $value = '')
Add form attributes.
in
FormWidget at line 220
string
formatAttribute(array $attributes = [])
Format form attributes form array to html.
in
FormWidget at line 243
$this
action(string $action)
Action uri of the form.
in
FormWidget at line 253
FormWidget
method(string $method = 'POST')
Method of the form.
in
FormWidget at line 269
$this
disablePjax()
Disable Pjax.
in
FormWidget at line 281
$this
disableReset()
Disable reset button.
in
FormWidget at line 293
$this
disableSubmit()
Disable submit button.
in
FormWidget at line 308
$this
setWidth(int $fieldWidth = 8, int $labelWidth = 2)
Set field and label width in current form.
in
FormWidget at line 331
FormWidget
pushField(Field $field)
Add a form field to form.
in
FormWidget at line 342
array
fields()
Get all fields of form.
in
FormWidget at line 352
bool
hasFile()
Determine if form fields has files.
in
FormWidget at line 370
bool|MessageBag
validate(Request $request)
Validate this form fields.
in
FormWidget at line 389
unbox()
No description
in
FormWidget at line 402
FormWidget
boxTools(Closure $closure)
设定工具栏
in
FormWidget at line 411
render()
Render the form.
in
FormWidget at line 462
Field|$this
__call(string $method, array $arguments)
Generate a Field object and add to form builder if Field exists.
in
FormWidget at line 483
string
title()
Get form title.
in
FormWidget at line 491
protected void
initFormAttributes()
Initialize the form attributes.
in
FormWidget at line 508
protected array
getVariables()
Get variables for render form.
in
FormWidget at line 532
protected MessageBag
mergeValidationMessages(Validator[] $validators)
Merge validation messages from input validators.
in
FormWidget at line 73
Code
code(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Text
text(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Link
link(mixed $label)
No description
in
FormWidget at line 73
Password
password(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Checkbox
checkbox(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Radio
radio(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Select
select(mixed $name, mixed $label)
No description
in
FormWidget at line 73
SelectDo
selectDo(mixed $name, mixed $label)
No description
in
FormWidget at line 73
MultipleSelect
multipleSelect(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Textarea
textarea(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Hidden
hidden(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Id
id(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Ip
ip(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Url
url(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Color
color(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Captcha
captcha(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Email
email(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Mobile
mobile(mixed $name, mixed $label)
No description
in
FormWidget at line 73
File
file(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Image
image(mixed $name, mixed $label)
No description
in
FormWidget at line 73
MultiImage
multiImage(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Date
date(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Datetime
datetime(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Time
time(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Year
year(mixed $column, mixed $label)
No description
in
FormWidget at line 73
Month
month(mixed $column, mixed $label)
No description
in
FormWidget at line 73
DateRange
dateRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 73
DateTimeRange
dateTimeRange(mixed $at, mixed $label)
No description
in
FormWidget at line 73
TimeRange
timeRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 73
Number
number(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Currency
currency(mixed $name, mixed $label)
No description
in
FormWidget at line 73
SwitchField
switch() $$name, $label)
No description
in
FormWidget at line 73
Display
display(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Divider
divider(mixed $title)
No description
in
FormWidget at line 73
Editor
editor(mixed $name, mixed $label)
No description
in
FormWidget at line 73
Decimal
decimal(mixed $column, mixed $label)
No description
in
FormWidget at line 73
Html
html(mixed $html, mixed $arguments)
No description
in
FormWidget at line 73
Tags
tags(mixed $column, mixed $label)
No description
in
FormWidget at line 73
Timezone
timezone(mixed $column, mixed $label)
No description
in
FormWidget at line 73
Keyword
keyword(mixed $column, mixed $label)
No description
in
FormWidget at line 73
Question
question(mixed $column, mixed $label)
No description
in
FormWidget at line 73
Hook
hook(mixed $column, mixed $label)
No description
in
FormWidget at line 73
TableInput
tableInput(mixed $column, mixed $label)
No description
at line 52
mixed
handle(Request $request)
No description
at line 79
void
form()
No description