web/lib/Zend/Form/DisplayGroup.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
--- a/web/lib/Zend/Form/DisplayGroup.php	Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/DisplayGroup.php	Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
  *
  * @category   Zend
  * @package    Zend_Form
- * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
  */
 
@@ -23,9 +23,9 @@
  *
  * @category   Zend
  * @package    Zend_Form
- * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
- * @version    $Id: DisplayGroup.php 22930 2010-09-09 18:45:18Z matthew $
+ * @version    $Id: DisplayGroup.php 25093 2012-11-07 20:08:05Z rob $
  */
 class Zend_Form_DisplayGroup implements Iterator,Countable
 {
@@ -67,7 +67,7 @@
 
     /**
      * Form object to which the display group is currently registered
-     * 
+     *
      * @var Zend_Form
      */
     protected $_form;
@@ -284,15 +284,15 @@
 
     /**
      * Set form object to which the display group is attached
-     * 
-     * @param  Zend_Form $form 
+     *
+     * @param  Zend_Form $form
      * @return Zend_Form_DisplayGroup
      */
     public function setForm(Zend_Form $form)
     {
         $this->_form = $form;
 
-        // Ensure any elements attached prior to setting the form are now 
+        // Ensure any elements attached prior to setting the form are now
         // removed from iteration by the form
         foreach ($this->getElements() as $element) {
             $form->removeFromIteration($element->getName());
@@ -303,7 +303,7 @@
 
     /**
      * Get form object to which the group is attached
-     * 
+     *
      * @return Zend_Form|null
      */
     public function getForm()
@@ -657,7 +657,7 @@
     /**
      * Load default decorators
      *
-     * @return void
+     * @return Zend_Form_DisplayGroup
      */
     public function loadDefaultDecorators()
     {
@@ -977,6 +977,16 @@
     }
 
     /**
+     * Does this display group have its own specific translator?
+     *
+     * @return bool
+     */
+    public function hasTranslator()
+    {
+        return (bool) $this->getTranslator();
+    }
+
+    /**
      * Indicate whether or not translation should be disabled
      *
      * @param  bool $flag