Perforce Chronicle 2012.2/486814
API Documentation
|
Derivative of dojo view helper that renders dijits. More...
Protected Member Functions | |
_createLayoutContainer ($id, $content, array $params, array $attribs, $dijit=null) | |
Create a layout container. |
Derivative of dojo view helper that renders dijits.
P4Cms_View_Helper_CustomDijit::_createLayoutContainer | ( | $ | id, |
$ | content, | ||
array $ | params, | ||
array $ | attribs, | ||
$ | dijit = null |
||
) | [protected] |
Create a layout container.
int | $id | Identifier of container |
string | $content | Content to display |
array | $params | Parameters for container |
array | $attribs | HTML attributes to set |
string | null | $dijit | Optional Dijit to use |
{ 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; }