5include_once(
"Services/Table/classes/class.ilTable2GUI.php");
 
    6include_once(
"Services/MediaObjects/classes/class.ilImageMapTableGUI.php");
 
   40        $this->ctrl = 
$DIC->ctrl();
 
   41        $this->lng = 
$DIC->language();
 
   42        $this->access = 
$DIC->access();
 
   44        $this->parent_node_name = $a_parent_node_name;
 
   45        $this->pc_media_object = $a_pc_media_object;
 
   46        parent::__construct($a_parent_obj, $a_parent_cmd, $a_pc_media_object->getMediaObject());
 
   55            $this->pc_media_object->dom,
 
   56            $this->pc_media_object->hier_id,
 
   58            $this->pc_media_object->getPcId(),
 
   59            $this->parent_node_name
 
   61        $areas = $std_alias_item->getMapAreas();
 
   63        foreach ($areas as $k => $a) {
 
   64            $areas[$k][
"title"] = $a[
"Link"][
"Title"];
 
   81        $this->tpl->setVariable(
 
   83            ilUtil::formCheckBox(
"", 
"area[]", 
$i)
 
   85        $this->tpl->setVariable(
"VAR_NAME", 
"name_" . 
$i);
 
   86        $this->tpl->setVariable(
"VAL_NAME", trim($a_set[
"Link"][
"Title"]));
 
   87        $this->tpl->setVariable(
"VAL_SHAPE", $a_set[
"Shape"]);
 
   89        $this->tpl->setVariable(
 
   92                $a_set[
"HighlightMode"],
 
   99        $this->tpl->setVariable(
 
  102                $a_set[
"HighlightClass"],
 
  104                $this->highl_classes,
 
  110        $this->tpl->setVariable(
 
  112            implode(explode(
",", $a_set[
"Coords"]), 
", ")
 
  114        switch ($a_set[
"Link"][
"LinkType"]) {
 
  116                $this->tpl->setVariable(
"VAL_LINK", $a_set[
"Link"][
"Href"]);
 
  120                $link_str = $this->parent_obj->getMapAreaLinkString(
 
  121                    $a_set[
"Link"][
"Target"],
 
  122                    $a_set[
"Link"][
"Type"],
 
  123                    $a_set[
"Link"][
"TargetFrame"]
 
  125                $this->tpl->setVariable(
"VAL_LINK", $link_str);
 
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for image map editor.
TableGUI class for pc image map editor.
__construct( $a_parent_obj, $a_parent_cmd, $a_pc_media_object, $a_parent_node_name)
Constructor.
fillRow($a_set)
Standard Version of Fill Row.
getItems()
Get items of current folder.
setData($a_data)
set table data @access public
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.