library/Garp/Form.php
protected function _mergeDecoratorOptions(Zend_Form_Element $element, array $inheritance) {
        foreach ($inheritance as $mergedDecorator) {
            $name = is_array($mergedDecorator) ? $mergedDecorator[0] : $mergedDecorator;
            $options = is_array($mergedDecorator) ? $mergedDecorator[1] : [];
            $existingDecorator = $element->getDecorator($name);
            if (!$existingDecorator) {
                continue;
            }
            foreach ($options as $key => $value) {
                $existingDecorator->setOption($key, $value);
            }
        }
    }
protected function _mergeDecoratorOptions(Zend_Form_Element $element, array $inheritance) {
        foreach ($inheritance as $mergedDecorator) {
            $name = is_array($mergedDecorator) ? $mergedDecorator[0] : $mergedDecorator;
            $options = is_array($mergedDecorator) ? $mergedDecorator[1] : [];
            $existingDecorator = $element->getDecorator($name);
            if (!$existingDecorator) {
                continue;
            }
            foreach ($options as $key => $value) {
                $existingDecorator->setOption($key, $value);
            }
        }
    }
protected function _mergeDecoratorOptions ( Zend_Form_Element $ element , array $ inheritance ) { foreach ( $ inheritance as $ mergedDecorator ) { $ name = is_array ( $ mergedDecorator ) ? $ mergedDecorator [ 0 ] : $ mergedDecorator ; $ options = is_array ( $ mergedDecorator ) ? $ mergedDecorator [ 1 ] : [ ] ; $ existingDecorator = $ element -> getDecorator ( $ name ) ; if ( ! $ existingDecorator ) { continue ; } foreach ( $ options as $ key => $ value ) { $ existingDecorator -> setOption ( $ key , $ value ) ; } } }
Overwrite or append existing decorator options.

@param  Zend_Form_Element $element
@param  array $inheritance Spec describing which options to merge
@return void
Overwrite or append existing decorator options .