Perforce Chronicle 2012.2/486814
API Documentation

P4Cms_View_Helper_Form Class Reference

Derivative of dojo form view helper. More...

List of all members.

Protected Member Functions

 _prepareDijit (array $attribs, array $params, $type, $dijit=null)
 Take dijit (dojoType) from attribs if specified and dijit arg is null.

Protected Attributes

 $_dijit = 'p4cms.ui.Form'
 $_module = 'p4cms.ui.Form'

Detailed Description

Derivative of dojo form view helper.

Makes it possible to change the form dojo type by setting dojoType in attribs.

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_Form::_prepareDijit ( array $  attribs,
array $  params,
type,
dijit = null 
) [protected]

Take dijit (dojoType) from attribs if specified and dijit arg is null.

Parameters:
array$attribsArray of HTML attributes
array$paramsParameters to pass along to parent
string$typeType to pass along to parent
string$dijitDijit type to use (otherwise, pull from attribs, then $_dijit)
Returns:
array
    {
        if ($dijit === null && isset($attribs['dojoType'])) {
            $dijit = $attribs['dojoType'];
        }

        return parent::_prepareDijit($attribs, $params, $type, $dijit);
    }

Member Data Documentation

P4Cms_View_Helper_Form::$_dijit = 'p4cms.ui.Form' [protected]
P4Cms_View_Helper_Form::$_module = 'p4cms.ui.Form' [protected]

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