FormSettingAvatar
class FormSettingAvatar extends FormSettingBase
默认头像配置 Class FormSettingAvatar
Traits
Key 解析器 解析 key 字串到 namespace, group 和 item.
Pam Trait Pam 的验证, 设置, 获取
Properties
bool | $inbox | 是否 Inbox |
from FormSettingBase |
bool | $ajax | 是否设置用户 | from FormSettingBase |
$title | |||
protected bool | $withContent | 是否包含框架内容 | from FormSettingBase |
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 |
protected array | $keyParserCache | 解析的缓存存储 这里的命名方式, 因为是在 trait 中使用 所以这里的缓存的命名前面加上了 trait 的前缀 keyParser |
from KeyParserTrait |
protected | $pam | from PamTrait | |
protected PamAccount | $user | from FormSettingBase | |
protected | $group |
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 156
__construct(array $data = [])
Form constructor.
in
FormSettingBase at line 83
array
data()
No description
in
FormWidget at line 178
$this
fill(array $data = [])
Fill data to form fields.
in
FormWidget at line 194
$this
sanitize()
No description
in
FormWidget at line 211
FormWidget
attribute(string|array $attr, string $value = '')
Add form attributes.
in
FormWidget at line 232
string
formatAttribute(array $attributes = [])
Format form attributes form array to html.
in
FormWidget at line 255
$this
action(string $action)
Action uri of the form.
in
FormWidget at line 265
method(string $method = 'POST')
Method of the form.
in
FormWidget at line 281
$this
disablePjax()
Disable Pjax.
in
FormWidget at line 293
$this
disableReset()
Disable reset button.
in
FormWidget at line 305
$this
disableSubmit()
Disable submit button.
in
FormWidget at line 320
$this
setWidth(int $fieldWidth = 8, int $labelWidth = 2)
Set field and label width in current form.
in
FormWidget at line 343
bool
hasField(string $name)
Determine if the form has field type.
in
FormWidget at line 355
$this
pushField(Field $field)
Add a form field to form.
in
FormWidget at line 367
Field[]
fields()
Get all fields of form.
in
FormWidget at line 377
bool
hasFile()
Determine if form fields has files.
in
FormWidget at line 395
bool|MessageBag
validate(Request $request)
Validate this form fields.
in
FormWidget at line 421
Fieldset
fieldset(string $title, Closure $setCallback)
Add a fieldset to form.
in
FormWidget at line 434
unbox()
No description
in
FormWidget at line 442
boxTools($tools)
No description
in
FormWidget at line 448
plainSkeleton()
No description
in
FormWidget at line 456
render()
Render the form.
in
FormWidget at line 514
Field|$this
__call(string $method, array $arguments)
Generate a Field object and add to form builder if Field exists.
in
FormWidget at line 535
string
title()
Get form title.
in
FormWidget at line 540
array
fetchSkeleton()
No description
in
FormWidget at line 588
protected
initFormAttributes()
Initialize the form attributes.
in
FormWidget at line 605
protected array
getVariables()
Get variables for render form.
in
FormWidget at line 629
protected MessageBag
mergeValidationMessages(Validator[] $validators)
Merge validation messages from input validators.
in
FormWidget at line 81
Code
code(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Text
text(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Button
button(mixed $label)
No description
in
FormWidget at line 81
Link
link(mixed $label)
No description
in
FormWidget at line 81
Password
password(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Checkbox
checkbox(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Radio
radio(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Select
select(mixed $name, mixed $label)
No description
in
FormWidget at line 81
MultipleSelect
multipleSelect(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Textarea
textarea(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Hidden
hidden(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Id
id(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Ip
ip(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Url
url(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Color
color(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Email
email(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Mobile
mobile(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Slider
slider(mixed $name, mixed $label)
No description
in
FormWidget at line 81
File
file(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Image
image(mixed $name, mixed $label)
No description
in
FormWidget at line 81
MultiImage
multiImage(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Date
date(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Datetime
datetime(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Time
time(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Year
year(mixed $column, mixed $label)
No description
in
FormWidget at line 81
Month
month(mixed $column, mixed $label)
No description
in
FormWidget at line 81
DateRange
dateRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 81
DateTimeRange
dateTimeRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 81
TimeRange
timeRange(mixed $start, mixed $end, mixed $label)
No description
in
FormWidget at line 81
Number
number(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Currency
currency(mixed $name, mixed $label)
No description
in
FormWidget at line 81
SwitchField
switch() $$name, $label)
No description
in
FormWidget at line 81
Display
display(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Rate
rate(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Divider
divider(mixed $title)
No description
in
FormWidget at line 81
Editor
editor(mixed $name, mixed $label)
No description
in
FormWidget at line 81
Decimal
decimal(mixed $column, mixed $label)
No description
in
FormWidget at line 81
Html
html(mixed $html, mixed $arguments)
No description
in
FormWidget at line 81
Tags
tags(mixed $column, mixed $label)
No description
in
FormWidget at line 81
Icon
icon(mixed $column, mixed $label)
No description
in
FormWidget at line 81
Listbox
listbox(mixed $column, mixed $label)
No description
in
FormWidget at line 81
Table
table(mixed $column, mixed $label, mixed $builder)
No description
in
FormWidget at line 81
Timezone
timezone(mixed $column, mixed $label)
No description
in
FormWidget at line 81
KeyValue
keyValue(mixed $column, mixed $label)
No description
in
FormWidget at line 81
Keyword
keyWord(mixed $column, mixed $label)
No description
in
FormWidget at line 81
Hook
hook(mixed $column, mixed $label)
No description
in
FormWidget at line 81
ListField
list(mixed $column, mixed $label)
No description
in
FormSettingBase at line 61
mixed
handle(Request $request)
No description
in
KeyParserTrait at line 25
setParsedKey(string $key, array $parsed)
根据 key 设置值
in
KeyParserTrait at line 35
bool
keyParserMatch(string $key)
Check Key valid
in
KeyParserTrait at line 49
array
parseKey(string $key)
解析 key 至 namespace, group, and item.
in
KeyParserTrait at line 78
protected array
keyParserParseBasicSegments(array $segments)
解析数值中的基本片段并且返回可用的数组
in
KeyParserTrait at line 100
protected array
keyParserParseSegments(string $key)
解析一系列命名空间的片段
in
PamTrait at line 23
PamAccount
getPam()
No description
in
PamTrait at line 34
$this|PamTrait
setPam(PamAccount|Authenticatable|int $pam)
Set Pam Account.
in
PamTrait at line 50
bool
checkPam()
检查 pam 用户
in
PamTrait at line 64
bool
checkPermission(string $permission_key)
检测当前用户是否存在权限
in
FormSettingBase at line 99
string
getGroup()
No description
at line 23
form()
Build a form here.