Perforce Chronicle 2012.2/486814
API Documentation
|
This is a generic grid options form. More...
Public Member Functions | |
init () | |
Initialize grid options form. | |
setOptions (array $options) | |
Set topic and gridId from options 'namespace' param. |
This is a generic grid options form.
Ui_Form_GridOptions::init | ( | ) |
Initialize grid options form.
Reimplemented from P4Cms_Form_PubSubForm.
{ // set class to identify as p4cms-ui component $this->setAttrib('class', 'p4cms-ui') ->setAttrib('dojoType', 'p4cms.ui.grid.Form'); // turn off CSRF protection - its not useful here (form data are // used for filtering the data grid and may be exposed in the URL) $this->setCsrfProtection(false); // call parent to publish the form. parent::init(); }
Ui_Form_GridOptions::setOptions | ( | array $ | options | ) |
Set topic and gridId from options 'namespace' param.
array | $options | Zend provides no description for this parameter. |
{ // set topic and gridId if namespace is defined if (isset($options['namespace'])) { $this->setTopic($options['namespace'] . '.form'); $this->setAttrib('gridId', $options['namespace'] . '.instance'); unset($options['namespace']); } parent::setOptions($options); }