4 include_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
23 $this->pc_media_object = $a_pc_media_object;
24 $this->page = $a_page;
34 include_once(
"./Services/COPage/classes/class.ilPCImageMapTableGUI.php");
36 return $image_map_table->getHTML();
51 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
61 $std_alias_item->setAreaExtLink(
$_SESSION[
"il_map_area_nr"],
64 $this->updated = $this->page->update();
70 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
73 $this->updated = $this->page->update();
78 $area_type =
$_SESSION[
"il_map_edit_area_type"];
79 $coords =
$_SESSION[
"il_map_edit_coords"];
81 switch(
$_POST[
"area_link_type"])
93 "Target" =>
$_SESSION[
"il_map_il_target"],
94 "TargetFrame" =>
$_SESSION[
"il_map_il_targetframe"]);
99 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
100 $std_alias_item->
addMapArea($area_type, $coords,
102 $this->updated = $this->page->update();
109 $ilCtrl->redirect($this,
"editMapAreas");
119 if (!isset(
$_POST[
"area"]))
122 $ilCtrl->redirect($this,
"editMapAreas");
126 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
128 if (count(
$_POST[
"area"]) > 0)
132 foreach (
$_POST[
"area"] as $area_nr)
137 $this->updated = $this->page->update();
141 $ilCtrl->redirect($this,
"editMapAreas");
150 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
160 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
170 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
180 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
190 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
202 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
204 foreach($areas as $area)
206 $std_alias_item->setAreaTitle($area[
"Nr"],
209 $this->page->update();
212 $ilCtrl->redirect($this,
"editMapAreas");
219 $a_output_new_area =
false, $a_area_type =
"", $a_coords =
"")
222 $st_item = $this->media_object->getMediaItem(
"Standard");
224 $this->pc_media_object->hier_id,
"Standard", $this->pc_media_object->getPcId());
226 if ($a_edit_property ==
"shape")
229 $a_output_new_area, $a_area_type, $a_coords);
233 $st_alias_item->makeMapWorkCopy($st_item, $a_area_nr,
false,
234 $a_output_new_area, $a_area_type, $a_coords);
240 return $this->pc_media_object->dumpXML();