ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
init () | |
create (ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id="") | |
addRow () | |
addCell (DOMNode $aRow, string $a_data="", string $a_lang="") | |
getCellText (int $i, int $j) | |
Get cell text of row $i and cell $j. More... | |
getCellNode (int $i, int $j, bool $create_if_not_exists=false) | |
Get cell paragraph node of row $i and cell $j. More... | |
getTableDataNode (int $i, int $j) | |
Get cell paragraph node of row $i and cell $j. More... | |
addRows (int $a_nr_rows, int $a_nr_cols) | |
add rows to table More... | |
importSpreadsheet (string $a_lang, string $a_data) | |
import from table More... | |
getLanguage () | |
setLanguage (string $a_lang) | |
getWidth () | |
setWidth (string $a_width) | |
getBorder () | |
setBorder (string $a_border) | |
getCellSpacing () | |
setCellSpacing (string $a_spacing) | |
getCellPadding () | |
setCellPadding (string $a_padding) | |
setHorizontalAlign (string $a_halign) | |
getHorizontalAlign () | |
setTDWidth (string $a_hier_id, string $a_width, string $a_pc_id="") | |
set width of table data cell More... | |
setTDSpans (array $a_colspans, array $a_rowspans) | |
fixHideAndSpans () | |
Fix Hide and Spans. More... | |
makeEmptyCell (DomNode $td_node) | |
checkCellHidden (array $colspans, array $rowspans, int $x, int $y) | |
Check hidden status. More... | |
getAllCellClasses () | |
Get all cell classes. More... | |
getAllCellAlignments () | |
getAllCellSpans () | |
Get all cell spans. More... | |
getAllCellWidths () | |
Get all cell widths. More... | |
setTDClass (string $a_hier_id, string $a_class, string $a_pc_id="") | |
set class of table data cell More... | |
setTDAlignment (string $a_hier_id, string $a_class, string $a_pc_id="") | |
set alignment of table data cell More... | |
getCaption () | |
getCaptionAlign () | |
get caption alignment (Top | Bottom) More... | |
setCaption (string $a_content, string $a_align) | |
setFirstRowStyle (string $a_class) | |
setClass (string $a_class) | |
Set Style Class of table. More... | |
getClass () | |
setTemplate (string $a_template) | |
getTemplate () | |
setHeaderRows (int $a_nr) | |
getHeaderRows () | |
setFooterRows (int $a_nr) | |
getFooterRows () | |
setHeaderCols (int $a_nr) | |
getHeaderCols () | |
setFooterCols (int $a_nr) | |
getFooterCols () | |
getTableAttribute (string $a_attr) | |
getModel () | |
![]() | |
__construct (ilPageObject $a_pg_obj, ?PageManagerInterface $page_manager=null, ?ObjectAdapterInterface $object_adapter=null) | |
setPage (ilPageObject $a_val) | |
getPage () | |
init () | |
Init object. More... | |
getType () | |
getDomNode () | |
getDomDoc () | |
setDomNode (DOMNode $node) | |
getChildNode () | |
getJavascriptFiles (string $a_mode) | |
getCssFiles (string $a_mode) | |
getOnloadCode (string $a_mode) | |
setHierId (string $a_hier_id) | |
getHierId () | |
lookupHierId () | |
readHierId () | |
setPcId (string $a_pcid) | |
getPCId () | |
setFileDownloadLink (string $a_download_link) | |
getFileDownloadLink () | |
setProfileBackUrl (string $url) | |
getProfileBackUrl () | |
setFullscreenLink (string $a_fullscreen_link) | |
getFullscreenLink () | |
setSourcecodeDownloadScript (string $script_name) | |
getSourcecodeDownloadScript () | |
readPCId () | |
writePCId (string $a_pc_id) | |
setEnabled (string $value) | |
Set Enabled value for page content component. More... | |
enable () | |
disable () | |
isEnabled () | |
createPageContentNode (bool $a_set_this_node=true) | |
Create page content node (always use this method first when adding a new element) More... | |
getNewPageContentNode () | |
modifyPageContentPostXsl (string $a_output, string $a_mode, bool $a_abstract_only=false) | |
Modify page content after xsl. More... | |
getModel () | |
Get model as needed for the front-end editor. More... | |
Static Public Member Functions | |
static | getLangVars () |
static | handleCopiedContent (DOMDocument $a_domdoc, bool $a_self_ass=true, bool $a_clone_mobs=false, int $new_parent_id=0, int $obj_copy_id=0) |
![]() | |
static | sortHierIds (array $a_array) |
Sort an array of Hier IDS in ascending order. More... | |
static | isGreaterHierId (string $a, string $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, bool $a_self_ass=true, bool $a_clone_mobs=false, int $new_parent_id=0, int $obj_copy_id=0) |
Handle copied content. More... | |
static | afterPageUpdate (ilPageObject $a_page, DOMDocument $a_domdoc, string $a_xml, bool $a_creation) |
After page has been updated (or created) More... | |
static | beforePageDelete (ilPageObject $a_page) |
Before page is being deleted. More... | |
static | afterRepositoryCopy (ilPageObject $page, array $mapping, int $source_ref_id) |
After repository (container) copy action. More... | |
static | afterPageHistoryEntry (ilPageObject $a_page, DOMDocument $a_old_domdoc, string $a_old_xml, int $a_old_nr) |
After page history entry has been created. More... | |
static | deleteHistoryLowerEqualThan (string $parent_type, int $page_id, string $lang, int $delete_lower_than_nr) |
Overwrite in derived classes, if old history entries are being deleted. More... | |
Protected Member Functions | |
setTableAttribute (string $a_attr, string $a_value) | |
Set attribute of table tag. More... | |
![]() | |
getPageManager () | |
setType (string $a_type) | |
Set Type. More... | |
hasNode () | |
createInitialChildNode (string $hier_id, string $pc_id, string $child, array $child_attributes=[]) | |
Additional Inherited Members | |
![]() | |
string | $hier_id = "" |
DOMNode | $dom_node = null |
string | $page_lang = "" |
![]() | |
DOMDocument | $dom_doc |
ILIAS COPage InternalDomainService | $domain |
string | $pcid |
string | $type = "" |
ilPageObject | $pg_obj |
string | $file_download_link |
string | $fullscreen_link |
string | $sourcecode_download_script |
ilLogger | $log |
string | $profile_back_url = "" |
ILIAS COPage Dom DomUtil | $dom_util |
PageManagerInterface | $page_manager = null |
ObjectAdapterInterface | $object = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilPCTable Table content object (see ILIAS DTD)
Definition at line 24 of file class.ilPCTable.php.
ilPCTable::addCell | ( | DOMNode | $aRow, |
string | $a_data = "" , |
||
string | $a_lang = "" |
||
) |
Definition at line 51 of file class.ilPCTable.php.
References ilPageContent\getNewPageContentNode().
Referenced by addRows(), and importSpreadsheet().
ilPCTable::addRow | ( | ) |
Definition at line 44 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
Referenced by addRows(), and importSpreadsheet().
ilPCTable::addRows | ( | int | $a_nr_rows, |
int | $a_nr_cols | ||
) |
add rows to table
Definition at line 150 of file class.ilPCTable.php.
References addCell(), and addRow().
ilPCTable::checkCellHidden | ( | array | $colspans, |
array | $rowspans, | ||
int | $x, | ||
int | $y | ||
) |
Check hidden status.
Definition at line 416 of file class.ilPCTable.php.
Referenced by fixHideAndSpans().
ilPCTable::create | ( | ilPageObject | $a_pg_obj, |
string | $a_hier_id, | ||
string | $a_pc_id = "" |
||
) |
Definition at line 31 of file class.ilPCTable.php.
References ilPageContent\createInitialChildNode().
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 330 of file class.ilPCTable.php.
References checkCellHidden(), ilPageContent\getChildNode(), and makeEmptyCell().
Referenced by setTDSpans().
ilPCTable::getAllCellAlignments | ( | ) |
Definition at line 453 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
Referenced by ilPCTableGUI\_addAlignmentCheckboxes().
ilPCTable::getAllCellClasses | ( | ) |
Get all cell classes.
Definition at line 434 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
Referenced by ilPCTableGUI\_addStyleCheckboxes().
ilPCTable::getAllCellSpans | ( | ) |
Get all cell spans.
Definition at line 475 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
Referenced by ilPCTableGUI\_addSpanInputs().
ilPCTable::getAllCellWidths | ( | ) |
Get all cell widths.
Definition at line 511 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
Referenced by ilPCTableGUI\_addWidthInputs().
ilPCTable::getBorder | ( | ) |
Definition at line 223 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getCaption | ( | ) |
Definition at line 580 of file class.ilPCTable.php.
References ilPageContent\$hier_id, $path, and ilPageContent\getHierId().
ilPCTable::getCaptionAlign | ( | ) |
get caption alignment (Top | Bottom)
Definition at line 596 of file class.ilPCTable.php.
References ilPageContent\$hier_id, $path, and ilPageContent\getHierId().
ilPCTable::getCellNode | ( | int | $i, |
int | $j, | ||
bool | $create_if_not_exists = false |
||
) |
Get cell paragraph node of row $i and cell $j.
Definition at line 93 of file class.ilPCTable.php.
References $path, ilPageContent\getHierId(), getLanguage(), ilPageContent\getNewPageContentNode(), and null.
Referenced by getCellText(), and ilPCDataTable\setData().
ilPCTable::getCellPadding | ( | ) |
Definition at line 243 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getCellSpacing | ( | ) |
Definition at line 233 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getCellText | ( | int | $i, |
int | $j | ||
) |
Get cell text of row $i and cell $j.
Definition at line 76 of file class.ilPCTable.php.
References $c, and getCellNode().
Referenced by getModel().
ilPCTable::getClass | ( | ) |
Definition at line 650 of file class.ilPCTable.php.
References getTableAttribute().
Referenced by getModel().
ilPCTable::getFooterCols | ( | ) |
Definition at line 700 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getFooterRows | ( | ) |
Definition at line 680 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getHeaderCols | ( | ) |
Definition at line 690 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getHeaderRows | ( | ) |
Definition at line 670 of file class.ilPCTable.php.
References getTableAttribute().
Referenced by getModel().
ilPCTable::getHorizontalAlign | ( | ) |
Definition at line 258 of file class.ilPCTable.php.
References getTableAttribute().
ilPCTable::getLanguage | ( | ) |
Definition at line 201 of file class.ilPCTable.php.
References getTableAttribute().
Referenced by getCellNode(), and ilPCDataTable\makeEmptyCell().
|
static |
Definition at line 729 of file class.ilPCTable.php.
ilPCTable::getModel | ( | ) |
Definition at line 752 of file class.ilPCTable.php.
References getCellText(), ilPageContent\getChildNode(), getClass(), getHeaderRows(), getTemplate(), ilPCParagraph\xml2output(), and ilPCParagraphGUI\xml2outputJS().
ilPCTable::getTableAttribute | ( | string | $a_attr | ) |
Definition at line 721 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
Referenced by getBorder(), getCellPadding(), getCellSpacing(), getClass(), getFooterCols(), getFooterRows(), getHeaderCols(), getHeaderRows(), getHorizontalAlign(), getLanguage(), getTemplate(), and getWidth().
ilPCTable::getTableDataNode | ( | int | $i, |
int | $j | ||
) |
Get cell paragraph node of row $i and cell $j.
Definition at line 135 of file class.ilPCTable.php.
References $path, ilPageContent\getHierId(), and null.
ilPCTable::getTemplate | ( | ) |
Definition at line 660 of file class.ilPCTable.php.
References getTableAttribute().
Referenced by getModel().
ilPCTable::getWidth | ( | ) |
Definition at line 213 of file class.ilPCTable.php.
References getTableAttribute().
|
static |
Definition at line 738 of file class.ilPCTable.php.
ilPCTable::importSpreadsheet | ( | string | $a_lang, |
string | $a_data | ||
) |
import from table
Definition at line 163 of file class.ilPCTable.php.
References $data, addCell(), and addRow().
ilPCTable::init | ( | ) |
Definition at line 26 of file class.ilPCTable.php.
References ilPageContent\setType().
ilPCTable::makeEmptyCell | ( | DomNode | $td_node | ) |
Definition at line 407 of file class.ilPCTable.php.
Referenced by fixHideAndSpans().
ilPCTable::setBorder | ( | string | $a_border | ) |
Definition at line 228 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setCaption | ( | string | $a_content, |
string | $a_align | ||
) |
Definition at line 609 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
ilPCTable::setCellPadding | ( | string | $a_padding | ) |
Definition at line 248 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setCellSpacing | ( | string | $a_spacing | ) |
Definition at line 238 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setClass | ( | string | $a_class | ) |
Set Style Class of table.
Definition at line 645 of file class.ilPCTable.php.
References setTableAttribute().
Referenced by ILIAS\COPage\PC\Table\TableCommandActionHandler\setRowHeaderAndCharacteristic().
ilPCTable::setFirstRowStyle | ( | string | $a_class | ) |
Definition at line 627 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
ilPCTable::setFooterCols | ( | int | $a_nr | ) |
Definition at line 695 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setFooterRows | ( | int | $a_nr | ) |
Definition at line 675 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setHeaderCols | ( | int | $a_nr | ) |
Definition at line 685 of file class.ilPCTable.php.
References setTableAttribute().
ilPCTable::setHeaderRows | ( | int | $a_nr | ) |
Definition at line 665 of file class.ilPCTable.php.
References setTableAttribute().
Referenced by ILIAS\COPage\PC\Table\TableCommandActionHandler\setRowHeaderAndCharacteristic().
ilPCTable::setHorizontalAlign | ( | string | $a_halign | ) |
Definition at line 253 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
ilPCTable::setLanguage | ( | string | $a_lang | ) |
Definition at line 206 of file class.ilPCTable.php.
References setTableAttribute().
|
protected |
Set attribute of table tag.
Definition at line 708 of file class.ilPCTable.php.
References ilPageContent\getChildNode().
Referenced by setBorder(), setCellPadding(), setCellSpacing(), setClass(), setFooterCols(), setFooterRows(), setHeaderCols(), setHeaderRows(), setLanguage(), setTemplate(), and setWidth().
ilPCTable::setTDAlignment | ( | string | $a_hier_id, |
string | $a_class, | ||
string | $a_pc_id = "" |
||
) |
set alignment of table data cell
Definition at line 558 of file class.ilPCTable.php.
References $path.
ilPCTable::setTDClass | ( | string | $a_hier_id, |
string | $a_class, | ||
string | $a_pc_id = "" |
||
) |
ilPCTable::setTDSpans | ( | array | $a_colspans, |
array | $a_rowspans | ||
) |
Definition at line 289 of file class.ilPCTable.php.
References fixHideAndSpans(), and ilPageContent\getChildNode().
ilPCTable::setTDWidth | ( | string | $a_hier_id, |
string | $a_width, | ||
string | $a_pc_id = "" |
||
) |
ilPCTable::setTemplate | ( | string | $a_template | ) |
Definition at line 655 of file class.ilPCTable.php.
References setTableAttribute().
Referenced by ILIAS\COPage\PC\Table\TableCommandActionHandler\setRowHeaderAndCharacteristic().
ilPCTable::setWidth | ( | string | $a_width | ) |
Definition at line 218 of file class.ilPCTable.php.
References setTableAttribute().