19 declare(strict_types=1);
36 string $a_autocomplete_cmd
40 $this->
ctrl = $DIC->ctrl();
41 $ilCtrl = $DIC->ctrl();
43 if (is_object($a_class)) {
44 $a_class = get_class($a_class);
46 $a_class = strtolower($a_class);
52 $this->
setDataSource($ilCtrl->getLinkTargetByClass($a_class, $a_autocomplete_cmd,
"",
true));
62 $t = $DIC->refinery()->kindlyTo()->string();
63 $w = $DIC->http()->wrapper();
65 if ($w->query()->has(
"term")) {
66 $q = $w->query()->retrieve(
"term", $t);
68 if ($w->post()->has(
"term")) {
69 $q = $w->post()->retrieve(
"term", $t);
static getList(string $a_str)
Get completion list.
setDataSource(string $href, ?string $a_delimiter=null)
setInputType(string $a_type)
set input type
setMaxLength(?int $a_maxlength)
__construct(Container $dic, ilPlugin $plugin)