Select Git revision
Seminar_Session.class.php
Forked from
Stud.IP / Stud.IP
Source project has a limited visibility.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
DatalistInput.php 623 B
<?php
namespace Studip\Forms;
class DatalistInput extends Input
{
public function render()
{
$options = $this->extractOptionsFromAttributes($this->attributes);
$template = $GLOBALS['template_factory']->open('forms/datalist_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);
$template->options = $options;
return $template->render();
}
}