Perforce Chronicle 2012.2/486814
API Documentation

P4Cms_View_Helper_CustomDijit Class Reference

Derivative of dojo view helper that renders dijits. More...

List of all members.

Protected Member Functions

 _createLayoutContainer ($id, $content, array $params, array $attribs, $dijit=null)
 Create a layout container.

Detailed Description

Derivative of dojo view helper that renders dijits.

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_CustomDijit::_createLayoutContainer ( id,
content,
array $  params,
array $  attribs,
dijit = null 
) [protected]

Create a layout container.

Parameters:
int$idIdentifier of container
string$contentContent to display
array$paramsParameters for container
array$attribsHTML attributes to set
string | null$dijitOptional Dijit to use
Returns:
string
    {
        if (!array_key_exists('id', $attribs)) {
            $attribs['id'] = $id;
        }
        $attribs = $this->_prepareDijit($attribs, $params, 'layout', $dijit);

        $nodeType = $this->getRootNode();
        $html = '<' . $nodeType . $this->_htmlAttribs($attribs) . '>'
              . $content
              . "</$nodeType>\n";

        return $html;
    }

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