Image
class Image extends File
Properties
protected mixed | $default | 默认的数据 | from FormItem |
protected array | $rules | 规则 | from FormItem |
protected bool | $toModel | 是否将此KEY, 加入提交模型 |
from FormItem |
protected string | $label | from FormItem |
Methods
__construct(string $name, string $label)
表单条目
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
from
FormItem
Details
at line 7
__construct(string $name, string $label)
表单条目
in
FormItem at line 135
string
getName()
获取字段名字
in
FormItem at line 147
false|Application|Factory|Validator
getValidator(array $input)
Get validator for this field.
in
FormItem at line 169
struct()
返回当前表单字段的结构
in
FormItem at line 199
mixed
getDefault()
默认数据值
in
FormItem at line 208
bool
getToModel()
此条件是否加入到模型
in
FormItem at line 217
protected array
getRules()
校验规则
in
FormItem at line 227
protected mixed
getAttribute($attr)
获取属性
in
FormItem at line 236
protected object
attributes()
获取属性列表