Exemplo n.º 1
0
 /**
  *    Sets the widget into the form, grouping radio
  *    buttons if any.
  *    @param SimpleWidget $tag   Incoming form control.
  *    @access private
  */
 function _setWidget($tag) {
     if (strtolower($tag->getAttribute('type')) == 'radio') {
         $this->_addRadioButton($tag);
     } elseif (strtolower($tag->getAttribute('type')) == 'checkbox') {
         $this->_addCheckbox($tag);
     } else {
         $this->_widgets[$tag->getName()] = &$tag;
     }
 }
Exemplo n.º 2
0
 /**
  *    Sets the widget into the form, grouping radio
  *    buttons if any.
  *    @param SimpleWidget $tag   Incoming form control.
  *    @access private
  */
 protected function setWidget($tag)
 {
     if (strtolower($tag->getAttribute('type')) == 'radio') {
         $this->addRadioButton($tag);
     } elseif (strtolower($tag->getAttribute('type')) == 'checkbox') {
         $this->addCheckbox($tag);
     } else {
         $this->widgets[] =& $tag;
     }
 }
Exemplo n.º 3
0
 /**
  *    Sets the widget into the form, grouping radio
  *    buttons if any.
  *    @param SimpleWidget $tag   Incoming form control.
  *    @access private
  */
 function _setWidget($tag)
 {
     if (strtolower($tag->getAttribute("type")) == "radio") {
         $this->_addRadioButton($tag);
     } elseif (strtolower($tag->getAttribute("type")) == "checkbox") {
         $this->_addCheckbox($tag);
     } else {
         $this->_widgets[$tag->getName()] =& $tag;
     }
 }