ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Radio.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
28 interface Radio extends FormInput
29 {
33  public function withOption(string $value, string $label, string $byline = null): Radio;
34 
40  public function getOptions(): array;
41 
46  public function getBylineFor(string $value): ?string;
47 }
getOptions()
Get all options as value=>label.
This is what a radio-input looks like.
Definition: Radio.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Checkbox.php:21
getBylineFor(string $value)
Get byline for a single option.
This describes inputs that can be used in forms.
Definition: FormInput.php:31
withOption(string $value, string $label, string $byline=null)
Add an option-entry to the radio-input.