Revert "Revert "Removed obsolete trailing slashes from void elements""
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / form / element / PasswordInputFormElement.class.php
1 <?php
2 namespace wcf\system\form\element;
3
4 /**
5 * Provides a password input form element.
6 *
7 * @author Alexander Ebert
8 * @copyright 2001-2016 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package com.woltlab.wcf
11 * @subpackage system.form.element
12 * @category Community Framework
13 */
14 class PasswordInputFormElement extends AbstractNamedFormElement {
15 /**
16 * @inheritDoc
17 */
18 public function getHTML($formName) {
19 return <<<HTML
20 <dl{$this->getErrorClass()}>
21 <dt><label for="{$this->getName()}">{$this->getLabel()}</label></dt>
22 <dd>
23 <input type="password" id="{$this->getName()}" name="{$formName}{$this->getName()}" value="{$this->getValue()}" class="medium">
24 <small>{$this->getDescription()}</small>
25 {$this->getErrorField()}
26 </dd>
27 </dl>
28 HTML;
29 }
30 }