5 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
6 include_once(
"Services/MediaObjects/classes/class.ilImageMapTableGUI.php");
22 function __construct($a_parent_obj, $a_parent_cmd, $a_pc_media_object,
27 $this->parent_node_name = $a_parent_node_name;
28 $this->pc_media_object = $a_pc_media_object;
38 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId(),
39 $this->parent_node_name);
42 foreach ($areas as $k => $a)
44 $areas[$k][
"title"] = $a[
"Link"][
"Title"];
59 $this->tpl->setVariable(
"CHECKBOX",
60 ilUtil::formCheckBox(
"",
"area[]", $i));
61 $this->tpl->setVariable(
"VAR_NAME",
"name_".$i);
62 $this->tpl->setVariable(
"VAL_NAME", $a_set[
"Link"][
"Title"]);
63 $this->tpl->setVariable(
"VAL_SHAPE", $a_set[
"Shape"]);
65 $this->tpl->setVariable(
"VAL_HIGHL_MODE",
67 $this->highl_modes,
false,
true));
68 $this->tpl->setVariable(
"VAL_HIGHL_CLASS",
70 $this->highl_classes,
false,
true));
72 $this->tpl->setVariable(
"VAL_COORDS",
73 implode(explode(
",", $a_set[
"Coords"]),
", "));
74 switch ($a_set[
"Link"][
"LinkType"])
77 $this->tpl->setVariable(
"VAL_LINK", $a_set[
"Link"][
"Href"]);
81 $link_str = $this->parent_obj->getMapAreaLinkString($a_set[
"Link"][
"Target"],
82 $a_set[
"Link"][
"Type"], $a_set[
"Link"][
"TargetFrame"]);
83 $this->tpl->setVariable(
"VAL_LINK", $link_str);