ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
 
 $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
 $error
 
 $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 105 of file class.ilPCTableDataGUI.php.

References $_SESSION.

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

◆ deleteRow()

ilPCTableDataGUI::deleteRow ( )

delete a row

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

References $_SESSION.

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

◆ executeCommand()

ilPCTableDataGUI::executeCommand ( )

execute command

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

References $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  default:
43  $ret = $this->$cmd();
44  break;
45  }
46 
47  return $ret;
48  }
$ret
Definition: parser.php:6

◆ moveColLeft()

ilPCTableDataGUI::moveColLeft ( )

move list item up

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

References $_SESSION.

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

◆ moveColRight()

ilPCTableDataGUI::moveColRight ( )

move column right

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

References $_SESSION.

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

◆ moveRowDown()

ilPCTableDataGUI::moveRowDown ( )

move row down

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

References $_SESSION.

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

◆ moveRowUp()

ilPCTableDataGUI::moveRowUp ( )

move list item up

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

References $_SESSION.

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

◆ newColAfter()

ilPCTableDataGUI::newColAfter ( )

insert new col after cell

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

References $_SESSION.

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

◆ newColBefore()

ilPCTableDataGUI::newColBefore ( )

insert new col before cell

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

References $_SESSION.

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

◆ newRowAfter()

ilPCTableDataGUI::newRowAfter ( )

insert new row after cell

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

References $_SESSION.

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

◆ newRowBefore()

ilPCTableDataGUI::newRowBefore ( )

insert new row before cell

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

References $_SESSION.

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

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