ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilPCTableDataGUI Class Reference

Class ilPCTableDataGUI. More...

+ Inheritance diagram for ilPCTableDataGUI:
+ Collaboration diagram for ilPCTableDataGUI:

Public Member Functions

 __construct (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="")
 Constructor public. More...
 
 executeCommand ()
 execute command More...
 
 newRowAfter ()
 insert new row after cell More...
 
 newRowBefore ()
 insert new row before cell More...
 
 deleteRow ()
 delete a row More...
 
 newColAfter ()
 insert new col after cell More...
 
 newColBefore ()
 insert new col before cell More...
 
 deleteCol ()
 delete column More...
 
 moveRowDown ()
 move row down More...
 
 moveRowUp ()
 move list item up More...
 
 moveColRight ()
 move column right More...
 
 moveColLeft ()
 move list item up More...
 
- Public Member Functions inherited from ilPageContentGUI
 __construct ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="")
 Constructor public. More...
 
 setContentObject ($a_val)
 Set content object. More...
 
 getContentObject ()
 Get content object. More...
 
 setPage ($a_val)
 Set page. More...
 
 getPage ()
 Get page. More...
 
 setPageConfig ($a_val)
 Set Page Config. More...
 
 getPageConfig ()
 Get Page Config. More...
 
 setStyleId ($a_styleid)
 Set Style Id. More...
 
 getStyleId ()
 Get Style Id. More...
 
 getStyle ()
 Get style object. More...
 
 setCharacteristics ($a_chars)
 Set Characteristics. More...
 
 getCharacteristics ()
 Get characteristics. More...
 
 getHierId ()
 get hierarchical id in dom object More...
 
 setHierId ($a_hier_id)
 get hierarchical id in dom object More...
 
 getBBMenu ($a_ta_name="par_content")
 Get the bb menu incl. More...
 
 delete ()
 delete content element More...
 
 moveAfter ()
 move content element after another element More...
 
 moveBefore ()
 move content element before another element More...
 
 splitPage ()
 split page to new page at specified position More...
 
 splitPageNext ()
 split page to next page at specified position More...
 
 displayValidationError ()
 display validation errors More...
 
 cancelCreate ()
 cancel creating page content More...
 
 cancelUpdate ()
 cancel update More...
 
 cancel ()
 Cancel. More...
 
 deactivate ()
 gui function set enabled if is not enabled and vice versa More...
 
 cut ()
 Cut single element. More...
 
 copy ()
 Copy single element. More...
 
 getTemplateOptions ($a_type)
 Get table templates. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPageContentGUI
static _getCommonBBButtons ()
 Get common bb buttons. More...
 
- Data Fields inherited from ilPageContentGUI
 $content_obj
 
 $ilias
 
 $tpl
 
 $lng
 
 $ctrl
 
 $pg_obj
 
 $hier_id
 
 $dom
 
 $updated
 
 $target_script
 
 $return_location
 
 $page_config = null
 
- Static Public Attributes inherited from ilPageContentGUI
static $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;"
 
- Protected Member Functions inherited from ilPageContentGUI
 getCharacteristicsOfCurrentStyle ($a_type)
 Get characteristics of current style. More...
 
- Protected Attributes inherited from ilPageContentGUI
 $log
 
- Static Protected Attributes inherited from ilPageContentGUI
static $common_bb_buttons
 

Detailed Description

Class ilPCTableDataGUI.

Handles user commands on table data elements (table cells)

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

Definition at line 18 of file class.ilPCTableDataGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilPCTableDataGUI::__construct ( $a_pg_obj,
$a_content_obj,
  $a_hier_id,
  $a_pc_id = "" 
)

Constructor public.

Definition at line 25 of file class.ilPCTableDataGUI.php.

26  {
27  parent::__construct($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
28  }

Member Function Documentation

◆ deleteCol()

ilPCTableDataGUI::deleteCol ( )

delete column

Definition at line 106 of file class.ilPCTableDataGUI.php.

References $_SESSION.

107  {
108  $this->content_obj->deleteCol();
109  $_SESSION["il_pg_error"] = $this->pg_obj->update();
110  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
111  }
$_SESSION["AccountId"]

◆ deleteRow()

ilPCTableDataGUI::deleteRow ( )

delete a row

Definition at line 75 of file class.ilPCTableDataGUI.php.

References $_SESSION.

76  {
77  $this->content_obj->deleteRow();
78  $_SESSION["il_pg_error"] = $this->pg_obj->update();
79  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
80  }
$_SESSION["AccountId"]

◆ executeCommand()

ilPCTableDataGUI::executeCommand ( )

execute command

Definition at line 33 of file class.ilPCTableDataGUI.php.

References $cmd, and $ret.

34  {
35  // get next class that processes or forwards current command
36  $next_class = $this->ctrl->getNextClass($this);
37 
38  // get current command
39  $cmd = $this->ctrl->getCmd();
40 
41  switch($next_class)
42  {
43  default:
44  $ret = $this->$cmd();
45  break;
46  }
47 
48  return $ret;
49  }
$cmd
Definition: sahs_server.php:35
$ret
Definition: parser.php:6

◆ moveColLeft()

ilPCTableDataGUI::moveColLeft ( )

move list item up

Definition at line 146 of file class.ilPCTableDataGUI.php.

References $_SESSION.

147  {
148  $this->content_obj->moveColLeft();
149  $_SESSION["il_pg_error"] = $this->pg_obj->update();
150  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
151  }
$_SESSION["AccountId"]

◆ moveColRight()

ilPCTableDataGUI::moveColRight ( )

move column right

Definition at line 136 of file class.ilPCTableDataGUI.php.

References $_SESSION.

137  {
138  $this->content_obj->moveColRight();
139  $_SESSION["il_pg_error"] = $this->pg_obj->update();
140  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
141  }
$_SESSION["AccountId"]

◆ moveRowDown()

ilPCTableDataGUI::moveRowDown ( )

move row down

Definition at line 116 of file class.ilPCTableDataGUI.php.

References $_SESSION.

117  {
118  $this->content_obj->moveRowDown();
119  $_SESSION["il_pg_error"] = $this->pg_obj->update();
120  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
121  }
$_SESSION["AccountId"]

◆ moveRowUp()

ilPCTableDataGUI::moveRowUp ( )

move list item up

Definition at line 126 of file class.ilPCTableDataGUI.php.

References $_SESSION.

127  {
128  $this->content_obj->moveRowUp();
129  $_SESSION["il_pg_error"] = $this->pg_obj->update();
130  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
131  }
$_SESSION["AccountId"]

◆ newColAfter()

ilPCTableDataGUI::newColAfter ( )

insert new col after cell

Definition at line 86 of file class.ilPCTableDataGUI.php.

References $_SESSION.

87  {
88  $this->content_obj->newColAfter();
89  $_SESSION["il_pg_error"] = $this->pg_obj->update();
90  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
91  }
$_SESSION["AccountId"]

◆ newColBefore()

ilPCTableDataGUI::newColBefore ( )

insert new col before cell

Definition at line 96 of file class.ilPCTableDataGUI.php.

References $_SESSION.

97  {
98  $this->content_obj->newColBefore();
99  $_SESSION["il_pg_error"] = $this->pg_obj->update();
100  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
101  }
$_SESSION["AccountId"]

◆ newRowAfter()

ilPCTableDataGUI::newRowAfter ( )

insert new row after cell

Definition at line 55 of file class.ilPCTableDataGUI.php.

References $_SESSION.

56  {
57  $this->content_obj->newRowAfter();
58  $_SESSION["il_pg_error"] = $this->pg_obj->update();
59  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
60  }
$_SESSION["AccountId"]

◆ newRowBefore()

ilPCTableDataGUI::newRowBefore ( )

insert new row before cell

Definition at line 65 of file class.ilPCTableDataGUI.php.

References $_SESSION.

66  {
67  $this->content_obj->newRowBefore();
68  $_SESSION["il_pg_error"] = $this->pg_obj->update();
69  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
70  }
$_SESSION["AccountId"]

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