species/html-form 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固