$fieldsets
$fieldsets : array
Field fieldsets
ACL Form class
$parent : \Pop\Dom\AbstractNode
Parent node
$acl : \Pop\Acl\Acl
Acl object
createFromConfig(array|\Pop\Form\FormConfig $config, string $action = null, string $method = 'post') : \Pop\Form\Form
Method to create form object and fields from config
array|\Pop\Form\FormConfig | $config | |
string | $action | |
string | $method |
createFromFieldsetConfig(array|\Pop\Form\FormConfig $config, string $container = null, string $action = null, string $method = 'post') : \Pop\Form\Form
Method to create form object and fields from config
array|\Pop\Form\FormConfig | $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 |
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 |
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|\Pop\Form\FormConfig $config) : \Pop\Form\Form
Method to add form fields from config
array|\Pop\Form\FormConfig | $config |
addFieldsetsFromConfig(array|\Pop\Form\FormConfig $fieldsets, string $container = null) : \Pop\Form\Form
Method to add form fieldsets from config
array|\Pop\Form\FormConfig | $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 |
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
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 |
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 |
setAcl(\Pop\Acl\Acl $acl = null) : \Pop\Form\AclForm
Set the Acl object
\Pop\Acl\Acl | $acl |
setRole(\Pop\Acl\AclRole $role = null) : \Pop\Form\AclForm
Set a AclRole object (alias method)
\Pop\Acl\AclRole | $role |
addRole(\Pop\Acl\AclRole $role = null) : \Pop\Form\AclForm
Add a AclRole object
\Pop\Acl\AclRole | $role |
addRoles(array $roles) : \Pop\Form\AclForm
Add AclRole objects
array | $roles |
setAclStrict(boolean $strict) : \Pop\Form\AclForm
Set the Acl object as strict evaluation
boolean | $strict |
setPermissions(string $displayPermission, string $modifyPermission) : \Pop\Form\AclForm
Set the Acl field permissions
string | $displayPermission | |
string | $modifyPermission |