species/html-form
Composer 安装命令:
composer require species/html-form
包简介
HTML form building and handling.
README 文档
README
Install
composer require species/html-form
Contract
Node
Node
getName(): string
getShortName(): string
getParent(): ?ParentNode
setParent(?ParentNode $parent): void
clone(): Node
LeafNode
+ Node
ParentNode
+ Node, NodeCollection
NodeCollection
+IteratorAggregate<Node>
+ArrayAccess<Node>
+Countable<Node>
Value
StringValue
getValue(): string
getDefaultValue(): string
getError(): ?string;
submit(string $value, array $context = []): mixed
reset(?string $newDefaultValue = null): void
ArrayValue
getValues(): array
getDefaultValues(): array
getError(): ?string;
getErrors(): array
submit(array $values, array $context = []): mixed
reset(?array $newDefaultValues = null): void
Form
Form
+ ArrayValue
+submit(array $values, array $context = []): bool
fields: FieldSet
FieldSet
+ ParentNode, ArrayValue
FieldList
+ ParentNode, ArrayValue
getPrototype(): (cloned) Node
Fields
InputField
+ LeafNode, StringValue
TYPES: [
'text', 'search', 'hidden', 'password',
'email', 'tel', 'url', 'number', 'range', 'color',
'date', 'time', 'datetime-local', 'week', 'month',
]
getType(): string
TextareaField
+ LeafNode, StringValue
CheckboxField
+ LeafNode, StringValue
isChecked(): bool
RadioFields
+ ParentNode, StringValue
getOptions(): string[]
RadioField
+ LeafNode, StringValue
isChecked(): bool
SelectField
+ LeafNode, StringValue
getOptions(): string[]
SelectMultipleField
+ LeafNode, ArrayValue
getOptions(): string[]
SubmitField
+ LeafNode, StringValue
isClicked(): bool
TODO
UploadField
+ LeafNode, StringValue
UploadMultipleField
+ LeafNode, ArrayValue
统计信息
- 总下载量: 199
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-21