Function __global->form_input_radio
Definitions
sources/form_templates.php
- Get the Tempcode for a radio group.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $pretty_name | mixed | No | No | required parameter | N/A | N/A | A human intelligible name for this input field, provided in plain-text format (string or Tempcode) |
| $description | mixed | No | No | required parameter | N/A | N/A | A description for this input field, provided in HTML format (string or Tempcode) |
| $name | ID_TEXT | No | No | required parameter | N/A | N/A | The name which this input field is for |
| $content | Tempcode | No | No | required parameter | N/A | N/A | The radio buttons for our radio group; you compose these via attaching together form_input_radio_entry calls |
| $required | boolean | No | No | False | N/A | N/A | Whether a radio selection is required |
| $picture_contents | boolean | No | No | False | N/A | N/A | Whether this is a picture-based radio list |
| $selected_path | string | No | No | Blank (empty string) | N/A | N/A | Default value (only appropriate if has picture contents) |
Returns
- The input field
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the Tempcode for a radio group.
*
* @param mixed $pretty_name A human intelligible name for this input field, provided in plain-text format (string or Tempcode)
* @param mixed $description A description for this input field, provided in HTML format (string or Tempcode)
* @param ID_TEXT $name The name which this input field is for
* @param Tempcode $content The radio buttons for our radio group; you compose these via attaching together form_input_radio_entry calls
* @param boolean $required Whether a radio selection is required
* @param boolean $picture_contents Whether this is a picture-based radio list
* @param string $selected_path Default value (only appropriate if has picture contents)
* @return Tempcode The input field
*/
function form_input_radio($pretty_name, $description, string $name, object $content, bool $required = false, bool $picture_contents = false, string $selected_path = '') : object
* Get the Tempcode for a radio group.
*
* @param mixed $pretty_name A human intelligible name for this input field, provided in plain-text format (string or Tempcode)
* @param mixed $description A description for this input field, provided in HTML format (string or Tempcode)
* @param ID_TEXT $name The name which this input field is for
* @param Tempcode $content The radio buttons for our radio group; you compose these via attaching together form_input_radio_entry calls
* @param boolean $required Whether a radio selection is required
* @param boolean $picture_contents Whether this is a picture-based radio list
* @param string $selected_path Default value (only appropriate if has picture contents)
* @return Tempcode The input field
*/
function form_input_radio($pretty_name, $description, string $name, object $content, bool $required = false, bool $picture_contents = false, string $selected_path = '') : object

