ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Radio.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
28interface 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}
This describes inputs that can be used in forms.
Definition: FormInput.php:33
This is what a radio-input looks like.
Definition: Radio.php:29
getBylineFor(string $value)
Get byline for a single option.
getOptions()
Get all options as value=>label.
withOption(string $value, string $label, ?string $byline=null)
Add an option-entry to the radio-input.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Checkbox.php:21