19 declare(strict_types=1);
36 string $a_postvar =
"" 40 $this->
lng = $DIC->language();
45 $this->list->setListClass(
"il_Explorer");
51 string $a_parent =
"0",
52 bool $a_checked =
false,
53 bool $a_disabled =
false,
54 string $a_img_src =
"",
55 string $a_img_alt =
"",
56 string $a_post_var =
"" 58 $this->list_nodes[$a_id] = array(
"text" => $a_text,
59 "parent" => $a_parent,
"checked" => $a_checked,
"disabled" => $a_disabled,
60 "img_src" => $a_img_src,
"img_alt" => $a_img_alt,
"post_var" => $a_post_var);
63 public function setValue(
string $a_value): void
65 $this->value = $a_value;
94 foreach ($this->list_nodes as
$id => $n) {
95 if ($n[
"post_var"] ==
"") {
98 $post_var = $n[
"post_var"];
107 if ($n[
"img_src"] !=
"") {
118 $item_html .= $n[
"text"];
120 $this->list->addListNode($item_html, (
string)
$id, $n[
"parent"]);
123 return $this->list->getHTML();
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
setVariable($variable, $value='')
Sets a variable value.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(Container $dic, ilPlugin $plugin)