$nodeName
$nodeName : string
Child element node name
Abstract form class
$template : \Pop\Form\Template\TemplateInterface
Form template
__construct(string $name, string $value = null, mixed $childNode = null, boolean $first = false, string $indent = null) : \Pop\Dom\Child
Constructor
Instantiate the form element object
string | $name | |
string | $value | |
mixed | $childNode | |
boolean | $first | |
string | $indent |
factory(array $c) : \Pop\Dom\Child
Static factory method to create a child object
array | $c |
setNodeName(string $name) : \Pop\Dom\Child
Set the child node name.
string | $name |
setNodeValue(string $value) : \Pop\Dom\Child
Set the child node value.
string | $value |
setAttribute(string $a, string $v) : \Pop\Dom\Child
Set an attribute for the child element object.
string | $a | |
string | $v |
setAttributes(array $a) : \Pop\Dom\Child
Set an attribute or attributes for the child element object.
array | $a |
removeAttribute(string $a) : \Pop\Dom\Child
Remove an attribute from the child element object
string | $a |
getChild(integer $i) : \Pop\Dom\Child
Get the child nodes of the object.
integer | $i |
setTemplate(string $template) : \Pop\Form\Form
Set a form template
string | $template |
setAction(string $action) : \Pop\Form\Form
Set the form action
string | $action |
setMethod(string $method) : \Pop\Form\Form
Set the form method
string | $method |
addFilter(mixed $call, mixed $params = null, mixed $excludeByType = null, mixed $excludeByName = null) : \Pop\Form\AbstractForm
Add filter
mixed | $call | |
mixed | $params | |
mixed | $excludeByType | |
mixed | $excludeByName |
addFilters(array $filters, mixed $excludeByType = null, mixed $excludeByName = null) : \Pop\Form\AbstractForm
Add filters
array | $filters | |
mixed | $excludeByType | |
mixed | $excludeByName |
clearFilters() : \Pop\Form\AbstractForm
Clear filters
getTemplate() : \Pop\Form\Template\TemplateInterface
Get the form template for the render method to utilize.
element(string $elementName) : \Pop\Form\Element\AbstractElement
Alias method to getElement()
string | $elementName |
getElement(string $elementName) : \Pop\Form\Element\AbstractElement
Get an element object of the form by name.
string | $elementName |
clear() : \Pop\Form\Form
Method to clear any session data used with the form for security tokens, captchas, etc.
setFieldValues(array $values = null) : \Pop\Form\AbstractForm
Set the field values. Optionally, you can apply filters to the passed values via callbacks and their parameters
array | $values |
filter() : \Pop\Form\AbstractForm
Filter of field values with the filters that have been set