Example #1
0
 /**
  *    Adds a radio button, building a group if necessary.
  *    @param SimpleRadioButtonTag $tag   Incoming form control.
  *    @access private
  */
 function _addRadioButton($tag) {
     if (! isset($this->_widgets[$tag->getName()])) {
         $this->_widgets[$tag->getName()] = &new SimpleRadioGroup();
     }
     $this->_widgets[$tag->getName()]->addWidget($tag);
 }
Example #2
0
 /**
  *    Adds a radio button, building a group if necessary.
  *    @param SimpleRadioButtonTag $tag   Incoming form control.
  *    @access private
  */
 protected function addRadioButton($tag)
 {
     if (!isset($this->radios[$tag->getName()])) {
         $this->widgets[] = new SimpleRadioGroup();
         $this->radios[$tag->getName()] = count($this->widgets) - 1;
     }
     $this->widgets[$this->radios[$tag->getName()]]->addWidget($tag);
 }
Example #3
0
 /**
  *    Adds a radio button, building a group if necessary.
  *    @param SimpleRadioButtonTag $tag   Incoming form control.
  *    @access private
  */
 function _addRadioButton(&$tag)
 {
     if (!isset($this->_radios[$tag->getName()])) {
         $this->_widgets[] =& new SimpleRadioGroup();
         $this->_radios[$tag->getName()] = count($this->_widgets) - 1;
     }
     $this->_widgets[$this->_radios[$tag->getName()]]->addWidget($tag);
 }