5 include_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
36 $this->lng = $DIC->language();
37 $this->ctrl = $DIC->ctrl();
38 $this->content_obj = $a_content_obj;
39 $this->page = $a_page;
40 parent::__construct($a_content_obj->getMediaObject());
43 $this->content_obj->dom,
44 $this->content_obj->hier_id,
46 $this->content_obj->getPcId(),
66 include_once(
"./Services/COPage/classes/class.ilPCImageMapTableGUI.php");
73 return $image_map_table->getHTML();
91 $this->std_alias_item->setAreaIntLink(
98 $this->std_alias_item->setAreaExtLink(
103 $this->std_alias_item->setAreaExtLink(
108 $this->updated = $this->page->update();
115 $this->std_alias_item->setShape(
120 $this->updated = $this->page->update();
125 $area_type =
$_SESSION[
"il_map_edit_area_type"];
128 switch (
$_POST[
"area_link_type"]) {
145 "Target" =>
$_SESSION[
"il_map_il_target"],
146 "TargetFrame" =>
$_SESSION[
"il_map_il_targetframe"]);
152 $this->std_alias_item->addMapArea(
158 $this->updated = $this->page->update();
165 $ilCtrl->redirect($this,
"editMapAreas");
176 if (!isset(
$_POST[
"area"])) {
178 $ilCtrl->redirect($this,
"editMapAreas");
184 if (count(
$_POST[
"area"]) > 0) {
187 foreach (
$_POST[
"area"] as $area_nr) {
188 $this->std_alias_item->deleteMapArea($area_nr);
190 $this->updated = $this->page->update();
194 $ilCtrl->redirect($this,
"editMapAreas");
204 return $this->std_alias_item->getLinkTypeOfArea($a_nr);
214 return $this->std_alias_item->getTypeOfArea($a_nr);
224 return $this->std_alias_item->getTargetOfArea($a_nr);
234 return $this->std_alias_item->getTargetFrameOfArea($a_nr);
244 return $this->std_alias_item->getHrefOfArea($a_nr);
257 $areas = $this->std_alias_item->getMapAreas();
258 foreach ($areas as $area) {
264 $this->std_alias_item->setAreaTitle(
268 $this->std_alias_item->setAreaHighlightMode(
272 $this->std_alias_item->setAreaHighlightClass(
277 $this->page->update();
280 $ilCtrl->redirect($this,
"editMapAreas");
287 $a_edit_property =
"",
289 $a_output_new_area =
false,
295 $media_object = $this->content_obj->getMediaObject();
298 $st_item = $media_object->getMediaItem(
"Standard");
300 $this->content_obj->dom,
301 $this->content_obj->hier_id,
303 $this->content_obj->getPcId(),
307 if ($a_edit_property ==
"shape") {
317 $st_alias_item->makeMapWorkCopy(
330 return $this->content_obj->dumpXML();
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
getHrefOfArea($a_nr)
Get Href of Area (only external link)
getLinkTypeOfArea($a_nr)
Get Link Type of Area.
getParentNodeName()
Get parent node name.
getTargetFrameOfArea($a_nr)
Get TargetFrame of Area (only internal link)
getImageMapTableHTML()
Get table HTML.
updateAreas()
Update map areas.
getTypeOfArea($a_nr)
Get Type of Area (only internal link)
makeMapWorkCopy( $a_edit_property="", $a_area_nr=0, $a_output_new_area=false, $a_area_type="", $a_coords="")
Make work file for editing.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
User interface class for page content map editor.
deleteAreas()
Delete map areas.
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
User interface class for map editor.
__construct($a_content_obj, $a_page)
Constructor.
TableGUI class for pc image map editor.
getTargetOfArea($a_nr)
Get Target of Area (only internal link)
saveArea()
Save new or updated map area.