/** * Add an option to the composite. * * @param object ReusableOption &$option The option to be added to the composite. * @return boolean True if options could be added (composite), false otherwise. * @access public */ function addChild(&$option) { if (is_a($option, 'RadioButtonOption')) { //all radiobuttons in a group must have the name of the group $option->setOptionName($this->getName()); return parent::addChild($option); } return false; }
/** * Add an option to the composite. * * @param object ReusableOption &$option The option to be added to the composite. * @return boolean True if options could be added (composite), false otherwise. * @access public */ function addChild(&$option) { if (is_a($option, 'RO_CheckBoxListOption')) { //all checkboxes in a list must have the name of the group $option->setOptionName($this->getName()); return parent::addChild($option); } return false; }