Perforce Chronicle 2012.2/486814
API Documentation

P4Cms_View_Helper_SubmitButton Class Reference

Derivative of dojo submitButton view helper. More...

List of all members.

Public Member Functions

 submitButton ($id, $value=null, array $params=array(), array $attribs=array())
 Overrides parent method to use p4cms.ui.SingleClickButton dijit by default.

Detailed Description

Derivative of dojo submitButton view helper.

Uses SingleClickButton dijit unless 'singleClick' attribute is set to false.

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_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.

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.
    {
        // 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);
    }

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