$nodeName
$nodeName : string
Child element node name
Form class
$parent : \Pop\Dom\AbstractNode
Parent node
create(string $name, string $value = null, array $options = array()) : \Pop\Dom\Child
Static factory method to create a child object
| string | $name | |
| string | $value | |
| array | $options |
parseString(string $string) : \Pop\Dom\Child|array
Static method to parse an XML/HTML string
| string | $string |
parseFile(string $file) : \Pop\Dom\Child
Static method to parse an XML/HTML string from a file
| string | $file |
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 |
addNodeValue(string $value) : \Pop\Dom\Child
Add to the child node value
| string | $value |
setAsCData(boolean $cData = true) : \Pop\Dom\Child
Set the child node value as CDATA
| boolean | $cData |
setAttribute(string $a, string $v) : \Pop\Form\Form
Method to set an attribute
| string | $a | |
| string | $v |
setAttributes(array $a) : \Pop\Form\Form
Method to set attributes
| array | $a |
removeAttribute(string $a) : \Pop\Dom\Child
Remove an attribute from the child element object
| string | $a |
setChildrenFirst(boolean $first = true) : \Pop\Dom\Child
Set whether child nodes render first, before the node value
| boolean | $first |
preserveWhiteSpace(boolean $preserve = true) : \Pop\Dom\Child
Set whether to preserve whitespace
| boolean | $preserve |
getParent() : \Pop\Dom\AbstractNode
Return the parent node
setParent(\Pop\Dom\AbstractNode $parent) : \Pop\Dom\AbstractNode
Set the parent node
| \Pop\Dom\AbstractNode | $parent |
getChild(integer $i) : \Pop\Dom\Child
Get the child nodes of the object
| integer | $i |
createFromConfig(array $config, string $action = null, string $method = 'post') : \Pop\Form\Form
Method to create form object and fields from config
| array | $config | |
| string | $action | |
| string | $method |
createFromFieldsetConfig(array $config, string $container = null, string $action = null, string $method = 'post') : \Pop\Form\Form
Method to create form object and fields from config
| array | $config | |
| string | $container | |
| string | $action | |
| string | $method |
createFieldset(string $legend = null, string $container = null) : \Pop\Form\Fieldset
Method to create a new fieldset object
| string | $legend | |
| string | $container |
setAction(string $action) : \Pop\Form\Form
Method to set action
| string | $action |
setMethod(string $method) : \Pop\Form\Form
Method to set method
| string | $method |
addFieldset(\Pop\Form\Fieldset $fieldset) : \Pop\Form\Form
Method to add fieldset
| \Pop\Form\Fieldset | $fieldset |
removeFieldset(integer $i) : \Pop\Form\Form
Method to remove fieldset
| integer | $i |
getFieldset() : \Pop\Form\Fieldset
Method to get current fieldset
addColumn(mixed $fieldsets, string $class = null) : \Pop\Form\Form
Method to add form column
| mixed | $fieldsets | |
| string | $class |
removeColumn(string $class) : \Pop\Form\Form
Method to remove form column
| string | $class |
setCurrent(integer $i) : \Pop\Form\Form
Method to get current fieldset index
| integer | $i |
setLegend(string $legend) : \Pop\Form\Form
Method to set the legend of the current fieldset
| string | $legend |
addField(\Pop\Form\Element\AbstractElement $field) : \Pop\Form\Form
Method to add a form field
| \Pop\Form\Element\AbstractElement | $field |
addFields(array $fields) : \Pop\Form\Form
Method to add form fields
| array | $fields |
addFieldFromConfig(string $name, array $field) : \Pop\Form\Form
Method to add a form field from a config
| string | $name | |
| array | $field |
addFieldsFromConfig(array $config) : \Pop\Form\Form
Method to add form fields from config
| array | $config |
addFieldsetsFromConfig(array $fieldsets, string $container = null) : \Pop\Form\Form
Method to add form fieldsets from config
| array | $fieldsets | |
| string | $container |
insertFieldBefore(string $name, \Pop\Form\Element\AbstractElement $field) : \Pop\Form\Form
Method to insert a field before another one
| string | $name | |
| \Pop\Form\Element\AbstractElement | $field |
insertFieldAfter(string $name, \Pop\Form\Element\AbstractElement $field) : \Pop\Form\Form
Method to insert a field after another one
| string | $name | |
| \Pop\Form\Element\AbstractElement | $field |
getField(string $name) : \Pop\Form\Element\AbstractElement
Method to get a field element object
| string | $name |
removeField(string $field) : \Pop\Form\Form
Method to remove a form field
| string | $field |
setFieldValue(string $name, mixed $value) : \Pop\Form\Form
Method to set a field element value
| string | $name | |
| mixed | $value |
setFieldValues(array $values) : \Pop\Form\Form
Method to set field element values
| array | $values |
addFilter(mixed $call, mixed $params = null, mixed $excludeByType = null, mixed $excludeByName = null) : \Pop\Form\Form
Add filter
| mixed | $call | |
| mixed | $params | |
| mixed | $excludeByType | |
| mixed | $excludeByName |
clearFilters() : \Pop\Form\Form
Clear filters
reset() : \Pop\Form\Form
Method to reset and clear any form field values
clearTokens() : \Pop\Form\Form
Method to clear any security tokens
prepare() : \Pop\Form\Form
Prepare form object for rendering