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

namespace Studip\Forms;

class CalculatorInput extends Input
{
    public function render()
    {
        $template = $GLOBALS['template_factory']->open('forms/calculator_input');
        $template->title = $this->title;
        $template->value = $this->value;
        $template->attributes = arrayToHtmlAttributes($this->attributes);
        return $template->render();
    }

    public function getAllInputNames()
    {
        return [];
    }
}