FormPamEnable
class FormPamEnable 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 array | $boxTools | from FormWidget | |
protected array | $width | Width for label and submit field. |
from FormWidget |
Methods
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
Build a form here.
Details
in
PoppyTrait at line 41
protected AuthManager
pyAuth()
get auth
in
PoppyTrait at line 50
protected Translator
pyTranslator()
get translator
in
PoppyTrait at line 60
protected Repository
pyConfig()
Get configuration instance.
in
PoppyTrait at line 70
protected DatabaseManager
pyDb()
get db
in
PoppyTrait at line 79
protected Kernel
pyConsole()
Get console instance.
in
PoppyTrait at line 88
protected Container
pyContainer()
Get IoC Container.
in
PoppyTrait at line 97
protected Mailer
pyMailer()
Get mailer instance.
in
PoppyTrait at line 106
protected SessionManager|Store
pySession()
Get session instance.
in
PoppyTrait at line 115
protected Request
pyRequest()
get request
in
PoppyTrait at line 125
protected Redirector
pyRedirector()
get redirector
in
PoppyTrait at line 134
protected Factory
pyValidation()
get validation
in
PoppyTrait at line 144
protected Dispatcher
pyEvent()
get event
in
PoppyTrait at line 154
protected LoggerInterface
pyLogger()
get logger
in
PoppyTrait at line 164
protected ResponseFactory
pyResponse()
get response
in
PoppyTrait at line 174
protected Filesystem
pyFile()
get file
in
PoppyTrait at line 184
protected UrlGenerator
pyUrl()
get url
in
PoppyTrait at line 195
protected mixed
pyCache(string $tag = '')
get cache
in
PoppyTrait at line 209
protected RedisManager
pyRedis()
get redis
in
PoppyTrait at line 218
protected Factory
pyView()
get view
in
PoppyTrait at line 227
protected Poppy
pyPoppy()
get poppy
in
PoppyTrait at line 236
protected Ini
pyIni()
Ini Parser
in
PoppyTrait at line 245
protected Xml
pyXml()
Ini Parser
in
PoppyTrait at line 254
protected Yaml
pyYaml()
Yaml Parser
in
FormWidget at line 149
__construct(array $data = [])
Form constructor.
at line 57
array
data()
No description
in
FormWidget at line 171
$this
fill(array $data = [])
Fill data to form fields.
in
FormWidget at line 187
$this
sanitize()
No description
in
FormWidget at line 204
FormWidget
attribute(string|array $attr, string $value = '')
Add form attributes.
in
FormWidget at line 225
string
formatAttribute(array $attributes = [])
Format form attributes form array to html.
in
FormWidget at line 248
$this
action(string $action)
Action uri of the form.
in
FormWidget at line 258
method(string $method = 'POST')
Method of the form.
in
FormWidget at line 274
$this
disablePjax()
Disable Pjax.
in
FormWidget at line 286
$this
disableReset()
Disable reset button.
in
FormWidget at line 298
$this
disableSubmit()
Disable submit button.
in
FormWidget at line 313
$this
setWidth(int $fieldWidth = 8, int $labelWidth = 2)
Set field and label width in current form.
in
FormWidget at line 336
bool
hasField(string $name)
Determine if the form has field type.
in
FormWidget at line 348
$this
pushField(Field $field)
Add a form field to form.
in
FormWidget at line 360
Field[]
fields()
Get all fields of form.
in
FormWidget at line 370
bool
hasFile()
Determine if form fields has files.
in
FormWidget at line 388
bool|MessageBag
validate(Request $request)
Validate this form fields.
in
FormWidget at line 414
Fieldset
fieldset(string $title, Closure $setCallback)
Add a fieldset to form.
in
FormWidget at line 427
unbox()
No description
in
FormWidget at line 435
boxTools($tools)
No description
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.
in
FormWidget at line 528
string
title()
Get form title.
in
FormWidget at line 533
array
fetchSkeleton()
No description
in
FormWidget at line 581
protected
initFormAttributes()
Initialize the form attributes.
in
FormWidget at line 598
protected array
getVariables()
Get variables for render form.
in
FormWidget at line 622
protected MessageBag
mergeValidationMessages(Validator[] $validators)
Merge validation messages from input validators.
in
FormWidget at line 74
Code
code(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Text
text(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Button
button(mixed $label)
No description
in
FormWidget at line 74
Link
link(mixed $label)
No description
in
FormWidget at line 74
Password
password(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Checkbox
checkbox(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Radio
radio(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Select
select(mixed $name, mixed $label)
No description
in
FormWidget at line 74
MultipleSelect
multipleSelect(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Textarea
textarea(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Hidden
hidden(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Id
id(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Ip
ip(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Url
url(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Color
color(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Email
email(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Mobile
mobile(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Slider
slider(mixed $name, mixed $label)
No description
in
FormWidget at line 74
File
file(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Image
image(mixed $name, mixed $label)
No description
in
FormWidget at line 74
MultiImage
multiImage(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Date
date(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Datetime
datetime(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Time
time(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Year
year(mixed $column, mixed $label)
No description
in
FormWidget at line 74
Month
month(mixed $column, mixed $label)
No description
in
FormWidget at line 74
DateRange
dateRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 74
DateTimeRange
dateTimeRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 74
TimeRange
timeRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 74
Number
number(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Currency
currency(mixed $name, mixed $label)
No description
in
FormWidget at line 74
SwitchField
switch() $$name, $label)
No description
in
FormWidget at line 74
Display
display(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Rate
rate(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Divider
divider(mixed $title)
No description
in
FormWidget at line 74
Editor
editor(mixed $name, mixed $label)
No description
in
FormWidget at line 74
Decimal
decimal(mixed $column, mixed $label)
No description
in
FormWidget at line 74
Html
html(mixed $html, mixed $arguments)
No description
in
FormWidget at line 74
Tags
tags(mixed $column, mixed $label)
No description
in
FormWidget at line 74
Icon
icon(mixed $column, mixed $label)
No description
in
FormWidget at line 74
Captcha
captcha(mixed $column, mixed $label)
No description
in
FormWidget at line 74
Listbox
listbox(mixed $column, mixed $label)
No description
in
FormWidget at line 74
Table
table(mixed $column, mixed $label, mixed $builder)
No description
in
FormWidget at line 74
Timezone
timezone(mixed $column, mixed $label)
No description
in
FormWidget at line 74
KeyValue
keyValue(mixed $column, mixed $label)
No description
in
FormWidget at line 74
Keyword
keyWord(mixed $column, mixed $label)
No description
in
FormWidget at line 74
Hook
hook(mixed $column, mixed $label)
No description
in
FormWidget at line 74
ListField
list(mixed $column, mixed $label)
No description
at line 41
mixed
handle()
No description
at line 27
FormPamEnable
setId($id)
No description
at line 71
form()
Build a form here.