|
Perforce Chronicle 2012.2/486814
API Documentation
|
Derivative of dojo button view helper. More...
Public Member Functions | |
| button ($id, $value=null, array $params=array(), array $attribs=array()) | |
| Overrides parent method to use p4cms.ui.SlowButton dijit instead of standard form button dijit if 'preventMultiClick' attribute is set to true. | |
Derivative of dojo button view helper.
Allows to use SingleClickButton dijit if 'singleClick' attribute is set to true.
| P4Cms_View_Helper_Button::button | ( | $ | id, |
| $ | value = null, |
||
| array $ | params = array(), |
||
| array $ | attribs = array() |
||
| ) |
Overrides parent method to use p4cms.ui.SlowButton dijit instead of standard form button dijit if 'preventMultiClick' attribute is set to true.
| string | $id | Zend provides no documentation. |
| string | $value | Zend provides no documentation. |
| array | $params | Parameters to use for dijit creation. |
| array | $attribs | HTML attributes. |
{
// if singleClick attrib is set to true use SingleClickButton dijit
if (isset($attribs['singleClick']) && $attribs['singleClick']) {
$this->_dijit = 'p4cms.ui.SingleClickButton';
$this->_module = 'p4cms.ui.SingleClickButton';
unset($attribs['singleClick']);
}
return parent::button($id, $value, $params, $attribs);
}