2017 © Pedro Peláez
 

library html-form

HTML form building and handling.

image

species/html-form

HTML form building and handling.

  • Thursday, February 22, 2018
  • by SpacefulSpecies
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Html Form

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

The Versions

22/02 2018

dev-master

9999999-dev

HTML form building and handling.

  Sources   Download

The Requires

 

22/02 2018

0.1.1

0.1.1.0

HTML form building and handling.

  Sources   Download

The Requires

 

21/02 2018

0.1.0

0.1.0.0

HTML form building and handling.

  Sources   Download

The Requires

 

21/02 2018

0.0.7

0.0.7.0

HTML form building and handling.

  Sources   Download

The Requires

 

21/02 2018

0.0.6

0.0.6.0

HTML form building and handling.

  Sources   Download

The Requires

 

21/02 2018

0.0.5

0.0.5.0

HTML form building and handling.

  Sources   Download

The Requires

 

21/02 2018

0.0.4

0.0.4.0

HTML form building and handling.

  Sources   Download

The Requires

 

21/02 2018

0.0.3

0.0.3.0

HTML form building and handling.

  Sources   Download

The Requires

 

21/02 2018

0.0.2

0.0.2.0

HTML form building and handling.

  Sources   Download

The Requires

 

21/02 2018

0.0.1

0.0.1.0

HTML form building and handling.

  Sources   Download

The Requires