ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilPCDataTable. More...
Public Member Functions | |
init () | |
Init page content component. | |
setNode ($a_node) | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
getCellNode ($i, $j) | |
Get cell paragraph node of row $i and cell $j. | |
makeEmptyCell ($td_node) | |
Make cell empty. | |
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 | |
setNode (&$a_node) | |
Set xml node of page content. | |
& | 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 | |
setTDSpans ($a_colspans, $a_rowspans) | |
Set TDSpans. | |
fixHideAndSpans () | |
Fix Hide and Spans. | |
checkCellHidden ($colspans, $rowspans, $x, $y) | |
Check hidden status. | |
getAllCellClasses () | |
Get all cell classes. | |
getAllCellAlignments () | |
Get all cell alignments. | |
getAllCellSpans () | |
Get all cell spans. | |
getAllCellWidths () | |
Get all cell widhts. | |
setTDClass ($a_hier_id, $a_class, $a_pc_id="") | |
set class of table data cell | |
setTDAlignment ($a_hier_id, $a_class, $a_pc_id="") | |
set alignment 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. | |
setClass ($a_class) | |
Set Style Class of table. | |
getClass () | |
Get characteristic of section. | |
setTemplate ($a_template) | |
Set template. | |
getTemplate () | |
Get template. | |
setHeaderRows ($a_nr) | |
Set header rows. | |
getHeaderRows () | |
Get header rows. | |
setFooterRows ($a_nr) | |
Set footer rows. | |
getFooterRows () | |
Get footer rows. | |
setHeaderCols ($a_nr) | |
Set header cols. | |
getHeaderCols () | |
Get header cols. | |
setFooterCols ($a_nr) | |
Set footer cols. | |
getFooterCols () | |
Get footer cols. | |
getTableAttribute ($a_attr) | |
Get table tag attribute. | |
Public Member Functions inherited from ilPageContent | |
__construct ($a_pg_obj) | |
Constructor. | |
setPage ($a_val) | |
Set page. | |
getPage () | |
Get page. | |
getType () | |
Get type of page content. | |
& | getNode () |
Get xml node of page content. | |
getJavascriptFiles () | |
Get Javascript files. | |
getCssFiles () | |
Get css files. | |
setHierId ($a_hier_id) | |
Set hierarchical ID in xml structure. | |
getHierId () | |
Get hierarchical id. | |
lookupHierId () | |
Get hierarchical id from dom. | |
readHierId () | |
Read PC Id. | |
setPcId ($a_pcid) | |
Set PC Id. | |
getPCId () | |
Get PC Id. | |
readPCId () | |
Read PC Id. | |
writePCId ($a_pc_id) | |
Write pc id. | |
isGreaterHierId ($a, $b) | |
Check whether Hier ID $a is greater than Hier ID $b. | |
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) | |
modifyPageContentPostXsl ($a_output, $a_mode) | |
Modify page content after xsl. |
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 ilPCTable | |
static | getLangVars () |
Get lang vars needed for editing. | |
static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
Handle copied content. | |
Protected Member Functions inherited from ilPCTable | |
setTableAttribute ($a_attr, $a_value) | |
Set attribute of table tag. |
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 $path, $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 144 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::makeEmptyCell | ( | $td_node | ) |
Make cell empty.
Reimplemented from ilPCTable.
Definition at line 122 of file class.ilPCDataTable.php.
References ilPageContent\createPageContentNode(), and ilPCTable\getLanguage().
ilPCDataTable::setData | ( | $a_data | ) |
Set data of cells.
Definition at line 167 of file class.ilPCDataTable.php.
References $ok, $path, $res, $row, DOMXML_LOAD_PARSING, domxml_open_mem(), getCellNode(), xpath_eval(), and xpath_new_context().
ilPCDataTable::setNode | ( | $a_node | ) |
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.