コード例 #1
0
 /**
  * Constructor
  */
 function __construct($a_parent_obj, $a_parent_cmd, $a_pc_media_object, $a_parent_node_name)
 {
     global $ilCtrl, $lng, $ilAccess, $lng;
     $this->parent_node_name = $a_parent_node_name;
     $this->pc_media_object = $a_pc_media_object;
     parent::__construct($a_parent_obj, $a_parent_cmd, $a_pc_media_object->getMediaObject());
 }
コード例 #2
0
 /**
  * Constructor
  */
 function __construct($a_parent_obj, $a_parent_cmd, $a_pc_media_object, $a_parent_node_name)
 {
     global $ilCtrl, $lng, $ilAccess, $lng;
     $this->setId("cont_iim_tr");
     $this->parent_node_name = $a_parent_node_name;
     $this->pc_media_object = $a_pc_media_object;
     $this->mob = $this->pc_media_object->getMediaObject();
     $this->areas = array();
     foreach ($this->pc_media_object->getStandardAliasItem()->getMapAreas() as $a) {
         $this->area[$a["Id"]] = $a;
     }
     $this->ov_files = $this->mob->getFilesOfDirectory("overlays");
     $this->ov_options = array("" => $lng->txt("please_select"));
     foreach ($this->ov_files as $of) {
         $this->ov_options[$of] = $of;
     }
     $this->popups = $this->pc_media_object->getPopups();
     $this->pop_options = array("" => $lng->txt("please_select"));
     foreach ($this->popups as $k => $p) {
         $this->pop_options[$p["nr"]] = $p["title"];
     }
     parent::__construct($a_parent_obj, $a_parent_cmd, $a_pc_media_object->getMediaObject());
     $this->setRowTemplate("tpl.iim_trigger_row.html", "Services/COPage");
 }
コード例 #3
0
 /**
  * Get table HTML
  */
 function getImageMapTableHTML()
 {
     include_once "./Services/MediaObjects/classes/class.ilImageMapTableGUI.php";
     $image_map_table = new ilImageMapTableGUI($this, "editMapAreas", $this->media_object);
     return $image_map_table->getHTML();
 }