class FormRuleDateEstablish extends FormWidget

Traits

Properties

protected string $title 表单标题 from  FormWidget
protected Collection $items 表单内的表单条目集合 from  FormWidget
protected array $model 模型数据 from  FormWidget
protected Fluent $attrs 表单属性 from  FormWidget
protected array $buttons 可用的按钮 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

bool
queryHas(string $type)

检测查询类型是否存在

string
queryAfter(string $type)

检测查询类型是否存在

__construct()

Form constructor.

form()

No description

handle()

No description

array
data()

No description

labelWidth(string $width)

表单域标签的宽度,例如 '50px'。 作为 Form 直接子元素的 form-item 会继承该值。 支持 auto

disableReset()

Disable reset button.

disableSubmit()

Disable submit button.

inline()

行内表单模式, 取消自动宽度, 进行宽度自适应

disabled(bool $value)

是否禁用该表单内的所有组件。 若设置为 true,则表单内组件上的 disabled 属性不再生效

addItem(FormItem $item)

向服务器添加字段

Collection
items($type = '')

获取表单的所有字段

FormItem|$this
__call(string $method, array $arguments = [])

Generate items and append to form list

title(string $value)

设置表单的标题

JsonResponse|RedirectResponse|Resp|Response
resp()

返回表单的结构 规则解析参考 : https://github.com/yiminghe/async-validator

object|string
param($param)

获取路由参数

array
queryStruct()

查询结构

object
queryData()

查询数据

bool|MessageBag
validate(Request $request)

Validate this form fields.

text(mixed $name, mixed $label)

No description

textarea(mixed $name, mixed $label)

No description

Url
url(mixed $name, mixed $label)

No description

password(mixed $name, mixed $label)

No description

mobile(mixed $name, mixed $label)

No description

Ip
ip(mixed $name, mixed $label)

No description

decimal(mixed $name, mixed $label)

No description

currency(mixed $name, mixed $label)

No description

email(mixed $name, mixed $label)

No description

number(mixed $name, mixed $label)

No description

radio(mixed $name, mixed $label)

No description

checkbox(mixed $name, mixed $label)

No description

select(mixed $name, mixed $label)

No description

multiSelect(mixed $name, mixed $label)

No description

tags(mixed $name, mixed $label)

No description

color(mixed $name, mixed $label)

No description

year(mixed $name, mixed $label)

No description

month(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

dateRange(mixed $name, mixed $label)

No description

monthRange(mixed $name, mixed $label)

No description

datetimeRange(mixed $name, mixed $label)

No description

timeRange(mixed $name, mixed $label)

No description

onOff(mixed $name, mixed $label)

No description

image(mixed $name, mixed $label)

No description

file(mixed $name, mixed $label)

No description

multiImage(mixed $name, mixed $label)

No description

multiFile(mixed $name, mixed $label)

No description

editor(mixed $name, mixed $label)

No description

divider(mixed $label)

No description

code(mixed $name, mixed $label)

No description

actions(mixed $name, mixed $label)

No description

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 UseWidgetUtil at line 15
protected bool queryHas(string $type)

检测查询类型是否存在

Parameters

string $type 查询类型

Return Value

bool

in UseWidgetUtil at line 29
protected string queryAfter(string $type)

检测查询类型是否存在

Parameters

string $type 查询类型

Return Value

string

in FormWidget at line 135
__construct()

Form constructor.

at line 94
form()

No description

at line 38
handle()

No description

at line 54
array data()

No description

Return Value

array

in FormWidget at line 157
labelWidth(string $width)

表单域标签的宽度,例如 '50px'。 作为 Form 直接子元素的 form-item 会继承该值。 支持 auto

Parameters

string $width

in FormWidget at line 166
FormWidget disableReset()

Disable reset button.

Return Value

FormWidget

in FormWidget at line 177
FormWidget disableSubmit()

Disable submit button.

Return Value

FormWidget

in FormWidget at line 188
FormWidget inline()

行内表单模式, 取消自动宽度, 进行宽度自适应

Return Value

FormWidget

in FormWidget at line 201
FormWidget disabled(bool $value)

是否禁用该表单内的所有组件。 若设置为 true,则表单内组件上的 disabled 属性不再生效

Parameters

bool $value

Return Value

FormWidget

in FormWidget at line 212
FormWidget addItem(FormItem $item)

向服务器添加字段

Parameters

FormItem $item

Return Value

FormWidget

in FormWidget at line 222
Collection items($type = '')

获取表单的所有字段

Parameters

$type

Return Value

Collection

in FormWidget at line 240
FormItem|$this __call(string $method, array $arguments = [])

Generate items and append to form list

Parameters

string $method 类型
array $arguments 传入的参数

Return Value

FormItem|$this

Exceptions

ApplicationException

in FormWidget at line 258
FormWidget title(string $value)

设置表单的标题

Parameters

string $value

Return Value

FormWidget

in FormWidget at line 269
JsonResponse|RedirectResponse|Resp|Response resp()

返回表单的结构 规则解析参考 : https://github.com/yiminghe/async-validator

Return Value

JsonResponse|RedirectResponse|Resp|Response

in FormWidget at line 300
object|string param($param)

获取路由参数

Parameters

$param

Return Value

object|string

in FormWidget at line 309
array queryStruct()

查询结构

Return Value

array

in FormWidget at line 328
object queryData()

查询数据

Return Value

object

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

Validate this form fields.

Parameters

Request $request

Return Value

bool|MessageBag

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

No description

Parameters

mixed $name
mixed $label

Return Value

Text

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

No description

Parameters

mixed $name
mixed $label

Return Value

Textarea

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

No description

Parameters

mixed $name
mixed $label

Return Value

Url

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

No description

Parameters

mixed $name
mixed $label

Return Value

Password

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

No description

Parameters

mixed $name
mixed $label

Return Value

Mobile

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

No description

Parameters

mixed $name
mixed $label

Return Value

Ip

in FormWidget at line 96
Decimal decimal(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Decimal

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

No description

Parameters

mixed $name
mixed $label

Return Value

Currency

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

No description

Parameters

mixed $name
mixed $label

Return Value

Email

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

No description

Parameters

mixed $name
mixed $label

Return Value

Number

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

No description

Parameters

mixed $name
mixed $label

Return Value

Radio

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

No description

Parameters

mixed $name
mixed $label

Return Value

Checkbox

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

No description

Parameters

mixed $name
mixed $label

Return Value

Select

in FormWidget at line 96
MultiSelect multiSelect(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

MultiSelect

in FormWidget at line 96
Tags tags(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Tags

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

No description

Parameters

mixed $name
mixed $label

Return Value

Color

in FormWidget at line 96
Year year(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Year

in FormWidget at line 96
Month month(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Month

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

No description

Parameters

mixed $name
mixed $label

Return Value

Date

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

No description

Parameters

mixed $name
mixed $label

Return Value

Datetime

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

No description

Parameters

mixed $name
mixed $label

Return Value

Time

in FormWidget at line 96
DateRange dateRange(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

DateRange

in FormWidget at line 96
MonthRange monthRange(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

MonthRange

in FormWidget at line 96
DatetimeRange datetimeRange(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

DatetimeRange

in FormWidget at line 96
TimeRange timeRange(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

TimeRange

in FormWidget at line 96
OnOff onOff(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

OnOff

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

No description

Parameters

mixed $name
mixed $label

Return Value

Image

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

No description

Parameters

mixed $name
mixed $label

Return Value

File

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

No description

Parameters

mixed $name
mixed $label

Return Value

MultiImage

in FormWidget at line 96
MultiFile multiFile(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

MultiFile

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

No description

Parameters

mixed $name
mixed $label

Return Value

Editor

in FormWidget at line 96
Divider divider(mixed $label)

No description

Parameters

mixed $label

Return Value

Divider

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

No description

Parameters

mixed $name
mixed $label

Return Value

Code

in FormWidget at line 96
Actions actions(mixed $name, mixed $label)

No description

Parameters

mixed $name
mixed $label

Return Value

Actions

at line 24
FormRuleDateEstablish setId($id)

设置id

Parameters

$id

Return Value

FormRuleDateEstablish