ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilPCGridCell Class Reference

Cell of a grid. More...

+ Inheritance diagram for ilPCGridCell:
+ Collaboration diagram for ilPCGridCell:

Public Member Functions

 init ()
 Init page content component. More...
 
 deleteCell ()
 delete tab More...
 
 moveCellRight ()
 Move cell right. More...
 
 moveCellLeft ()
 Move cell left. More...
 
- Public Member Functions inherited from ilPageContent
 __construct ($a_pg_obj)
 Constructor. More...
 
 setPage ($a_val)
 Set page. More...
 
 getPage ()
 Get page. More...
 
 init ()
 Init object. More...
 
 getType ()
 Get type of page content. More...
 
 setNode ($a_node)
 Set xml node of page content. More...
 
getNode ()
 Get xml node of page content. More...
 
 getJavascriptFiles ($a_mode)
 Get Javascript files. More...
 
 getCssFiles ($a_mode)
 Get css files. More...
 
 getOnloadCode ($a_mode)
 Get on load code. More...
 
 setHierId ($a_hier_id)
 Set hierarchical ID in xml structure. More...
 
 getHierId ()
 Get hierarchical id. More...
 
 lookupHierId ()
 Get hierarchical id from dom. More...
 
 readHierId ()
 Read PC Id. More...
 
 setPcId ($a_pcid)
 Set PC Id. More...
 
 getPCId ()
 Get PC Id. More...
 
 setFileDownloadLink ($a_download_link)
 Set file download link. More...
 
 getFileDownloadLink ()
 Get file download link. More...
 
 setFullscreenLink ($a_fullscreen_link)
 Set fullscreen link. More...
 
 getFullscreenLink ()
 Get fullscreen link. More...
 
 setSourcecodeDownloadScript ($script_name)
 Set sourcecode download script. More...
 
 getSourcecodeDownloadScript ()
 Get sourcecode download script. More...
 
 readPCId ()
 Read PC Id. More...
 
 writePCId ($a_pc_id)
 Write pc id. More...
 
 setEnabled ($value)
 Set Enabled value for page content component. More...
 
 enable ()
 Enable page content. More...
 
 disable ()
 Disable page content. More...
 
 isEnabled ()
 Check whether page content is enabled. More...
 
 createPageContentNode ($a_set_this_node=true)
 Create page content node (always use this method first when adding a new element) More...
 
 modifyPageContentPostXsl ($a_output, $a_mode)
 Modify page content after xsl. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPageContent
static incEdId ($ed_id)
 Increases an hierarchical editing id at lowest level (last number) More...
 
static decEdId ($ed_id)
 Decreases an hierarchical editing id at lowest level (last number) More...
 
static haveSameContainer ($ed_id1, $ed_id2)
 Check, if two ids are in same container. More...
 
static sortHierIds ($a_array)
 Sort an array of Hier IDS in ascending order. More...
 
static isGreaterHierId ($a, $b)
 Check whether Hier ID $a is greater than Hier ID $b. More...
 
static getLangVars ()
 Get lang vars needed for editing. More...
 
static handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false)
 Handle copied content. More...
 
static afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation)
 After page has been updated (or created) More...
 
static beforePageDelete ($a_page)
 Before page is being deleted. More...
 
static afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr)
 After page history entry has been created. More...
 
- Data Fields inherited from ilPageContent
 $hier_id
 
 $node
 
 $dom
 
 $page_lang
 
- Protected Member Functions inherited from ilPageContent
 setType ($a_type)
 Set Type. More...
 
- Protected Attributes inherited from ilPageContent
 $file_download_link
 
 $fullscreen_link
 
 $sourcecode_download_script
 
 $log
 

Detailed Description

Cell of a grid.

Author
Alex Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 14 of file class.ilPCGridCell.php.

Member Function Documentation

◆ deleteCell()

ilPCGridCell::deleteCell ( )

delete tab

Definition at line 27 of file class.ilPCGridCell.php.

References ilPageContent\getNode().

28  {
29  $grid_cell = $this->getNode();
30  $grid_cell->unlink($grid_cell);
31  }
& getNode()
Get xml node of page content.
+ Here is the call graph for this function:

◆ init()

ilPCGridCell::init ( )

Init page content component.

Definition at line 19 of file class.ilPCGridCell.php.

References ilPageContent\setType().

20  {
21  $this->setType("gcell");
22  }
setType($a_type)
Set Type.
+ Here is the call graph for this function:

◆ moveCellLeft()

ilPCGridCell::moveCellLeft ( )

Move cell left.

Definition at line 48 of file class.ilPCGridCell.php.

References ilPageContent\getNode().

49  {
50  $grid_cell = $this->getNode();
51  $prev = $grid_cell->previous_sibling();
52  $grid_cell_copy = $grid_cell->clone_node(true);
53  $prev->insert_before($grid_cell_copy, $prev);
54  $grid_cell->unlink($grid_cell);
55  }
& getNode()
Get xml node of page content.
+ Here is the call graph for this function:

◆ moveCellRight()

ilPCGridCell::moveCellRight ( )

Move cell right.

Definition at line 36 of file class.ilPCGridCell.php.

References ilPageContent\getNode().

37  {
38  $grid_cell = $this->getNode();
39  $next = $grid_cell->next_sibling();
40  $next_copy = $next->clone_node(true);
41  $grid_cell->insert_before($next_copy, $grid_cell);
42  $next->unlink($next);
43  }
& getNode()
Get xml node of page content.
+ Here is the call graph for this function:

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