/** * Produce a string containing a radio input inside a table row * * @param string $name the string used in the 'name' attribute * @param string $title the string used as the label * @param string $value the string used for the item's value * @param bool $default a bool indicating if item should be checked * @param string $attr a string of additional attributes to be put * in the element (example: 'id="foo"') * @param string $thattr a string of additional attributes to be put * in the <th> element (example: 'class="foo"') * @param string $tdattr a string of additional attributes to be put * in the <td> element (example: 'class="foo"') * @return string * * @access public * @static * @see HTML_Form::displayRadio(), HTML_Form::displayRadioRow(), * HTML_Form::returnRadio(), HTML_Form::addRadio() * @since Method available since Release 1.1.0 */ function returnRadioRow($name, $title, $value, $default = false, $attr = '', $thattr = HTML_FORM_TH_ATTR, $tdattr = HTML_FORM_TD_ATTR) { return " <tr>\n" . ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . ">\n " . HTML_Form::returnRadio($name, $value, $default, $attr) . " </td>\n" . " </tr>\n"; }