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

namespace Studip\Forms;

class HiddenInput extends Input
{
    public function render()
    {
        $template = $GLOBALS['template_factory']->open('forms/hidden_input');
        $template->name = $this->name;
        $template->value = $this->value;
        $template->id = md5(uniqid());
        $template->attributes = arrayToHtmlAttributes($this->attributes);
        return $template->render();
    }
}