private function _enableAutoSubmitElement($element)
    {
        if ($element instanceof \Zend_Form || $element instanceof \Zend_Form_DisplayGroup) {
            foreach ($element->getElements() as $sub) {
                $this->_enableAutoSubmitElement($sub);
            }
        } elseif ($element instanceof \Gems_Form_AutosubmitElementInterface) {
            $element->enableAutoSubmit($this->_autosubmit);
        }
    }
private function _enableAutoSubmitElement($element)
    {
        if ($element instanceof \Zend_Form || $element instanceof \Zend_Form_DisplayGroup) {
            foreach ($element->getElements() as $sub) {
                $this->_enableAutoSubmitElement($sub);
            }
        } elseif ($element instanceof \Gems_Form_AutosubmitElementInterface) {
            $element->enableAutoSubmit($this->_autosubmit);
        }
    }
private function _enableAutoSubmitElement ( $ element ) { if ( $ element instanceof \ Zend_Form || $ element instanceof \ Zend_Form_DisplayGroup ) { foreach ( $ element -> getElements ( ) as $ sub ) { $ this -> _enableAutoSubmitElement ( $ sub ) ; } } elseif ( $ element instanceof \ Gems_Form_AutosubmitElementInterface ) { $ element -> enableAutoSubmit ( $ this -> _autosubmit ) ; } }
Change all elements into an autosubmit element

Call only when $_autoSubmit is set

@param mixed $element
Change all elements into an autosubmit element