49         $this->content_obj = $a_content_obj;
    50         $this->page = $a_page;
    55             $this->content_obj->getDomDoc(),
    56             $this->content_obj->hier_id,
    58             $this->content_obj->getPCId(),
    61         $this->map_repo = $DIC
    82         return $image_map_table->getHTML();
    93         switch ($this->map->getMode()) {
    99                 $area_link_type = $this->edit_request->getString(
"area_link_type");
   101                     $int_link = $this->map->getInternalLink();
   102                     $this->std_alias_item->setAreaIntLink(
   103                         $this->map->getAreaNr(),
   106                         $int_link[
"target_frame"]
   109                     $this->std_alias_item->setAreaExtLink(
   110                         $this->map->getAreaNr(),
   114                     $this->std_alias_item->setAreaExtLink(
   115                         $this->map->getAreaNr(),
   116                         $this->edit_request->getString(
"area_link_ext")
   119                 $this->page->update();
   124                 $this->std_alias_item->setShape(
   125                     $this->map->getAreaNr(),
   126                     $this->map->getAreaType(),
   127                     $this->map->getCoords()
   129                 $this->page->update();
   134                 $area_type = $this->map->getAreaType();
   135                 $coords = $this->map->getCoords();
   137                 $area_link_type = $this->edit_request->getString(
"area_link_type");
   138                 switch ($area_link_type) {
   142                             "Href" => $this->edit_request->getString(
"area_link_ext"));
   152                         $int_link = $this->map->getInternalLink();
   155                             "Type" => $int_link[
"type"],
   156                             "Target" => $int_link[
"target"],
   157                             "TargetFrame" => $int_link[
"target_frame"]);
   163                 $this->std_alias_item->addMapArea(
   166                     $this->edit_request->getString(
"area_name"),
   169                 $this->page->update();
   174         $this->main_tpl->setOnScreenMessage(
'success', 
$lng->
txt(
"cont_saved_map_area"), 
true);
   175         $ilCtrl->redirect($this, 
"editMapAreas");
   187         $areas = $this->edit_request->getStringArray(
"area");
   188         if (count($areas) == 0) {
   189             $this->main_tpl->setOnScreenMessage(
'failure', 
$lng->
txt(
"no_checkbox"), 
true);
   190             $ilCtrl->redirect($this, 
"editMapAreas");
   198         foreach ($areas as $area_nr) {
   199             $this->std_alias_item->deleteMapArea($area_nr);
   201         $this->page->update();
   202         $this->main_tpl->setOnScreenMessage(
'success', 
$lng->
txt(
"cont_areas_deleted"), 
true);
   204         $ilCtrl->redirect($this, 
"editMapAreas");
   212         return $this->std_alias_item->getLinkTypeOfArea($a_nr);
   220         return $this->std_alias_item->getTypeOfArea($a_nr);
   228         return $this->std_alias_item->getTargetOfArea($a_nr);
   236         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) {
   260             $name = $this->edit_request->getString(
"name_" . $area[
"Nr"]);
   261             $hl_mode = $this->edit_request->getString(
"hl_mode_" . $area[
"Nr"]);
   262             $hl_class = $this->edit_request->getString(
"hl_class_" . $area[
"Nr"]);
   266             $this->std_alias_item->setAreaTitle(
   270             $this->std_alias_item->setAreaHighlightMode(
   274             $this->std_alias_item->setAreaHighlightClass(
   279         $this->page->update();
   281         $this->main_tpl->setOnScreenMessage(
'success', 
$lng->
txt(
"cont_saved_map_data"), 
true);
   282         $ilCtrl->
redirect($this, 
"editMapAreas");
   289         string $a_edit_property = 
"",
   291         bool $a_output_new_area = 
false,
   292         string $a_area_type = 
"",
   293         string $a_coords = 
""   302             $this->content_obj->getDomDoc(),
   303             $this->content_obj->hier_id,
   305             $this->content_obj->getPCId(),
   309         if ($a_edit_property == 
"shape") {
   319             $st_alias_item->makeMapWorkCopy(
   332         return $this->content_obj->dumpXML();
 EditGUIRequest $edit_request
 
ImageMapGUIRequest $request
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
 
ilMediaAliasItem $std_alias_item
 
getTargetFrameOfArea(int $a_nr)
Get TargetFrame of Area (only internal link) 
 
Editing session repository. 
 
getLinkTypeOfArea(int $a_nr)
Get Link Type of Area. 
 
updateAreas()
Update map areas. 
 
makeMapWorkCopy(string $a_edit_property="", int $a_area_nr=0, bool $a_output_new_area=false, string $a_area_type="", string $a_coords="")
Make work file for editing. 
 
getHrefOfArea(int $a_nr)
Get Href of Area (only external link) 
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD) 
 
Page component editing request. 
 
getTargetOfArea(int $a_nr)
Get Target of Area (only internal link) 
 
ilObjMediaObject $media_object
 
User interface class for page content map editor. 
 
deleteAreas()
Delete map areas. 
 
User interface class for map editor. 
 
MapEditorSessionRepository $map_repo
 
getTypeOfArea(int $a_nr)
Get Type of Area (only internal link) 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
saveArea()
Save new or updated map area. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct( $a_content_obj, ilPageObject $a_page, EditGUIRequest $request)