diff options
Diffstat (limited to 'lib/classes/forms/PasswordInput.php')
| -rw-r--r-- | lib/classes/forms/PasswordInput.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/classes/forms/PasswordInput.php b/lib/classes/forms/PasswordInput.php new file mode 100644 index 0000000..68e4718 --- /dev/null +++ b/lib/classes/forms/PasswordInput.php @@ -0,0 +1,18 @@ +<?php + +namespace Studip\Forms; + +class PasswordInput extends Input +{ + public function render() + { + $template = $GLOBALS['template_factory']->open('forms/password_input'); + $template->title = $this->title; + $template->name = $this->name; + $template->value = $this->value; + $template->id = md5(uniqid()); + $template->required = $this->required; + $template->attributes = arrayToHtmlAttributes($this->attributes); + return $template->render(); + } +} |
