Commit | Line | Data |
---|---|---|
158bd3ca TD |
1 | <?php |
2 | namespace wcf\system\form\element; | |
3 | ||
4 | /** | |
d55936a7 | 5 | * Provides a radio form element. |
9f959ced | 6 | * |
158bd3ca | 7 | * @author Alexander Ebert |
7d739af0 | 8 | * @copyright 2001-2016 WoltLab GmbH |
158bd3ca TD |
9 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> |
10 | * @package com.woltlab.wcf | |
b0eae87f | 11 | * @subpackage system.form.element |
9f959ced | 12 | * @category Community Framework |
158bd3ca TD |
13 | */ |
14 | class SingleSelectionFormElement extends AbstractNamedFormElement { | |
15 | /** | |
0fcfe5f6 | 16 | * @inheritDoc |
158bd3ca TD |
17 | */ |
18 | public function getHTML($formName) { | |
19 | return <<<HTML | |
e5f9b56c | 20 | <label><input type="radio" name="{$formName}{$this->getParent()->getName()}" value="{$this->getValue()}"> {$this->getLabel()}</label> |
158bd3ca TD |
21 | HTML; |
22 | } | |
dcb3a44c | 23 | } |