Perforce Chronicle 2012.2/486814
API Documentation

P4Cms_Form_Decorator_DtDdWrapper Class Reference

Extends Zend_Form_Decorator_DtDdWrapper to eliminate the tag (it is really just a wrapper now). More...

List of all members.

Public Member Functions

 render ($content)
 Extend render to eliminate spurious dt tag.

Detailed Description

Extends Zend_Form_Decorator_DtDdWrapper to eliminate the

tag (it is really just a wrapper now).

Also, identifies sub-forms and display groups with a 'fieldset' css class so that they can be styled separately.

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_Form_Decorator_DtDdWrapper::render ( content)

Extend render to eliminate spurious dt tag.

Parameters:
string$contentthe content to render.
Returns:
string
    {
        $elementName = $this->getElement()->getName();
        $isFieldset  = ($this->getElement() instanceof Zend_Form_DisplayGroup ||
                        $this->getElement() instanceof Zend_Form_SubForm);

        $html  = '<dd id="' . $elementName . '-element" ';
        $html .= ($isFieldset) ? ' class="display-group" ' : '';
        $html .= '>' . $content . '</dd>';

        return $html;
    }

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