ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPCImageMapTableGUI Class Reference

TableGUI class for pc image map editor. More...

+ Inheritance diagram for ilPCImageMapTableGUI:
+ Collaboration diagram for ilPCImageMapTableGUI:

Public Member Functions

 __construct ($a_parent_obj, $a_parent_cmd, $a_pc_media_object)
 Constructor.
 getItems ()
 Get items of current folder.

Protected Member Functions

 fillRow ($a_set)
 Standard Version of Fill Row.

Additional Inherited Members

- Data Fields inherited from ilTable2GUI
const FILTER_TEXT = 1
const FILTER_SELECT = 2
const FILTER_DATE = 3
const FILTER_LANGUAGE = 4
const FILTER_NUMBER_RANGE = 5
const FILTER_DATE_RANGE = 6
const FILTER_DURATION_RANGE = 7
const EXPORT_EXCEL = 1
const EXPORT_CSV = 2
- Protected Attributes inherited from ilTable2GUI
 $close_command = ""
 $top_anchor = "il_table_top"
 $filters = array()
 $optional_filters = array()
 $filter_cmd = 'applyFilter'
 $reset_cmd = 'resetFilter'
 $filter_cols = 4
 $ext_sort = false
 $ext_seg = false
 $context = ""
 $mi_sel_buttons = null
 $disable_filter_hiding = false
 $selected_filter = false
 $top_commands = true
 $selectable_columns = array()
 $selected_column = array()
 $show_templates = false
 $show_rows_selector = false
 $nav_determined = false
 $limit_determined = false
 $filters_determined = false
 $columns_determined = false
 $export_formats
 $export_mode
 $print_mode

Detailed Description

TableGUI class for pc image map editor.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 35 of file class.ilPCImageMapTableGUI.php.

Constructor & Destructor Documentation

ilPCImageMapTableGUI::__construct (   $a_parent_obj,
  $a_parent_cmd,
  $a_pc_media_object 
)

Constructor.

Reimplemented from ilImageMapTableGUI.

Definition at line 41 of file class.ilPCImageMapTableGUI.php.

References $ilCtrl, and $lng.

{
global $ilCtrl, $lng, $ilAccess, $lng;
$this->pc_media_object = $a_pc_media_object;
parent::__construct($a_parent_obj, $a_parent_cmd, $a_pc_media_object->getMediaObject());
}

Member Function Documentation

ilPCImageMapTableGUI::fillRow (   $a_set)
protected

Standard Version of Fill Row.

Most likely to be overwritten by derived class.

Reimplemented from ilImageMapTableGUI.

Definition at line 70 of file class.ilPCImageMapTableGUI.php.

References $ilCtrl, and $lng.

{
global $lng, $ilCtrl, $ilAccess;
$i = $a_set["Nr"];
$this->tpl->setVariable("CHECKBOX",
ilUtil::formCheckBox("", "area[]", $i));
$this->tpl->setVariable("VAR_NAME", "name_".$i);
$this->tpl->setVariable("VAL_NAME", $a_set["Link"]["Title"]);
$this->tpl->setVariable("VAL_SHAPE", $a_set["Shape"]);
$this->tpl->setVariable("VAL_COORDS",
implode(explode(",", $a_set["Coords"]), ", "));
switch ($a_set["Link"]["LinkType"])
{
case "ExtLink":
$this->tpl->setVariable("VAL_LINK", $a_set["Link"]["Href"]);
break;
case "IntLink":
$link_str = $this->parent_obj->getMapAreaLinkString($a_set["Link"]["Target"],
$a_set["Link"]["Type"], $a_set["Link"]["TargetFrame"]);
$this->tpl->setVariable("VAL_LINK", $link_str);
break;
}
}
ilPCImageMapTableGUI::getItems ( )

Get items of current folder.

Reimplemented from ilImageMapTableGUI.

Definition at line 52 of file class.ilPCImageMapTableGUI.php.

References ilMediaAliasItem\getMapAreas(), ilTable2GUI\setData(), and ilUtil\sortArray().

{
$std_alias_item = new ilMediaAliasItem($this->pc_media_object->dom,
$this->pc_media_object->hier_id, "Standard", $this->pc_media_object->getPcId());
$areas = $std_alias_item->getMapAreas();
foreach ($areas as $k => $a)
{
$areas[$k]["title"] = $a["Link"]["Title"];
}
$areas = ilUtil::sortArray($areas, "title", "asc", false, true);
$this->setData($areas);
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: