Perforce Chronicle 2012.2/486814
API Documentation
|
Derivative of dojo submitButton view helper. More...
Public Member Functions | |
submitButton ($id, $value=null, array $params=array(), array $attribs=array()) | |
Overrides parent method to use p4cms.ui.SingleClickButton dijit by default. |
Derivative of dojo submitButton view helper.
Uses SingleClickButton dijit unless 'singleClick' attribute is set to false.
P4Cms_View_Helper_SubmitButton::submitButton | ( | $ | id, |
$ | value = null , |
||
array $ | params = array() , |
||
array $ | attribs = array() |
||
) |
Overrides parent method to use p4cms.ui.SingleClickButton dijit by default.
To use default submitButton dijit, 'singleClick' attribute must be set to false.
string | $id | Zend provides no documentation. |
string | $value | Zend provides no documentation. |
array | $params | Parameters to use for dijit creation. |
array | $attribs | HTML attributes. |
{ // use SingleClickButton dijit as long as singleClick attrib is not set or is set to true if (!isset($attribs['singleClick']) || $attribs['singleClick']) { $this->_dijit = 'p4cms.ui.SingleClickButton'; $this->_module = 'p4cms.ui.SingleClickButton'; unset($attribs['singleClick']); } return parent::submitButton($id, $value, $params, $attribs); }