__construct()
__construct(mixed|array $options = array())
Create a new form
Parameters
mixed|array | $options | basic Zend_Form options |
Base form
addElement(string|\Zend_Form_Element $element, string $name = null, array|\Zend_Config $options = null) : \Zend_Form
Add a new element
Basic elements are:
More classes see in CommonPanel\Form\Element and Zend\Form\Element
string|\Zend_Form_Element | $element | |
string | $name | |
array|\Zend_Config | $options |
addControlButtons(array $params = null)
Add control buttons: Ok and Cancel
[
'sendTitle' => string,
'sendHidden' => bool,
'cancelTitle' => string,
'cancelLink' => string,
'cancelHidden' => bool,
'withSeparator' => bool,
'hideLegend' => bool,
'presubmitHandler' => string,
]
array | $params |