5 include_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
24 $this->content_obj = $a_content_obj;
25 $this->page = $a_page;
29 $this->content_obj->hier_id,
"Standard", $this->content_obj->getPcId(),
48 include_once(
"./Services/COPage/classes/class.ilPCImageMapTableGUI.php");
51 return $image_map_table->getHTML();
70 $this->std_alias_item->setAreaIntLink(
$_SESSION[
"il_map_area_nr"],
76 $this->std_alias_item->setAreaExtLink(
$_SESSION[
"il_map_area_nr"],
81 $this->std_alias_item->setAreaExtLink(
$_SESSION[
"il_map_area_nr"],
84 $this->updated = $this->page->update();
91 $this->std_alias_item->setShape(
$_SESSION[
"il_map_area_nr"],
93 $this->updated = $this->page->update();
98 $area_type =
$_SESSION[
"il_map_edit_area_type"];
99 $coords =
$_SESSION[
"il_map_edit_coords"];
101 switch(
$_POST[
"area_link_type"])
119 "Target" =>
$_SESSION[
"il_map_il_target"],
120 "TargetFrame" =>
$_SESSION[
"il_map_il_targetframe"]);
126 $this->std_alias_item->addMapArea($area_type, $coords,
128 $this->updated = $this->page->update();
135 $ilCtrl->redirect($this,
"editMapAreas");
145 if (!isset(
$_POST[
"area"]))
148 $ilCtrl->redirect($this,
"editMapAreas");
154 if (count(
$_POST[
"area"]) > 0)
158 foreach (
$_POST[
"area"] as $area_nr)
160 $this->std_alias_item->deleteMapArea($area_nr);
162 $this->updated = $this->page->update();
166 $ilCtrl->redirect($this,
"editMapAreas");
176 return $this->std_alias_item->getLinkTypeOfArea($a_nr);
186 return $this->std_alias_item->getTypeOfArea($a_nr);
196 return $this->std_alias_item->getTargetOfArea($a_nr);
206 return $this->std_alias_item->getTargetFrameOfArea($a_nr);
216 return $this->std_alias_item->getHrefOfArea($a_nr);
228 $areas = $this->std_alias_item->getMapAreas();
229 foreach($areas as $area)
231 $this->std_alias_item->setAreaTitle($area[
"Nr"],
233 $this->std_alias_item->setAreaHighlightMode($area[
"Nr"],
235 $this->std_alias_item->setAreaHighlightClass($area[
"Nr"],
238 $this->page->update();
241 $ilCtrl->redirect($this,
"editMapAreas");
248 $a_output_new_area =
false, $a_area_type =
"", $a_coords =
"")
252 $media_object = $this->content_obj->getMediaObject();
255 $st_item = $media_object->getMediaItem(
"Standard");
257 $this->content_obj->hier_id,
"Standard", $this->content_obj->getPcId(),
260 if ($a_edit_property ==
"shape")
263 $a_output_new_area, $a_area_type, $a_coords);
267 $st_alias_item->makeMapWorkCopy($st_item, $a_area_nr,
false,
268 $a_output_new_area, $a_area_type, $a_coords);
274 return $this->content_obj->dumpXML();