5include_once(
"./Services/COPage/classes/class.ilPCImageMapEditorGUI.php");
 
   26                $tpl->addJavascript(
"./Services/COPage/js/ilCOPagePres.js");
 
   28                parent::__construct($a_content_obj, $a_page);
 
   38                return "InteractiveImage";
 
   50                return $lng->txt(
"cont_pc_iim");
 
   60                include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
 
   63                $tpl->addJavascript(
"./Services/COPage/js/ilCOPagePres.js");
 
   64                $tpl->addJavascript(
"./Services/COPage/js/ilCOPagePCInteractiveImage.js");
 
   66                include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
 
   70                $ilToolbar->addText(
$lng->txt(
"cont_drag_element_click_save"));
 
   71                $ilToolbar->setId(
"drag_toolbar");
 
   72                $ilToolbar->setHidden(
true);
 
   73                $ilToolbar->addButton(
$lng->txt(
"save"),
"#", 
"", 
"", 
"", 
"save_pos_button");
 
   75                $ilToolbar->addButton(
$lng->txt(
"cancel"),
 
   76                        $ilCtrl->getLinkTarget($this, 
"editMapAreas"));
 
   78                include_once(
"./Services/COPage/classes/class.ilPCIIMTriggerTableGUI.php");
 
   81                return $image_map_table->getHTML();
 
   95                $tb->setFormAction(
$ilCtrl->getFormAction($this));
 
   96                include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
   98                        "Rect" => 
$lng->txt(
"cont_Rect"),
 
   99                        "Circle" => 
$lng->txt(
"cont_Circle"),
 
  100                        "Poly" => 
$lng->txt(
"cont_Poly"),
 
  101                        "Marker" => 
$lng->txt(
"cont_marker")
 
  105                $tb->addInputItem(
$si, 
true);
 
  106                $tb->addFormButton(
$lng->txt(
"add"), 
"addNewArea");
 
  121                if (
$_POST[
"shape"] == 
"Marker")
 
  123                        $this->content_obj->addTriggerMarker();
 
  124                        $this->updated = $this->page->update();
 
  126                        $ilCtrl->redirect($this, 
"editMapAreas");
 
  130                        return parent::addNewArea();
 
  143                include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  145                $form->setOpenTag(
false);
 
  146                $form->setCloseTag(
false);
 
  149                if ($a_edit_property != 
"link" && $a_edit_property != 
"shape")
 
  152                        $ti->setMaxLength(200);
 
  159                if ($a_edit_property == 
"")
 
  161                        $form->setTitle(
$lng->txt(
"cont_new_trigger_area"));
 
  162                        $form->addCommandButton(
"saveArea", 
$lng->txt(
"save"));
 
  166                        $form->setTitle(
$lng->txt(
"cont_new_area"));
 
  167                        $form->addCommandButton(
"saveArea", 
$lng->txt(
"save"));
 
  184                                $this->std_alias_item->setShape(
$_SESSION[
"il_map_area_nr"],
 
  186                                $this->updated = $this->page->update();
 
  191                                $area_type = 
$_SESSION[
"il_map_edit_area_type"];
 
  193                                $this->content_obj->addTriggerArea($this->std_alias_item,
 
  196                                $this->updated = $this->page->update();
 
  202                $ilCtrl->redirect($this, 
"editMapAreas");
 
  212                $this->content_obj->setTriggerOverlays(
$_POST[
"ov"]);
 
  213                $this->content_obj->setTriggerPopups(
$_POST[
"pop"]);
 
  214                $this->content_obj->setTriggerOverlayPositions(
$_POST[
"ovpos"]);
 
  215                $this->content_obj->setTriggerMarkerPositions(
$_POST[
"markpos"]);
 
  216                $this->content_obj->setTriggerPopupPositions(
$_POST[
"poppos"]);
 
  217                $this->content_obj->setTriggerPopupSize(
$_POST[
"popsize"]);
 
  218                $this->content_obj->setTriggerTitles(
$_POST[
"title"]);
 
  219                $this->updated = $this->page->update();
 
  221                $ilCtrl->redirect($this, 
"editMapAreas");
 
  231                if (!is_array(
$_POST[
"tr"]) || count(
$_POST[
"tr"]) == 0)
 
  234                        $ilCtrl->redirect($this, 
"editMapAreas");
 
  238                        include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
  240                        $cgui->setFormAction(
$ilCtrl->getFormAction($this));
 
  241                        $cgui->setHeaderText(
$lng->txt(
"cont_really_delete_triggers"));
 
  242                        $cgui->setCancel(
$lng->txt(
"cancel"), 
"editMapAreas");
 
  243                        $cgui->setConfirm(
$lng->txt(
"delete"), 
"deleteTrigger");
 
  245                        foreach (
$_POST[
"tr"] as $i)
 
  247                                $cgui->addItem(
"tr[]", $i, 
$_POST[
"title"][$i]);
 
  250                        $tpl->setContent($cgui->getHTML());
 
  263                        foreach (
$_POST[
"tr"] as $tr_nr)
 
  265                                $this->content_obj->deleteTrigger($this->std_alias_item, $tr_nr);
 
  267                        $this->updated = $this->page->update();
 
  271                $ilCtrl->redirect($this, 
"editMapAreas");
 
  281                return $this->page->getMultimediaXML();
 
  294                include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
 
  295                $pg_gui = 
new ilPageObjectGUI($this->page->getParentType(), $this->page->getId());
 
  297                $pg_gui->getPageConfig()->setEnableSelfAssessment(
true);
 
  299                $qhtml = $pg_gui->getQuestionHTML();
 
  300                if (is_array($qhtml))
 
  302                        foreach ($qhtml as $k => 
$h)
 
  304                                $a_output = str_replace($pg_gui->pl_start.
"Question;il__qst_$k".$pg_gui->pl_end, 
" ".$h, $a_output);
 
An exception for terminatinating execution or to throw for unit testing.
static addJavaScript()
Add javascript files that are necessary to run accordion.
static addCss()
Add required css.
Confirmation screen class.
User interface class for page content map editor.
deleteTrigger()
Delete trigger.
__construct($a_content_obj, $a_page)
Constructor.
getParentNodeName()
Get parent node name.
confirmDeleteTrigger()
Confirm trigger deletion.
addNewArea()
Add new area.
updateTrigger()
Update trigger.
initAreaEditingForm($a_edit_property)
Init area editing form.
getImageMapTableHTML()
Get trigger table.
getEditorTitle()
Get editor title.
outputPostProcessing($a_output)
Output post processing.
getAdditionalPageXML()
Get additional page xml (to be overwritten)
saveArea()
Save new or updated map area.
TableGUI class for pc image map editor.
User interface class for page content map editor.
This class represents a text property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
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
static initjQueryUI()
Init jQuery UI (see included_components.txt for included components)
if(!is_array($argv)) $options