FormImageHelper
class FormImageHelper extends FormWidget
Traits
Properties
bool | $inbox | from FormWidget | |
bool | $ajax | from FormWidget | |
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
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.
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 157
__construct(array $data = [])
Form constructor.
in
FormWidget at line 167
array
data()
No description
in
FormWidget at line 179
$this
fill(array $data = [])
Fill data to form fields.
in
FormWidget at line 195
$this
sanitize()
No description
in
FormWidget at line 212
FormWidget
attribute(string|array $attr, string $value = '')
Add form attributes.
in
FormWidget at line 233
string
formatAttribute(array $attributes = [])
Format form attributes form array to html.
in
FormWidget at line 256
$this
action(string $action)
Action uri of the form.
in
FormWidget at line 266
method(string $method = 'POST')
Method of the form.
in
FormWidget at line 282
$this
disablePjax()
Disable Pjax.
in
FormWidget at line 294
$this
disableReset()
Disable reset button.
in
FormWidget at line 306
$this
disableSubmit()
Disable submit button.
in
FormWidget at line 321
$this
setWidth(int $fieldWidth = 8, int $labelWidth = 2)
Set field and label width in current form.
in
FormWidget at line 344
bool
hasField(string $name)
Determine if the form has field type.
in
FormWidget at line 356
$this
pushField(Field $field)
Add a form field to form.
in
FormWidget at line 368
Field[]
fields()
Get all fields of form.
in
FormWidget at line 378
bool
hasFile()
Determine if form fields has files.
in
FormWidget at line 396
bool|MessageBag
validate(Request $request)
Validate this form fields.
in
FormWidget at line 422
Fieldset
fieldset(string $title, Closure $setCallback)
Add a fieldset to form.
in
FormWidget at line 435
unbox()
No description
in
FormWidget at line 443
boxTools($tools)
No description
in
FormWidget at line 449
plainSkeleton()
No description
in
FormWidget at line 457
render()
Render the form.
in
FormWidget at line 515
Field|$this
__call(string $method, array $arguments)
Generate a Field object and add to form builder if Field exists.
in
FormWidget at line 536
string
title()
Get form title.
in
FormWidget at line 541
array
fetchSkeleton()
No description
in
FormWidget at line 589
protected
initFormAttributes()
Initialize the form attributes.
in
FormWidget at line 606
protected array
getVariables()
Get variables for render form.
in
FormWidget at line 630
protected MessageBag
mergeValidationMessages(Validator[] $validators)
Merge validation messages from input validators.
in
FormWidget at line 82
Code
code(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Text
text(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Button
button(mixed $label)
No description
in
FormWidget at line 82
Link
link(mixed $label)
No description
in
FormWidget at line 82
Password
password(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Checkbox
checkbox(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Radio
radio(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Select
select(mixed $name, mixed $label)
No description
in
FormWidget at line 82
MultipleSelect
multipleSelect(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Textarea
textarea(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Hidden
hidden(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Id
id(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Ip
ip(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Url
url(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Color
color(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Email
email(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Mobile
mobile(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Slider
slider(mixed $name, mixed $label)
No description
in
FormWidget at line 82
File
file(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Image
image(mixed $name, mixed $label)
No description
in
FormWidget at line 82
MultiImage
multiImage(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Date
date(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Datetime
datetime(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Time
time(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Year
year(mixed $column, mixed $label)
No description
in
FormWidget at line 82
Month
month(mixed $column, mixed $label)
No description
in
FormWidget at line 82
DateRange
dateRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 82
DateTimeRange
dateTimeRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 82
TimeRange
timeRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 82
Number
number(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Currency
currency(mixed $name, mixed $label)
No description
in
FormWidget at line 82
SwitchField
switch() $$name, $label)
No description
in
FormWidget at line 82
Display
display(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Rate
rate(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Divider
divider(mixed $title)
No description
in
FormWidget at line 82
Editor
editor(mixed $name, mixed $label)
No description
in
FormWidget at line 82
Decimal
decimal(mixed $column, mixed $label)
No description
in
FormWidget at line 82
Html
html(mixed $html, mixed $arguments)
No description
in
FormWidget at line 82
Tags
tags(mixed $column, mixed $label)
No description
in
FormWidget at line 82
Icon
icon(mixed $column, mixed $label)
No description
in
FormWidget at line 82
Captcha
captcha(mixed $column, mixed $label)
No description
in
FormWidget at line 82
Listbox
listbox(mixed $column, mixed $label)
No description
in
FormWidget at line 82
Table
table(mixed $column, mixed $label, mixed $builder)
No description
in
FormWidget at line 82
Timezone
timezone(mixed $column, mixed $label)
No description
in
FormWidget at line 82
KeyValue
keyValue(mixed $column, mixed $label)
No description
in
FormWidget at line 82
Keyword
keyWord(mixed $column, mixed $label)
No description
in
FormWidget at line 82
Hook
hook(mixed $column, mixed $label)
No description
in
FormWidget at line 82
ListField
list(mixed $column, mixed $label)
No description
in
FormWidget at line 82
mixed
handle(Request $request)
No description
at line 22
form()
Build a form here.