24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
25 include_once(
"Services/MediaObjects/classes/class.ilImageMapTableGUI.php");
41 function __construct($a_parent_obj, $a_parent_cmd, $a_pc_media_object)
45 $this->pc_media_object = $a_pc_media_object;
55 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
58 foreach ($areas as $k => $a)
60 $areas[$k][
"title"] = $a[
"Link"][
"Title"];
75 $this->tpl->setVariable(
"CHECKBOX",
76 ilUtil::formCheckBox(
"",
"area[]", $i));
77 $this->tpl->setVariable(
"VAR_NAME",
"name_".$i);
78 $this->tpl->setVariable(
"VAL_NAME", $a_set[
"Link"][
"Title"]);
79 $this->tpl->setVariable(
"VAL_SHAPE", $a_set[
"Shape"]);
80 $this->tpl->setVariable(
"VAL_COORDS",
81 implode(explode(
",", $a_set[
"Coords"]),
", "));
82 switch ($a_set[
"Link"][
"LinkType"])
85 $this->tpl->setVariable(
"VAL_LINK", $a_set[
"Link"][
"Href"]);
89 $link_str = $this->parent_obj->getMapAreaLinkString($a_set[
"Link"][
"Target"],
90 $a_set[
"Link"][
"Type"], $a_set[
"Link"][
"TargetFrame"]);
91 $this->tpl->setVariable(
"VAL_LINK", $link_str);