ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
init () | |
Init page content component. More... | |
setNode ($a_node) | |
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... | |
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... | |
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 | |
$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().
& ilPCTable::addRow | ( | ) |
Definition at line 46 of file class.ilPCTable.php.
Referenced by addRows(), importRow(), and importSpreadsheet().
ilPCTable::addRows | ( | $a_nr_rows, | |
$a_nr_cols | |||
) |
add rows to table
Definition at line 75 of file class.ilPCTable.php.
References $i, addCell(), and addRow().
ilPCTable::checkCellHidden | ( | $colspans, | |
$rowspans, | |||
$x, | |||
$y | |||
) |
Check hidden status.
Definition at line 385 of file class.ilPCTable.php.
Referenced by fixHideAndSpans().
ilPCTable::create | ( | & | $a_pg_obj, |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Definition at line 37 of file class.ilPCTable.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
ilPCTable::extractText | ( | & | $node | ) |
Definition at line 686 of file class.ilPCTable.php.
References $i, ilPageContent\$node, and Sabre\VObject\$output.
Referenced by importCellAttributes(), and importTableAttributes().
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 $row, $rows, $x, $y, checkCellHidden(), and makeEmptyCell().
Referenced by setTDSpans().
ilPCTable::getAllCellAlignments | ( | ) |
Get all cell alignments.
Definition at line 429 of file class.ilPCTable.php.
ilPCTable::getAllCellClasses | ( | ) |
Get all cell classes.
Definition at line 405 of file class.ilPCTable.php.
ilPCTable::getAllCellSpans | ( | ) |
ilPCTable::getAllCellWidths | ( | ) |
Get all cell widhts.
Definition at line 490 of file class.ilPCTable.php.
ilPCTable::getBorder | ( | ) |
get table border width
Definition at line 160 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getCaption | ( | ) |
get caption
Definition at line 558 of file class.ilPCTable.php.
References ilPageContent\$hier_id, $path, $res, ilPageContent\getHierId(), xpath_eval(), and xpath_new_context().
ilPCTable::getCaptionAlign | ( | ) |
get caption alignment (Top | Bottom)
Definition at line 575 of file class.ilPCTable.php.
References ilPageContent\$hier_id, $path, $res, ilPageContent\getHierId(), xpath_eval(), and xpath_new_context().
ilPCTable::getCellPadding | ( | ) |
get table cell padding
Definition at line 196 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getCellSpacing | ( | ) |
get table cell spacing
Definition at line 178 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getClass | ( | ) |
Get characteristic of section.
Definition at line 783 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getFooterCols | ( | ) |
Get footer cols.
Definition at line 883 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getFooterRows | ( | ) |
Get footer rows.
Definition at line 843 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getHeaderCols | ( | ) |
Get header cols.
Definition at line 863 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getHeaderRows | ( | ) |
Get header rows.
Definition at line 823 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getHorizontalAlign | ( | ) |
get table cell padding
Definition at line 222 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getLanguage | ( | ) |
get table language
Definition at line 122 of file class.ilPCTable.php.
References getTableAttribute().
Referenced by ilPCDataTable\getCellNode(), and ilPCDataTable\makeEmptyCell().
|
static |
Get lang vars needed for editing.
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().
ilPCTable::getTemplate | ( | ) |
Get template.
Definition at line 803 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getWidth | ( | ) |
get table width
Definition at line 142 of file class.ilPCTable.php.
References getTableAttribute().
|
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 |
Definition at line 936 of file class.ilPCTable.php.
References ilPageContent\$node, and $nodes.
ilPCTable::importCell | ( | $lng, | |
& | $cellNode, | ||
& | $aRow | ||
) |
Definition at line 673 of file class.ilPCTable.php.
References $lng, addCell(), ilPageContent\getPage(), and importCellAttributes().
Referenced by importRow().
ilPCTable::importCellAttributes | ( | & | $node, |
& | $par | ||
) |
Definition at line 637 of file class.ilPCTable.php.
References $n, ilPageContent\$node, and extractText().
Referenced by importCell().
ilPCTable::importHtml | ( | $lng, | |
$htmlTable | |||
) |
Definition at line 698 of file class.ilPCTable.php.
References $_SESSION, $dom, $i, $lng, $n, ilPageContent\$node, $path, $res, Sabre\Event\Promise\all(), DOMXML_LOAD_PARSING, domxml_open_mem(), importRow(), importTableAttributes(), ilUtil\stripSlashes(), xpath_eval(), and xpath_new_context().
ilPCTable::importRow | ( | $lng, | |
& | $node | ||
) |
Definition at line 656 of file class.ilPCTable.php.
References $lng, $n, ilPageContent\$node, addRow(), and importCell().
Referenced by importHtml().
ilPCTable::importSpreadsheet | ( | $a_lang, | |
$a_data | |||
) |
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().
ilPCTable::init | ( | ) |
Init page content component.
Definition at line 26 of file class.ilPCTable.php.
References ilPageContent\setType().
ilPCTable::makeEmptyCell | ( | $td_node | ) |
Make cell empty.
Definition at line 373 of file class.ilPCTable.php.
References $i.
Referenced by fixHideAndSpans().
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().
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().
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().
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().
ilPCTable::setClass | ( | $a_class | ) |
Set Style Class of table.
string | $a_class | class |
Definition at line 773 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setFirstRowStyle | ( | $a_class | ) |
ilPCTable::setFooterCols | ( | $a_nr | ) |
Set footer cols.
string | number of footer cols |
Definition at line 873 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setFooterRows | ( | $a_nr | ) |
Set footer rows.
string | number of footer rows |
Definition at line 833 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setHeaderCols | ( | $a_nr | ) |
Set header cols.
string | number of header cols |
Definition at line 853 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setHeaderRows | ( | $a_nr | ) |
Set header rows.
string | number of header rows |
Definition at line 813 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setHorizontalAlign | ( | $a_halign | ) |
set horizontal align
Definition at line 214 of file class.ilPCTable.php.
Referenced by importTableAttributes().
ilPCTable::setLanguage | ( | $a_lang | ) |
set table language
string | $a_lang | language code |
Definition at line 132 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setNode | ( | $a_node | ) |
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().
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 $path, $res, xpath_eval(), and xpath_new_context().
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 $path, $res, xpath_eval(), and xpath_new_context().
ilPCTable::setTDSpans | ( | $a_colspans, | |
$a_rowspans | |||
) |
Set TDSpans.
Definition at line 255 of file class.ilPCTable.php.
References $row, $rows, $x, $y, and fixHideAndSpans().
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 $path, $res, xpath_eval(), and xpath_new_context().
ilPCTable::setTemplate | ( | $a_template | ) |
Set template.
string | $a_template | template |
Definition at line 793 of file class.ilPCTable.php.
References setTableAttribute().
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().
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.