/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/form/form_elements/FERadioGroup.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/form/form_elements/FERadioGroup.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Sat Feb 22 21:07:48 2003 UTC revision 1.2 by jonen, Sat Sep 20 00:20:15 2003 UTC
# Line 162  class FEYesNoRadioGroup extends FERadioG Line 162  class FEYesNoRadioGroup extends FERadioG
162       *       *
163       * @param label string - text label for the element       * @param label string - text label for the element
164       * @param bool required - is this a required element       * @param bool required - is this a required element
165         * @param string - the value to use for the 'yes' radio
166         *                 NOTE: default is 'yes'
167         * @param string - the value to use for the 'no' radio
168         *                 NOTE: default is 'no'
169       */       */
170      function FEYesNoRadioGroup($label, $required = TRUE) {      function FEYesNoRadioGroup($label, $required = TRUE,
171                                   $yes_value="yes", $no_value="no") {
172          $this->FormElement($label, $required);          $this->FormElement($label, $required);
173          $this->_data_list[] = array("Yes" => "yes");          $this->_data_list[] = array("Yes" => $yes_value);
174          $this->_data_list[] = array("No" => "no");          $this->_data_list[] = array("No" => $no_value);
175      }      }
176  }  }
177  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed