Perforce Chronicle 2012.2/486814
API Documentation

P4Cms_View_Helper_Button Class Reference

Derivative of dojo button view helper. More...

List of all members.

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.

Detailed Description

Derivative of dojo button view helper.

Allows to use SingleClickButton dijit if 'singleClick' attribute is set to true.

Copyright:
2011-2012 Perforce Software. All rights reserved
License:
Please see LICENSE.txt in top-level folder of this distribution.
Version:
2012.2/486814

Member Function Documentation

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.

Parameters:
string$idZend provides no documentation.
string$valueZend provides no documentation.
array$paramsParameters to use for dijit creation.
array$attribsHTML attributes.
Returns:
string Zend provides no documentation.
    {
        // 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);
    }

The documentation for this class was generated from the following file: