ILIAS
Release_4_4_x_branch Revision 61816
|
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. | |
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. |
Static Public Member Functions | |
static | getLangVars () |
Get lang vars needed for editing. | |
static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
Handle copied content. | |
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. | |
static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
After page has been updated (or created) | |
static | beforePageDelete ($a_page) |
Before page is being deleted. | |
static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
After page history entry has been created. |
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. |
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 52 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 | |||
) |
ilPCTable::checkCellHidden | ( | $colspans, | |
$rowspans, | |||
$x, | |||
$y | |||
) |
Check hidden status.
Definition at line 429 of file class.ilPCTable.php.
Referenced by fixHideAndSpans().
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.
ilPCTable::extractText | ( | & | $node | ) |
Definition at line 776 of file class.ilPCTable.php.
References ilPageContent\$node.
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 320 of file class.ilPCTable.php.
References $row, checkCellHidden(), and makeEmptyCell().
Referenced by setTDSpans().
ilPCTable::getAllCellAlignments | ( | ) |
Get all cell alignments.
Definition at line 481 of file class.ilPCTable.php.
References $row.
ilPCTable::getAllCellClasses | ( | ) |
Get all cell classes.
Definition at line 453 of file class.ilPCTable.php.
References $row.
ilPCTable::getAllCellSpans | ( | ) |
Get all cell spans.
Definition at line 509 of file class.ilPCTable.php.
References $row.
ilPCTable::getAllCellWidths | ( | ) |
Get all cell widhts.
Definition at line 551 of file class.ilPCTable.php.
References $row.
ilPCTable::getBorder | ( | ) |
get table border width
Definition at line 166 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getCaption | ( | ) |
get caption
Definition at line 639 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 658 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 202 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getCellSpacing | ( | ) |
get table cell spacing
Definition at line 184 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getClass | ( | ) |
Get characteristic of section.
Definition at line 884 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getFooterCols | ( | ) |
Get footer cols.
Definition at line 984 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getFooterRows | ( | ) |
Get footer rows.
Definition at line 944 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getHeaderCols | ( | ) |
Get header cols.
Definition at line 964 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getHeaderRows | ( | ) |
Get header rows.
Definition at line 924 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getHorizontalAlign | ( | ) |
get table cell padding
Definition at line 228 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getLanguage | ( | ) |
get table language
Definition at line 127 of file class.ilPCTable.php.
References getTableAttribute().
Referenced by ilPCDataTable\getCellNode(), and ilPCDataTable\makeEmptyCell().
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 1027 of file class.ilPCTable.php.
ilPCTable::getTableAttribute | ( | $a_attr | ) |
Get table tag attribute.
Definition at line 1015 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 904 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getWidth | ( | ) |
get table width
Definition at line 148 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 |
Reimplemented from ilPageContent.
Definition at line 1042 of file class.ilPCTable.php.
References ilPageContent\$node.
ilPCTable::importCell | ( | $lng, | |
& | $cellNode, | ||
& | $aRow | ||
) |
Definition at line 764 of file class.ilPCTable.php.
References $lng, addCell(), ilPageContent\getPage(), and importCellAttributes().
Referenced by importRow().
ilPCTable::importCellAttributes | ( | & | $node, |
& | $par | ||
) |
Definition at line 723 of file class.ilPCTable.php.
References $n, ilPageContent\$node, and extractText().
Referenced by importCell().
ilPCTable::importHtml | ( | $lng, | |
$htmlTable | |||
) |
Definition at line 787 of file class.ilPCTable.php.
References $_SESSION, $dom, $lng, $n, ilPageContent\$node, $path, $res, DOMXML_LOAD_PARSING, domxml_open_mem(), importRow(), importTableAttributes(), ilUtil\stripSlashes(), xpath_eval(), and xpath_new_context().
ilPCTable::importRow | ( | $lng, | |
& | $node | ||
) |
Definition at line 745 of file class.ilPCTable.php.
References $lng, $n, ilPageContent\$node, addRow(), and importCell().
Referenced by importHtml().
ilPCTable::importSpreadsheet | ( | $a_lang, | |
$a_data | |||
) |
import from table
Definition at line 90 of file class.ilPCTable.php.
References $row, addCell(), and addRow().
ilPCTable::importTableAttributes | ( | & | $node | ) |
Definition at line 691 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.
Reimplemented from ilPageContent.
Reimplemented in ilPCDataTable.
Definition at line 26 of file class.ilPCTable.php.
References ilPageContent\setType().
ilPCTable::makeEmptyCell | ( | $td_node | ) |
Make cell empty.
Reimplemented in ilPCDataTable.
Definition at line 416 of file class.ilPCTable.php.
Referenced by fixHideAndSpans().
ilPCTable::setBorder | ( | $a_border | ) |
set table border
string | $a_border | table border |
Definition at line 176 of file class.ilPCTable.php.
References setTableAttribute().
Referenced by importTableAttributes().
ilPCTable::setCaption | ( | $a_content, | |
$a_align | |||
) |
set table caption
Definition at line 676 of file class.ilPCTable.php.
References ilDOMUtil\deleteAllChildsByName(), and ilDOMUtil\setFirstOptionalElement().
ilPCTable::setCellPadding | ( | $a_padding | ) |
set table cell padding
string | $a_padding | table cell padding |
Definition at line 212 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 194 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 874 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setFirstRowStyle | ( | $a_class | ) |
Set first row td style.
Definition at line 849 of file class.ilPCTable.php.
ilPCTable::setFooterCols | ( | $a_nr | ) |
Set footer cols.
string | number of footer cols |
Definition at line 974 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setFooterRows | ( | $a_nr | ) |
Set footer rows.
string | number of footer rows |
Definition at line 934 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setHeaderCols | ( | $a_nr | ) |
Set header cols.
string | number of header cols |
Definition at line 954 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setHeaderRows | ( | $a_nr | ) |
Set header rows.
string | number of header rows |
Definition at line 914 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setHorizontalAlign | ( | $a_halign | ) |
set horizontal align
Definition at line 220 of file class.ilPCTable.php.
Referenced by importTableAttributes().
ilPCTable::setLanguage | ( | $a_lang | ) |
set table language
string | $a_lang | language code |
Definition at line 137 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setNode | ( | & | $a_node | ) |
Set xml node of page content.
object | $a_node | node object |
Reimplemented from ilPageContent.
Definition at line 31 of file class.ilPCTable.php.
|
protected |
Set attribute of table tag.
string | attribute name |
string | attribute value |
Definition at line 995 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 608 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 577 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 269 of file class.ilPCTable.php.
References $row, and fixHideAndSpans().
ilPCTable::setTDWidth | ( | $a_hier_id, | |
$a_width, | |||
$a_pc_id = "" |
|||
) |
set width of table data cell
Definition at line 236 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 894 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setWidth | ( | $a_width | ) |
set table width
string | $a_width | table width |
Definition at line 158 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.