ILIAS  Release_3_10_x_branch Revision 61812
 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 ilTableGUI
 $title
 $icon
 $icon_alt
 $help_page
 $help_icon
 $help_icon_alt
 $header_names
 $header_vars
 $linkbar_vars
 $data
 $column_count
 $column_width
 $max_count
 $limit
 $max_limit = false
 $offset
 $order_column
 $order_direction
 $footer_style
 $footer_previous
 $footer_next
 $lang_support = true
 $global_tpl
 $form_name
 $select_all_checkbox
 $action_buttons
 $prefix
 $base = ""
 $enabled
 $styles
- Protected Attributes inherited from ilTable2GUI
 $close_command = ""

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 65 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(), and ilTable2GUI\setData().

{
$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();
$this->setData($areas);
}

+ Here is the call graph for this function:


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