ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilPCDataTable. More...
Public Member Functions | |
init () | |
Init page content component. | |
setNode (&$a_node) | |
Set xml node of page content. | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
getCellNode ($i, $j) | |
Get cell paragraph node of row $i and cell $j. | |
getCellText ($i, $j) | |
Get cell text of row $i and cell $j. | |
setData ($a_data) | |
Set data of cells. | |
Public Member Functions inherited from ilPCTable | |
& | addRow () |
& | addCell (&$aRow, $a_data="", $a_lang="") |
addRows ($a_nr_rows, $a_nr_cols) | |
add rows to table | |
importSpreadsheet ($a_lang, $a_data) | |
import from table | |
getLanguage () | |
get table language | |
setLanguage ($a_lang) | |
set table language | |
getWidth () | |
get table width | |
setWidth ($a_width) | |
set table width | |
getBorder () | |
get table border width | |
setBorder ($a_border) | |
set table border | |
getCellSpacing () | |
get table cell spacing | |
setCellSpacing ($a_spacing) | |
set table cell spacing | |
getCellPadding () | |
get table cell padding | |
setCellPadding ($a_padding) | |
set table cell padding | |
setHorizontalAlign ($a_halign) | |
set horizontal align | |
getHorizontalAlign () | |
get table cell padding | |
setTDWidth ($a_hier_id, $a_width, $a_pc_id="") | |
set width of table data cell | |
setTDClass ($a_hier_id, $a_class, $a_pc_id="") | |
set class of table data cell | |
getCaption () | |
get caption | |
getCaptionAlign () | |
get caption alignment (Top | Bottom) | |
setCaption ($a_content, $a_align) | |
set table caption | |
importTableAttributes (&$node) | |
importCellAttributes (&$node, &$par) | |
importRow ($lng, &$node) | |
importCell ($lng, &$cellNode, &$aRow) | |
extractText (&$node) | |
importHtml ($lng, $htmlTable) | |
setFirstRowStyle ($a_class) | |
Set first row td style. | |
Public Member Functions inherited from ilPageContent | |
__construct ($a_dom) | |
Constructor. | |
getType () | |
Get type of page content. | |
& | getNode () |
Get xml node of page content. | |
setHierId ($a_hier_id) | |
Set hierarchical ID in xml structure. | |
getHierId () | |
Get hierarchical id. | |
readHierId () | |
Read PC Id. | |
setPcId ($a_pcid) | |
Set PC Id. | |
getPCId () | |
Get PC Id. | |
readPCId () | |
Read PC Id. | |
setEnabled ($value) | |
Set Enabled value for page content component. | |
enable () | |
Enable page content. | |
disable () | |
Disable page content. | |
isEnabled () | |
Check whether page content is enabled. | |
createPageContentNode ($a_set_this_node=true) | |
Create page content node (always use this method first when adding a new element) |
Data Fields | |
$dom | |
$tab_node | |
Data Fields inherited from ilPCTable | |
$dom | |
$tab_node | |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom |
Additional Inherited Members | |
Static Public Member Functions inherited from ilPageContent | |
static | incEdId ($ed_id) |
Increases an hierarchical editing id at lowest level (last number) | |
static | decEdId ($ed_id) |
Decreases an hierarchical editing id at lowest level (last number) | |
static | haveSameContainer ($ed_id1, $ed_id2) |
Check, if two ids are in same container. | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. |
Class ilPCDataTable.
Data table content object (see ILIAS DTD). This type of table can only hold one paragraph content item per cell.
Definition at line 38 of file class.ilPCDataTable.php.
ilPCDataTable::create | ( | & | $a_pg_obj, |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Reimplemented from ilPCTable.
Definition at line 57 of file class.ilPCDataTable.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
ilPCDataTable::getCellNode | ( | $i, | |
$j | |||
) |
Get cell paragraph node of row $i and cell $j.
Definition at line 70 of file class.ilPCDataTable.php.
References $res, ilPageContent\createPageContentNode(), ilPCTable\getLanguage(), xpath_eval(), and xpath_new_context().
Referenced by getCellText(), and setData().
ilPCDataTable::getCellText | ( | $i, | |
$j | |||
) |
Get cell text of row $i and cell $j.
Definition at line 120 of file class.ilPCDataTable.php.
References getCellNode().
ilPCDataTable::init | ( | ) |
Init page content component.
Reimplemented from ilPCTable.
Definition at line 46 of file class.ilPCDataTable.php.
References ilPageContent\setType().
ilPCDataTable::setData | ( | $a_data | ) |
Set data of cells.
Definition at line 143 of file class.ilPCDataTable.php.
References $ok, $res, domxml_open_mem(), getCellNode(), xpath_eval(), and xpath_new_context().
ilPCDataTable::setNode | ( | & | $a_node | ) |
Set xml node of page content.
object | $a_node | node object |
Reimplemented from ilPCTable.
Definition at line 51 of file class.ilPCDataTable.php.
ilPCDataTable::$dom |
Definition at line 40 of file class.ilPCDataTable.php.
ilPCDataTable::$tab_node |
Definition at line 41 of file class.ilPCDataTable.php.