38         $this->
ctrl = $DIC->ctrl();
    39         $this->
lng = $DIC->language();
    40         $this->
access = $DIC->access();
    41         $ilCtrl = $DIC->ctrl();
    44         $this->media_object = $a_media_object;
    52         $this->
setRowTemplate(
"tpl.image_map_table_row.html", 
"Services/MediaObjects");
    66         $this->
addColumn($this->
lng->txt(
"cont_name"), 
"title", 
"");
    68         $this->
addColumn($this->
lng->txt(
"cont_coords"), 
"", 
"");
    69         $this->
addColumn($this->
lng->txt(
"cont_highlight_mode"));
    70         $this->
addColumn($this->
lng->txt(
"cont_highlight_class"));
    87         if (count($data) > 0) {
    94         $st_item = $this->media_object->getMediaItem(
"Standard");
    98         for ($i = 1; $i <= $max; $i++) {
    99             $area = 
new ilMapArea($st_item->getId(), $i);
   100             $areas[] = array(
"nr" => $i, 
"area" => $area, 
"title" => $area->getTitle());
   106     protected function fillRow(array $a_set): void
   108         $area = $a_set[
"area"];
   110         $this->tpl->setVariable(
   114         $this->tpl->setVariable(
"VAR_NAME", 
"name_" . $i);
   116         $this->tpl->setVariable(
"VAL_SHAPE", $area->getShape());
   118         $this->tpl->setVariable(
   121                 $area->getHighlightMode(),
   128         $this->tpl->setVariable(
   131                 $area->getHighlightClass(),
   139         $this->tpl->setVariable(
   141             implode(
", ", explode(
",", $area->getCoords()))
   143         switch ($area->getLinkType()) {
   145                 $this->tpl->setVariable(
"VAL_LINK", $area->getHRef());
   149                 $link_str = $this->parent_obj->getMapAreaLinkString(
   152                     $area->getTargetFrame()
   154                 $this->tpl->setVariable(
"VAL_LINK", $link_str);
 
ilObjMediaObject $media_object
 
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...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
static getAllHighlightClasses()
 
setEnableTitle(bool $a_enabletitle)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
static _getMaxNr(int $a_item_id)
get maximum nr of media item (static) 
 
__construct(object $a_parent_obj, string $a_parent_cmd, ilObjMediaObject $a_media_object)
 
static getAllHighlightModes()
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
addMultiCommand(string $a_cmd, string $a_text)
 
setEnableHeader(bool $a_enableheader)