ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 }
withOption(string $value, string $label, ?string $byline=null)
Add an option-entry to the radio-input.
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
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getBylineFor(string $value)
Get byline for a single option.
This describes inputs that can be used in forms.
Definition: FormInput.php:32