|
ILIAS
Release_4_0_x_branch Revision 61816
|
Inheritance diagram for ilPCTable:
Collaboration diagram for ilPCTable: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="") | |
| & | 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. | |
| makeEmptyCell ($td_node) | |
| Make cell empty. | |
| checkCellHidden ($colspans, $rowspans, $x, $y) | |
| Check hidden status. | |
| getAllCellClasses () | |
| Get all cell classes. | |
| 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 | |
| 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_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. | |
| lookupHierId () | |
| Get hierarchical id from dom. | |
| readHierId () | |
| Read PC Id. | |
| setPcId ($a_pcid) | |
| Set PC Id. | |
| getPCId () | |
| Get PC Id. | |
| readPCId () | |
| Read 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) | |
Data Fields | |
| $dom | |
| $tab_node | |
Data Fields inherited from ilPageContent | |
| $hier_id | |
| $node | |
| $dom | |
Protected Member Functions | |
| setTableAttribute ($a_attr, $a_value) | |
| Set attribute of table tag. | |
Protected Member Functions inherited from ilPageContent | |
| setType ($a_type) | |
| Set Type. | |
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. | |
| static | sortHierIds ($a_array) |
| Sort an array of Hier IDS in ascending order. | |
Class ilPCTable.
Table content object (see ILIAS DTD)
Definition at line 36 of file class.ilPCTable.php.
| & ilPCTable::addCell | ( | & | $aRow, |
$a_data = "", |
|||
$a_lang = "" |
|||
| ) |
Definition at line 71 of file class.ilPCTable.php.
References ilPageContent\createPageContentNode().
Referenced by addRows(), importCell(), and importSpreadsheet().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilPCTable::addRow | ( | ) |
Definition at line 65 of file class.ilPCTable.php.
Referenced by addRows(), importRow(), and importSpreadsheet().
Here is the caller graph for this function:| ilPCTable::addRows | ( | $a_nr_rows, | |
| $a_nr_cols | |||
| ) |
| ilPCTable::checkCellHidden | ( | $colspans, | |
| $rowspans, | |||
| $x, | |||
| $y | |||
| ) |
Check hidden status.
Definition at line 448 of file class.ilPCTable.php.
Referenced by fixHideAndSpans().
Here is the caller graph for this function:| ilPCTable::create | ( | & | $a_pg_obj, |
| $a_hier_id, | |||
$a_pc_id = "" |
|||
| ) |
Reimplemented in ilPCDataTable.
Definition at line 56 of file class.ilPCTable.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
Here is the call graph for this function:| ilPCTable::extractText | ( | & | $node | ) |
Definition at line 737 of file class.ilPCTable.php.
References ilPageContent\$node.
Referenced by importCellAttributes(), and importTableAttributes().
Here is the caller graph for this function:| ilPCTable::fixHideAndSpans | ( | ) |
Fix Hide and Spans.
Reduces col and rowspans that are to high. Sets Hide attribute for all cells that are hidden due to other span attributes. Sets hidden cells to empty.
Definition at line 339 of file class.ilPCTable.php.
References $row, $x, $y, checkCellHidden(), and makeEmptyCell().
Referenced by setTDSpans().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::getAllCellClasses | ( | ) |
Get all cell classes.
Definition at line 472 of file class.ilPCTable.php.
References $row.
| ilPCTable::getAllCellSpans | ( | ) |
Get all cell spans.
Definition at line 501 of file class.ilPCTable.php.
| ilPCTable::getAllCellWidths | ( | ) |
Get all cell widhts.
Definition at line 543 of file class.ilPCTable.php.
References $row.
| ilPCTable::getBorder | ( | ) |
get table border width
Definition at line 185 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getCaption | ( | ) |
get caption
Definition at line 600 of file class.ilPCTable.php.
References ilPageContent\$hier_id, $res, ilPageContent\getHierId(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPCTable::getCaptionAlign | ( | ) |
get caption alignment (Top | Bottom)
Definition at line 619 of file class.ilPCTable.php.
References ilPageContent\$hier_id, $res, ilPageContent\getHierId(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPCTable::getCellPadding | ( | ) |
get table cell padding
Definition at line 221 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getCellSpacing | ( | ) |
get table cell spacing
Definition at line 203 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getClass | ( | ) |
Get characteristic of section.
Definition at line 845 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getFooterCols | ( | ) |
Get footer cols.
Definition at line 945 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getFooterRows | ( | ) |
Get footer rows.
Definition at line 905 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getHeaderCols | ( | ) |
Get header cols.
Definition at line 925 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getHeaderRows | ( | ) |
Get header rows.
Definition at line 885 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getHorizontalAlign | ( | ) |
get table cell padding
Definition at line 247 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getLanguage | ( | ) |
get table language
Definition at line 146 of file class.ilPCTable.php.
References getTableAttribute().
Referenced by ilPCDataTable\getCellNode(), and ilPCDataTable\makeEmptyCell().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::getTableAttribute | ( | $a_attr | ) |
Get table tag attribute.
Definition at line 976 of file class.ilPCTable.php.
Referenced by getBorder(), getCellPadding(), getCellSpacing(), getClass(), getFooterCols(), getFooterRows(), getHeaderCols(), getHeaderRows(), getHorizontalAlign(), getLanguage(), getTemplate(), and getWidth().
Here is the caller graph for this function:| ilPCTable::getTemplate | ( | ) |
Get template.
Definition at line 865 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getWidth | ( | ) |
get table width
Definition at line 167 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::importCell | ( | $lng, | |
| & | $cellNode, | ||
| & | $aRow | ||
| ) |
Definition at line 725 of file class.ilPCTable.php.
References $lng, addCell(), and importCellAttributes().
Referenced by importRow().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::importCellAttributes | ( | & | $node, |
| & | $par | ||
| ) |
Definition at line 684 of file class.ilPCTable.php.
References $n, ilPageContent\$node, and extractText().
Referenced by importCell().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::importHtml | ( | $lng, | |
| $htmlTable | |||
| ) |
Definition at line 748 of file class.ilPCTable.php.
References $_SESSION, $dom, $error, $lng, $n, ilPageContent\$node, $res, DOMXML_LOAD_PARSING, domxml_open_mem(), importRow(), importTableAttributes(), ilUtil\stripSlashes(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPCTable::importRow | ( | $lng, | |
| & | $node | ||
| ) |
Definition at line 706 of file class.ilPCTable.php.
References $lng, $n, ilPageContent\$node, addRow(), and importCell().
Referenced by importHtml().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::importSpreadsheet | ( | $a_lang, | |
| $a_data | |||
| ) |
import from table
Definition at line 109 of file class.ilPCTable.php.
References $data, $row, addCell(), and addRow().
Here is the call graph for this function:| ilPCTable::importTableAttributes | ( | & | $node | ) |
Definition at line 652 of file class.ilPCTable.php.
References $n, ilPageContent\$node, extractText(), setBorder(), setCellPadding(), setCellSpacing(), setHorizontalAlign(), and setWidth().
Referenced by importHtml().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Reimplemented in ilPCDataTable.
Definition at line 45 of file class.ilPCTable.php.
References ilPageContent\setType().
Here is the call graph for this function:| ilPCTable::makeEmptyCell | ( | $td_node | ) |
Make cell empty.
Reimplemented in ilPCDataTable.
Definition at line 435 of file class.ilPCTable.php.
Referenced by fixHideAndSpans().
Here is the caller graph for this function:| ilPCTable::setBorder | ( | $a_border | ) |
set table border
| string | $a_border | table border |
Definition at line 195 of file class.ilPCTable.php.
References setTableAttribute().
Referenced by importTableAttributes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::setCaption | ( | $a_content, | |
| $a_align | |||
| ) |
set table caption
Definition at line 637 of file class.ilPCTable.php.
References ilDOMUtil\deleteAllChildsByName(), and ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilPCTable::setCellPadding | ( | $a_padding | ) |
set table cell padding
| string | $a_padding | table cell padding |
Definition at line 231 of file class.ilPCTable.php.
References setTableAttribute().
Referenced by importTableAttributes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::setCellSpacing | ( | $a_spacing | ) |
set table cell spacing
| string | $a_spacing | table cell spacing |
Definition at line 213 of file class.ilPCTable.php.
References setTableAttribute().
Referenced by importTableAttributes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::setClass | ( | $a_class | ) |
Set Style Class of table.
| string | $a_class | class |
Definition at line 835 of file class.ilPCTable.php.
References setTableAttribute().
Here is the call graph for this function:| ilPCTable::setFirstRowStyle | ( | $a_class | ) |
Set first row td style.
Definition at line 810 of file class.ilPCTable.php.
| ilPCTable::setFooterCols | ( | $a_nr | ) |
Set footer cols.
| string | number of footer cols |
Definition at line 935 of file class.ilPCTable.php.
References setTableAttribute().
Here is the call graph for this function:| ilPCTable::setFooterRows | ( | $a_nr | ) |
Set footer rows.
| string | number of footer rows |
Definition at line 895 of file class.ilPCTable.php.
References setTableAttribute().
Here is the call graph for this function:| ilPCTable::setHeaderCols | ( | $a_nr | ) |
Set header cols.
| string | number of header cols |
Definition at line 915 of file class.ilPCTable.php.
References setTableAttribute().
Here is the call graph for this function:| ilPCTable::setHeaderRows | ( | $a_nr | ) |
Set header rows.
| string | number of header rows |
Definition at line 875 of file class.ilPCTable.php.
References setTableAttribute().
Here is the call graph for this function:| ilPCTable::setHorizontalAlign | ( | $a_halign | ) |
set horizontal align
Definition at line 239 of file class.ilPCTable.php.
Referenced by importTableAttributes().
Here is the caller graph for this function:| ilPCTable::setLanguage | ( | $a_lang | ) |
set table language
| string | $a_lang | language code |
Definition at line 156 of file class.ilPCTable.php.
References setTableAttribute().
Here is the call graph for this function:| ilPCTable::setNode | ( | & | $a_node | ) |
Set xml node of page content.
| object | $a_node | node object |
Reimplemented from ilPageContent.
Reimplemented in ilPCDataTable.
Definition at line 50 of file class.ilPCTable.php.
|
protected |
Set attribute of table tag.
| string | attribute name |
| string | attribute value |
Definition at line 956 of file class.ilPCTable.php.
Referenced by setBorder(), setCellPadding(), setCellSpacing(), setClass(), setFooterCols(), setFooterRows(), setHeaderCols(), setHeaderRows(), setLanguage(), setTemplate(), and setWidth().
Here is the caller graph for this function:| ilPCTable::setTDClass | ( | $a_hier_id, | |
| $a_class, | |||
$a_pc_id = "" |
|||
| ) |
set class of table data cell
Definition at line 569 of file class.ilPCTable.php.
References $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPCTable::setTDSpans | ( | $a_colspans, | |
| $a_rowspans | |||
| ) |
Set TDSpans.
Definition at line 288 of file class.ilPCTable.php.
References $row, $x, $y, and fixHideAndSpans().
Here is the call graph for this function:| ilPCTable::setTDWidth | ( | $a_hier_id, | |
| $a_width, | |||
$a_pc_id = "" |
|||
| ) |
set width of table data cell
Definition at line 255 of file class.ilPCTable.php.
References $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPCTable::setTemplate | ( | $a_template | ) |
Set template.
| string | $a_template | template |
Definition at line 855 of file class.ilPCTable.php.
References setTableAttribute().
Here is the call graph for this function:| ilPCTable::setWidth | ( | $a_width | ) |
set table width
| string | $a_width | table width |
Definition at line 177 of file class.ilPCTable.php.
References setTableAttribute().
Referenced by importTableAttributes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::$dom |
Definition at line 38 of file class.ilPCTable.php.
Referenced by importHtml().
| ilPCTable::$tab_node |
Definition at line 39 of file class.ilPCTable.php.