|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Inheritance diagram for ilPCTable:
Collaboration diagram for ilPCTable:Public Member Functions | |
| init () | |
| Init page content component. More... | |
| setNode ($a_node) | |
| Set xml node of page content. More... | |
| 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 More... | |
| importSpreadsheet ($a_lang, $a_data) | |
| import from table More... | |
| getLanguage () | |
| get table language More... | |
| setLanguage ($a_lang) | |
| set table language More... | |
| getWidth () | |
| get table width More... | |
| setWidth ($a_width) | |
| set table width More... | |
| getBorder () | |
| get table border width More... | |
| setBorder ($a_border) | |
| set table border More... | |
| getCellSpacing () | |
| get table cell spacing More... | |
| setCellSpacing ($a_spacing) | |
| set table cell spacing More... | |
| getCellPadding () | |
| get table cell padding More... | |
| setCellPadding ($a_padding) | |
| set table cell padding More... | |
| setHorizontalAlign ($a_halign) | |
| set horizontal align More... | |
| getHorizontalAlign () | |
| get table cell padding More... | |
| setTDWidth ($a_hier_id, $a_width, $a_pc_id="") | |
| set width of table data cell More... | |
| setTDSpans ($a_colspans, $a_rowspans) | |
| Set TDSpans. More... | |
| fixHideAndSpans () | |
| Fix Hide and Spans. More... | |
| makeEmptyCell ($td_node) | |
| Make cell empty. More... | |
| checkCellHidden ($colspans, $rowspans, $x, $y) | |
| Check hidden status. More... | |
| getAllCellClasses () | |
| Get all cell classes. More... | |
| getAllCellAlignments () | |
| Get all cell alignments. More... | |
| getAllCellSpans () | |
| Get all cell spans. More... | |
| getAllCellWidths () | |
| Get all cell widhts. More... | |
| setTDClass ($a_hier_id, $a_class, $a_pc_id="") | |
| set class of table data cell More... | |
| setTDAlignment ($a_hier_id, $a_class, $a_pc_id="") | |
| set alignment of table data cell More... | |
| getCaption () | |
| get caption More... | |
| getCaptionAlign () | |
| get caption alignment (Top | Bottom) More... | |
| setCaption ($a_content, $a_align) | |
| set table caption More... | |
| 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. More... | |
| setClass ($a_class) | |
| Set Style Class of table. More... | |
| getClass () | |
| Get characteristic of section. More... | |
| setTemplate ($a_template) | |
| Set template. More... | |
| getTemplate () | |
| Get template. More... | |
| setHeaderRows ($a_nr) | |
| Set header rows. More... | |
| getHeaderRows () | |
| Get header rows. More... | |
| setFooterRows ($a_nr) | |
| Set footer rows. More... | |
| getFooterRows () | |
| Get footer rows. More... | |
| setHeaderCols ($a_nr) | |
| Set header cols. More... | |
| getHeaderCols () | |
| Get header cols. More... | |
| setFooterCols ($a_nr) | |
| Set footer cols. More... | |
| getFooterCols () | |
| Get footer cols. More... | |
| getTableAttribute ($a_attr) | |
| Get table tag attribute. 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... | |
| setProfileBackUrl ($url) | |
| getProfileBackUrl () | |
| 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, $a_abstract_only=false) | |
| Modify page content after xsl. More... | |
Static Public Member Functions | |
| 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 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 | |
| $dom | |
| $tab_node | |
Data Fields inherited from ilPageContent | |
| $hier_id | |
| $node | |
| $dom | |
| $page_lang | |
Protected Member Functions | |
| setTableAttribute ($a_attr, $a_value) | |
| Set attribute of table tag. More... | |
Protected Member Functions inherited from ilPageContent | |
| setType ($a_type) | |
| Set Type. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ilPageContent | |
| $profile_back_url | |
| $file_download_link | |
| $fullscreen_link | |
| $sourcecode_download_script | |
| $log | |
Class ilPCTable.
Table content object (see ILIAS DTD)
Definition at line 17 of file class.ilPCTable.php.
| & ilPCTable::addCell | ( | & | $aRow, |
$a_data = "", |
|||
$a_lang = "" |
|||
| ) |
Definition at line 53 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 46 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 385 of file class.ilPCTable.php.
References $i.
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 37 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 686 of file class.ilPCTable.php.
References $i, and 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 294 of file class.ilPCTable.php.
References $rows, checkCellHidden(), and makeEmptyCell().
Referenced by setTDSpans().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCTable::getAllCellAlignments | ( | ) |
Get all cell alignments.
Definition at line 429 of file class.ilPCTable.php.
References $rows.
| ilPCTable::getAllCellClasses | ( | ) |
Get all cell classes.
Definition at line 405 of file class.ilPCTable.php.
References $rows.
| ilPCTable::getAllCellSpans | ( | ) |
Get all cell spans.
Definition at line 453 of file class.ilPCTable.php.
References $rows.
| ilPCTable::getAllCellWidths | ( | ) |
Get all cell widhts.
Definition at line 490 of file class.ilPCTable.php.
References $rows.
| ilPCTable::getBorder | ( | ) |
get table border width
Definition at line 160 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getCaption | ( | ) |
get caption
Definition at line 558 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 575 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 196 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getCellSpacing | ( | ) |
get table cell spacing
Definition at line 178 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getClass | ( | ) |
Get characteristic of section.
Definition at line 783 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getFooterCols | ( | ) |
Get footer cols.
Definition at line 883 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getFooterRows | ( | ) |
Get footer rows.
Definition at line 843 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getHeaderCols | ( | ) |
Get header cols.
Definition at line 863 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getHeaderRows | ( | ) |
Get header rows.
Definition at line 823 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getHorizontalAlign | ( | ) |
get table cell padding
Definition at line 222 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getLanguage | ( | ) |
get table language
Definition at line 122 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:
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 921 of file class.ilPCTable.php.
| ilPCTable::getTableAttribute | ( | $a_attr | ) |
Get table tag attribute.
Definition at line 910 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 803 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:| ilPCTable::getWidth | ( | ) |
get table width
Definition at line 142 of file class.ilPCTable.php.
References getTableAttribute().
Here is the call graph for this function:
|
static |
Handle copied content.
This function must, e.g. create copies of objects referenced within the content (e.g. question objects)
| DOMDocument | $a_domdoc | dom document |
Reimplemented from ilPageContent.
Definition at line 936 of file class.ilPCTable.php.
References ilPageContent\$node.
| ilPCTable::importCell | ( | $lng, | |
| & | $cellNode, | ||
| & | $aRow | ||
| ) |
Definition at line 673 of file class.ilPCTable.php.
References $lng, addCell(), ilPageContent\getPage(), 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 637 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 698 of file class.ilPCTable.php.
References $_SESSION, $dom, $i, $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 656 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 88 of file class.ilPCTable.php.
References $data, $rows, addCell(), and addRow().
Here is the call graph for this function:| ilPCTable::importTableAttributes | ( | & | $node | ) |
Definition at line 608 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 26 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 373 of file class.ilPCTable.php.
References $i.
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 170 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 591 of file class.ilPCTable.php.
References $a_content, 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 206 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 188 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 773 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 752 of file class.ilPCTable.php.
| ilPCTable::setFooterCols | ( | $a_nr | ) |
Set footer cols.
| string | number of footer cols |
Definition at line 873 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 833 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 853 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 813 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 214 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 132 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 31 of file class.ilPCTable.php.
|
protected |
Set attribute of table tag.
| string | attribute name |
| string | attribute value |
Definition at line 894 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::setTDAlignment | ( | $a_hier_id, | |
| $a_class, | |||
$a_pc_id = "" |
|||
| ) |
set alignment of table data cell
Definition at line 535 of file class.ilPCTable.php.
References $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPCTable::setTDClass | ( | $a_hier_id, | |
| $a_class, | |||
$a_pc_id = "" |
|||
| ) |
set class of table data cell
Definition at line 512 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 255 of file class.ilPCTable.php.
References $rows, 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 230 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 793 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 152 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 19 of file class.ilPCTable.php.
Referenced by importHtml().
| ilPCTable::$tab_node |
Definition at line 20 of file class.ilPCTable.php.