Table
class Table extends FormItem
Traits
字段属性
Properties
protected Fluent | $fieldAttr | 字段的属性 | from UseFieldAttr |
protected mixed | $default | 默认的数据 | from FormItem |
array read-only | $rules | 规则 | from FormItem |
protected bool | $toModel | 是否将此KEY, 加入提交模型 |
from FormItem |
string read-only | $label | 标签 | from FormItem |
string read-only | $name | Name | from FormItem |
protected | $table |
Methods
__construct(string $name, string $label)
表单条目
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
from
FormItem
getTable()
获取定义的表格, 用来数据重新回写格式化
Details
in
UseFieldAttr at line 20
protected
fieldAttrInit()
No description
in
UseFieldAttr at line 29
protected object
fieldAttr()
获取属性列表
in
UseFieldAttr at line 40
UseFieldAttr
setAttribute($attr, $value)
字段属性
in
UseFieldAttr at line 51
mixed
getAttribute($attr)
获取属性
at line 13
__construct(string $name, string $label)
表单条目
in
FormItem at line 121
string
__get($attr)
获取字段属性
in
FormItem at line 133
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
in
FormItem at line 155
struct()
返回当前表单字段的结构
in
FormItem at line 185
mixed
getDefault()
默认数据值
in
FormItem at line 194
bool
getToModel()
此条件是否加入到模型
in
FormItem at line 203
protected object
attributes()
获取属性列表
at line 19
cols(Closure $closure)
No description
at line 29
TablePlugin
getTable()
获取定义的表格, 用来数据重新回写格式化
at line 41
Table
easy(array $data)
deprecated
deprecated
不起作用, 使用 ezTable