/** * Adds a radio option to this list. * @param string $value The short value that represents the displayed text. * @param string $displayText The text to show to the end user. * @access public * @return void */ function addOption($value, $displayText) { $name = strval(count($this->_optionValues)); $this->_optionValues[$name] = $value; $newChild = new WCheckBox(); $newChild->setLabel($displayText); $this->addComponent($name, $newChild); }