private function _getImportantDecorator($element)
    {
        $class = get_class($element);

        if (strpos($class, 'JQuery')) {
            $dec = $element->getDecorator('UiWidgetElement');
        }
        if (strpos($class, 'File')) {
            $dec = $element->getDecorator('File');
        }

        if (!isset($dec) || $dec == false) {
            $dec = $element->getDecorator('ViewHelper');
        }

        return $dec;
    }
private function _getImportantDecorator($element)
    {
        $class = get_class($element);

        if (strpos($class, 'JQuery')) {
            $dec = $element->getDecorator('UiWidgetElement');
        }
        if (strpos($class, 'File')) {
            $dec = $element->getDecorator('File');
        }

        if (!isset($dec) || $dec == false) {
            $dec = $element->getDecorator('ViewHelper');
        }

        return $dec;
    }
private function _getImportantDecorator ( $ element ) { $ class = get_class ( $ element ) ; if ( strpos ( $ class , 'JQuery' ) ) { $ dec = $ element -> getDecorator ( 'UiWidgetElement' ) ; } if ( strpos ( $ class , 'File' ) ) { $ dec = $ element -> getDecorator ( 'File' ) ; } if ( ! isset ( $ dec ) || $ dec == false ) { $ dec = $ element -> getDecorator ( 'ViewHelper' ) ; } return $ dec ; }
Get a ViewHelper or ZendX decorator to add in front of the decorator chain

@param \Zend_Form_Element $element
@return null|\Zend_Form_Decorator_Abstract
Get a ViewHelper or ZendX decorator to add in front of the decorator chain