diff -r 000000000000 -r 4eba9c11703f web/Zend/Form/Decorator/DtDdWrapper.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/Zend/Form/Decorator/DtDdWrapper.php Mon Dec 13 18:29:26 2010 +0100
@@ -0,0 +1,70 @@
+ 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-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ * @version $Id: DtDdWrapper.php 22128 2010-05-06 11:18:02Z alab $
+ */
+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 . '';
+ }
+}