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