Perforce Chronicle 2012.2/486814
API Documentation

P4Cms_Form_Decorator_HtmlTag Class Reference

Extends Zend_Form_Decorator_HtmlTag to exclude tagging of hidden form elements. More...

List of all members.

Public Member Functions

 render ($content)
 Extend render to exclude hidden and hash elements.

Detailed Description

Extends Zend_Form_Decorator_HtmlTag to exclude tagging of hidden form elements.

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

Extend render to exclude hidden and hash elements.

Parameters:
string$contentThe content to render.
Returns:
string
    {
        if ($this->getElement() instanceof Zend_Form_Element_Hidden
            || $this->getElement() instanceof Zend_Form_Element_Hash
        ) {
            return $content;
        }
        return parent::render($content);
    }

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