public function fixDecorators()
    {
        //Needed for alternating rows
        $this->_alternate = new \MUtil_Lazy_Alternate(array('odd', 'even'));

        foreach ($this as $name => $element) {
            if ($element instanceof \MUtil_Form_Element_Html) {
                $this->_fixDecoratorHtml($element);

            } elseif ($element instanceof \Zend_Form_Element_Hidden || $element instanceof \Zend_Form_Element_Submit) {
                $this->_fixDecoratorHiddenSubmit($element);

            } elseif ($element instanceof \Zend_Form_Element) {
                $this->_fixDecoratorElement($element);

            } elseif ($element instanceof \Zend_Form_DisplayGroup) {
                $this->_fixDecoratorDisplayGroup($element);

            }
        }
    }
public function fixDecorators()
    {
        //Needed for alternating rows
        $this->_alternate = new \MUtil_Lazy_Alternate(array('odd', 'even'));

        foreach ($this as $name => $element) {
            if ($element instanceof \MUtil_Form_Element_Html) {
                $this->_fixDecoratorHtml($element);

            } elseif ($element instanceof \Zend_Form_Element_Hidden || $element instanceof \Zend_Form_Element_Submit) {
                $this->_fixDecoratorHiddenSubmit($element);

            } elseif ($element instanceof \Zend_Form_Element) {
                $this->_fixDecoratorElement($element);

            } elseif ($element instanceof \Zend_Form_DisplayGroup) {
                $this->_fixDecoratorDisplayGroup($element);

            }
        }
    }
public function fixDecorators ( ) { //Needed for alternating rows $ this -> _alternate = new \ MUtil_Lazy_Alternate ( array ( 'odd' , 'even' ) ) ; foreach ( $ this as $ name => $ element ) { if ( $ element instanceof \ MUtil_Form_Element_Html ) { $ this -> _fixDecoratorHtml ( $ element ) ; } elseif ( $ element instanceof \ Zend_Form_Element_Hidden || $ element instanceof \ Zend_Form_Element_Submit ) { $ this -> _fixDecoratorHiddenSubmit ( $ element ) ; } elseif ( $ element instanceof \ Zend_Form_Element ) { $ this -> _fixDecoratorElement ( $ element ) ; } elseif ( $ element instanceof \ Zend_Form_DisplayGroup ) { $ this -> _fixDecoratorDisplayGroup ( $ element ) ; } } }
Fix the decorators so we get the table layout we want. Normally this is called
only once when rendering the form.
Fix the decorators so we get the table layout we want . Normally this is called only once when rendering the form .