5include_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(),
 
   47            $this->getParentNodeName()
 
   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();
 
  164        ilUtil::sendSuccess(
$lng->txt(
"cont_saved_map_area"), 
true);
 
  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();
 
  191            ilUtil::sendSuccess(
$lng->txt(
"cont_areas_deleted"), 
true);
 
  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();
 
  279        ilUtil::sendSuccess(
$lng->txt(
"cont_saved_map_data"), 
true);
 
  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(),
 
  304            $this->getParentNodeName()
 
  307        if ($a_edit_property == 
"shape") {
 
  308            $st_alias_item->makeMapWorkCopy(
 
  317            $st_alias_item->makeMapWorkCopy(
 
  330        return $this->content_obj->dumpXML();
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for map editor.
User interface class for page content map editor.
getTypeOfArea($a_nr)
Get Type of Area (only internal link)
saveArea()
Save new or updated map area.
getTargetFrameOfArea($a_nr)
Get TargetFrame of Area (only internal link)
deleteAreas()
Delete map areas.
getHrefOfArea($a_nr)
Get Href of Area (only external link)
getLinkTypeOfArea($a_nr)
Get Link Type of Area.
makeMapWorkCopy( $a_edit_property="", $a_area_nr=0, $a_output_new_area=false, $a_area_type="", $a_coords="")
Make work file for editing.
__construct($a_content_obj, $a_page)
Constructor.
getTargetOfArea($a_nr)
Get Target of Area (only internal link)
getParentNodeName()
Get parent node name.
updateAreas()
Update map areas.
getImageMapTableHTML()
Get table HTML.
TableGUI class for pc image map editor.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled