5include_once(
"Services/Table/classes/class.ilTable2GUI.php");
 
   31    public function __construct($a_parent_obj, $a_parent_cmd, $a_media_object)
 
   35        $this->ctrl = 
$DIC->ctrl();
 
   36        $this->lng = 
$DIC->language();
 
   37        $this->access = 
$DIC->access();
 
   40        $ilAccess = 
$DIC->access();
 
   43        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   44        $this->media_object = $a_media_object;
 
   46        include_once(
"./Services/MediaObjects/classes/class.ilMapArea.php");
 
   53        $this->
setRowTemplate(
"tpl.image_map_table_row.html", 
"Services/MediaObjects");
 
   70        $this->
addColumn($this->lng->txt(
"cont_name"), 
"title", 
"");
 
   71        $this->
addColumn($this->lng->txt(
"cont_shape"), 
"", 
"");
 
   72        $this->
addColumn($this->lng->txt(
"cont_coords"), 
"", 
"");
 
   73        $this->
addColumn($this->lng->txt(
"cont_highlight_mode"));
 
   74        $this->
addColumn($this->lng->txt(
"cont_highlight_class"));
 
   75        $this->
addColumn($this->lng->txt(
"cont_link"), 
"", 
"");
 
   88        $this->
addMultiCommand(
"editShapeWholePicture", 
$lng->txt(
"cont_edit_shape_whole_picture"));
 
   94        if (count(
$data) > 0) {
 
  105        $st_item = $this->media_object->getMediaItem(
"Standard");
 
  109        include_once(
"./Services/MediaObjects/classes/class.ilMapArea.php");
 
  110        for (
$i = 1; 
$i <= $max; 
$i++) {
 
  112            $areas[] = array(
"nr" => 
$i, 
"area" => $area, 
"title" => $area->getTitle());
 
  128        $area = $a_set[
"area"];
 
  130        $this->tpl->setVariable(
 
  132            ilUtil::formCheckBox(
"", 
"area[]", 
$i)
 
  134        $this->tpl->setVariable(
"VAR_NAME", 
"name_" . 
$i);
 
  136        $this->tpl->setVariable(
"VAL_SHAPE", $area->getShape());
 
  138        $this->tpl->setVariable(
 
  141                $area->getHighlightMode(),
 
  148        $this->tpl->setVariable(
 
  151                $area->getHighlightClass(),
 
  153                $this->highl_classes,
 
  159        $this->tpl->setVariable(
 
  161            implode(explode(
",", $area->getCoords()), 
", ")
 
  163        switch ($area->getLinkType()) {
 
  165                $this->tpl->setVariable(
"VAL_LINK", $area->getHRef());
 
  169                $link_str = $this->parent_obj->getMapAreaLinkString(
 
  172                    $area->getTargetFrame()
 
  174                $this->tpl->setVariable(
"VAL_LINK", $link_str);
 
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for image map editor.
initActions()
Init actions.
__construct($a_parent_obj, $a_parent_cmd, $a_media_object)
Constructor.
getItems()
Get items of current folder.
fillRow($a_set)
Standard Version of Fill Row.
initColumns()
Init columns.
static getAllHighlightClasses()
Get all highlight classes.
static _getMaxNr($a_item_id)
get maximum nr of media item (static)
static getAllHighlightModes()
Get all highlight modes.
setEnableHeader($a_enableheader)
Set Enable Header.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
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.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public