item, and wraps the content in a
. Used as a
* default decorator for subforms and display groups.
*
* @category Zend
* @package Zend_Form
* @subpackage Decorator
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
class Zend_Form_Decorator_DtDdWrapper extends Zend_Form_Decorator_Abstract
{
/**
* Default placement: surround content
* @var string
*/
protected $_placement = null;
/**
* Render
*
* Renders as the following:
* $dtLabel
* $content
*
* $dtLabel can be set via 'dtLabel' option, defaults to '\ '
*
* @param string $content
* @return string
*/
public function render($content)
{
$elementName = $this->getElement()->getName();
$dtLabel = $this->getOption('dtLabel');
if( null === $dtLabel ) {
$dtLabel = ' ';
}
return '' . $dtLabel . '' .
'' . $content . '';
}
}