3 declare(strict_types=1);
35 string $a_autocomplete_cmd
39 $this->
ctrl = $DIC->ctrl();
40 $ilCtrl = $DIC->ctrl();
42 if (is_object($a_class)) {
43 $a_class = get_class($a_class);
45 $a_class = strtolower($a_class);
51 $this->
setDataSource($ilCtrl->getLinkTargetByClass($a_class, $a_autocomplete_cmd,
"",
true));
61 $t = $DIC->refinery()->kindlyTo()->string();
62 $w = $DIC->http()->wrapper();
64 if ($w->query()->has(
"term")) {
65 $q = $w->query()->retrieve(
"term", $t);
67 if ($w->post()->has(
"term")) {
68 $q = $w->post()->retrieve(
"term", $t);
static getList(string $a_str)
Get completion list.
setInputType(string $a_type)
set input type
setMaxLength(?int $a_maxlength)
__construct(Container $dic, ilPlugin $plugin)
setDataSource(string $href, string $a_delimiter=null)