Ejemplo n.º 1
0
 /**
  * Load default decorators
  *
  * @return IfwPsn_Vendor_Zend_Form_Element_MultiCheckbox
  */
 public function loadDefaultDecorators()
 {
     if ($this->loadDefaultDecoratorsIsDisabled()) {
         return $this;
     }
     parent::loadDefaultDecorators();
     // Disable 'for' attribute
     if (false !== ($decorator = $this->getDecorator('label'))) {
         $decorator->setOption('disableFor', true);
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Load default decorators
  *
  * Disables "for" attribute of label if label decorator enabled.
  *
  * @return IfwPsn_Vendor_Zend_Form_Element_Radio
  */
 public function loadDefaultDecorators()
 {
     if ($this->loadDefaultDecoratorsIsDisabled()) {
         return $this;
     }
     parent::loadDefaultDecorators();
     // Disable 'for' attribute
     if (isset($this->_decorators['Label']) && !isset($this->_decorators['Label']['options']['disableFor'])) {
         $this->_decorators['Label']['options']['disableFor'] = true;
     }
     return $this;
 }