aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/forms/QuicksearchListInput.php
blob: 8f1fb2654f7b5b0a42af69db1ac7aeb2a63d5f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Studip\Forms;

class QuicksearchListInput extends Input
{
    public function render()
    {
        $template = $GLOBALS['template_factory']->open('forms/quicksearchlist_input');
        $template->title = $this->title;
        $template->name = $this->name;
        $template->value = $this->getValue();
        $template->id = md5(uniqid());
        $template->required = $this->required;
        $template->attributes = arrayToHtmlAttributes($this->attributes);

        return $template->render();
    }
}