ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="") | |
setBasicTableCellStyles () | |
executeCommand () | |
setTabs (string $data_tab_txt_key="") | |
setCellPropertiesSubTabs () | |
getTemplateOptions (string $a_type="") | |
edit () | |
editProperties () | |
initPropertiesForm (string $a_mode="edit") | |
getPropertiesFormValues () | |
editCellStyle () | |
editCellWidth () | |
editCellSpan () | |
setStyles () | |
Set cell styles. More... | |
setWidths () | |
Set cell widths. More... | |
setSpans () | |
Set cell spans. More... | |
setProperties () | |
Set properties from input form. More... | |
saveProperties () | |
save table properties in db and return to page edit screen More... | |
rightAlign () | |
leftAlign () | |
centerAlign () | |
leftFloatAlign () | |
rightFloatAlign () | |
insert () | |
getNewTableObject () | |
create () | |
create new table in dom and update page in db More... | |
afterCreation () | |
editCellAlignment () | |
setAlignment () | |
Set cell alignments. More... | |
editData () | |
Edit data of table. More... | |
getEditDataTable (bool $initial=false) | |
![]() | |
__construct (ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id="", string $a_pc_id="0") | |
setContentObject (ilPageContent $a_val) | |
getContentObject () | |
setPage (ilPageObject $a_val) | |
getPage () | |
setPageConfig (ilPageConfig $a_val) | |
getPageConfig () | |
setStyleId (int $a_styleid) | |
getStyleId () | |
getStyle () | |
getCharacteristicsOfCurrentStyle (array $a_type) | |
Get characteristics of current style and call setCharacteristics, if style is given. More... | |
setCharacteristics (array $a_chars) | |
getCharacteristics () | |
getHierId () | |
setHierId (string $a_hier_id) | |
set hierarchical id in dom object More... | |
delete () | |
moveAfter () | |
move content element after another element More... | |
moveBefore () | |
move content element before another element More... | |
splitPage () | |
split page to new page at specified position More... | |
splitPageNext () | |
split page to next page at specified position More... | |
displayValidationError () | |
cancelCreate () | |
cancel creating page content More... | |
cancelUpdate () | |
cancel update More... | |
cancel () | |
Cancel. More... | |
deactivate () | |
gui function set enabled if is not enabled and vice versa More... | |
cut () | |
Cut single element. More... | |
copy () | |
Copy single element. More... | |
getTemplateOptions (string $a_type="") | |
Get table templates. More... | |
Static Public Member Functions | |
static | _renderTable (string $content, string $a_mode="table_edit", string $a_submode="", ilPCTable $a_table_obj=null, bool $unmask=true, ilPageObject $page_object=null) |
static | _addStyleCheckboxes (string $a_output, ilPCTable $a_table) |
Add style checkboxes in edit mode. More... | |
static | _addAlignmentCheckboxes (string $a_output, ilPCTable $a_table) |
Add alignment checkboxes in edit mode. More... | |
static | _addWidthInputs (string $a_output, ilPCTable $a_table) |
Add width inputs. More... | |
static | _addSpanInputs (string $a_output, ilPCTable $a_table) |
Add span inputs. More... | |
![]() | |
static | _getCommonBBButtons () |
Protected Member Functions | |
getFormTitle (string $a_mode="edit") | |
setEditorToolContext () | |
Set editor tool context. More... | |
getColumnCaption (int $nr) | |
getCellContent (int $i, int $j) | |
renderCell ( $content, $unmask=true, $page_object=null) | |
Static render table function. More... | |
![]() | |
redirectToParent (string $hier_id="") | |
getParentReturn (string $hier_id="") | |
updateAndReturn () | |
setCurrentTextLang (string $lang_key) | |
getCurrentTextLang () | |
Protected Attributes | |
ilPropertyFormGUI | $form |
ilTabsGUI | $tabs |
ilObjUser | $user |
ILIAS GlobalScreen ScreenContext ContextServices | $tool_context |
![]() | |
EditSessionRepository | $edit_repo |
string | $pc_id = "" |
array | $chars |
ilObjStyleSheet | $style = null |
ilLogger | $log |
int | $styleid = 0 |
EditGUIRequest | $request |
string | $sub_command = "" |
int | $requested_ref_id = 0 |
Style Content CharacteristicManager | $char_manager |
Additional Inherited Members | |
![]() | |
ilPageContent | $content_obj |
ilGlobalTemplateInterface | $tpl |
ilLanguage | $lng |
ilCtrl | $ctrl |
ilPageObject | $pg_obj |
string | $hier_id = "" |
php4DOMDocument | $dom |
$updated | |
string | $target_script = "" |
string | $return_location = "" |
ilPageConfig | $page_config = null |
![]() | |
static string | $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;" |
![]() | |
static array | $common_bb_buttons |
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 User Interface for Table Editing
See https://mantis.ilias.de/view.php?id=32856 ilPCTableGUI: ilAssGenFeedbackPageGUI
Definition at line 26 of file class.ilPCTableGUI.php.
ilPCTableGUI::__construct | ( | ilPageObject | $a_pg_obj, |
?ilPageContent | $a_content_obj, | ||
string | $a_hier_id, | ||
string | $a_pc_id = "" |
||
) |
Definition at line 33 of file class.ilPCTableGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilPageContentGUI\setCharacteristics(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
|
static |
Add alignment checkboxes in edit mode.
Definition at line 543 of file class.ilPCTableGUI.php.
References $check, $DIC, ilPageContentGUI\$lng, ilPCTable\getAllCellAlignments(), and ilLanguage\txt().
Referenced by _renderTable().
|
static |
Add span inputs.
Definition at line 592 of file class.ilPCTableGUI.php.
References $DIC, $i, ilPageContentGUI\$lng, ilPCTable\getAllCellSpans(), and ilLanguage\txt().
Referenced by _renderTable().
|
static |
Add style checkboxes in edit mode.
Definition at line 514 of file class.ilPCTableGUI.php.
References $check, $DIC, ilPageContentGUI\$lng, ilPCTable\getAllCellClasses(), and ilLanguage\txt().
Referenced by _renderTable().
|
static |
Add width inputs.
Definition at line 569 of file class.ilPCTableGUI.php.
References $check, $DIC, ilPageContentGUI\$lng, ilPCTable\getAllCellWidths(), and ilLanguage\txt().
Referenced by _renderTable().
|
static |
Definition at line 442 of file class.ilPCTableGUI.php.
References $DIC, $ilUser, $params, _addAlignmentCheckboxes(), _addSpanInputs(), _addStyleCheckboxes(), _addWidthInputs(), ilUtil\getImagePath(), ilCOPagePCDef\getPCDefinitions(), ilFileUtils\getWebspaceDir(), xslt_create(), xslt_error(), and xslt_free().
Referenced by ilObjStyleSheetGUI\_getTemplatePreview(), and getPropertiesFormValues().
ilPCTableGUI::afterCreation | ( | ) |
Definition at line 947 of file class.ilPCTableGUI.php.
References ILIAS\Repository\ctrl().
Referenced by create().
ilPCTableGUI::centerAlign | ( | ) |
Definition at line 857 of file class.ilPCTableGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCTableGUI::create | ( | ) |
create new table in dom and update page in db
Definition at line 893 of file class.ilPCTableGUI.php.
References $res, afterCreation(), ILIAS\Repository\form(), getNewTableObject(), initPropertiesForm(), insert(), and setProperties().
ilPCTableGUI::edit | ( | ) |
Definition at line 155 of file class.ilPCTableGUI.php.
References ILIAS\Repository\ctrl().
Referenced by saveProperties().
ilPCTableGUI::editCellAlignment | ( | ) |
Definition at line 957 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilPageContentGUI\displayValidationError(), ilPropertyFormGUI\getHTML(), ILIAS\Repository\lng(), setCellPropertiesSubTabs(), ilGlobalTemplateInterface\setContent(), ilFormGUI\setFormAction(), ilFormGUI\setKeepOpen(), setTabs(), ilPropertyFormGUI\setTitle(), and ilLanguage\txt().
ilPCTableGUI::editCellSpan | ( | ) |
Definition at line 697 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), setCellPropertiesSubTabs(), ilGlobalTemplateInterface\setContent(), setTabs(), and ilLanguage\txt().
ilPCTableGUI::editCellStyle | ( | ) |
Definition at line 630 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$chars, ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, ilPageContentGUI\$style, $tabs, ilPageContentGUI\$tpl, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilPageContentGUI\displayValidationError(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), ilPropertyFormGUI\getHTML(), ILIAS\Repository\lng(), setBasicTableCellStyles(), setCellPropertiesSubTabs(), ilGlobalTemplateInterface\setContent(), ilFormGUI\setFormAction(), ilFormGUI\setKeepOpen(), setTabs(), ilPropertyFormGUI\setTitle(), and ilLanguage\txt().
ilPCTableGUI::editCellWidth | ( | ) |
Definition at line 674 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), setCellPropertiesSubTabs(), ilGlobalTemplateInterface\setContent(), setTabs(), and ilLanguage\txt().
ilPCTableGUI::editData | ( | ) |
Edit data of table.
Definition at line 1038 of file class.ilPCTableGUI.php.
References ilPageContentGUI\displayValidationError(), getEditDataTable(), setEditorToolContext(), and setTabs().
Referenced by ilPCDataTableGUI\update(), and ilPCDataTableGUI\updateJS().
ilPCTableGUI::editProperties | ( | ) |
Definition at line 160 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), ILIAS\Repository\form(), getPropertiesFormValues(), initPropertiesForm(), ilGlobalTemplateInterface\setContent(), and setTabs().
ilPCTableGUI::executeCommand | ( | ) |
Definition at line 60 of file class.ilPCTableGUI.php.
References ILIAS\Repository\ctrl(), and ilPageContentGUI\getCharacteristicsOfCurrentStyle().
|
protected |
Definition at line 1206 of file class.ilPCTableGUI.php.
References $mobs, ilPageContentGUI\$style, ilObject\_lookupType(), ilPageContentGUI\getPage(), ilPageContentGUI\getStyleId(), ilObjStyleSheet\getTemplateXML(), and renderCell().
Referenced by getEditDataTable().
|
protected |
Definition at line 1194 of file class.ilPCTableGUI.php.
References $base.
Referenced by getEditDataTable().
ilPCTableGUI::getEditDataTable | ( | bool | $initial = false | ) |
Definition at line 1052 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $i, $path, $res, ILIAS\Repository\ctrl(), getCellContent(), getColumnCaption(), ilPageContentGUI\getHierId(), ilInternalLinkGUI\getInitHTML(), ILIAS\Repository\lng(), xpath_eval(), and xpath_new_context().
Referenced by editData().
|
protected |
Definition at line 174 of file class.ilPCTableGUI.php.
References ILIAS\Repository\lng().
Referenced by initPropertiesForm().
ilPCTableGUI::getNewTableObject | ( | ) |
Definition at line 885 of file class.ilPCTableGUI.php.
References ilPageContentGUI\getPage().
Referenced by create().
ilPCTableGUI::getPropertiesFormValues | ( | ) |
Definition at line 381 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$content_obj, $mobs, ilPageContentGUI\$style, ilObjStyleSheet\_lookupTemplateIdByName(), ilObject\_lookupType(), _renderTable(), ILIAS\Repository\form(), ilPageContentGUI\getPage(), ilPageContentGUI\getStyleId(), and ilObjStyleSheet\getTemplateXML().
Referenced by editProperties().
ilPCTableGUI::getTemplateOptions | ( | string | $a_type = "" | ) |
Definition at line 150 of file class.ilPCTableGUI.php.
Referenced by initPropertiesForm().
ilPCTableGUI::initPropertiesForm | ( | string | $a_mode = "edit" | ) |
Definition at line 182 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$chars, $cols, ilPageContentGUI\$ctrl, $i, $ilUser, $lang, ilPageContentGUI\$lng, $rows, $user, ilMDLanguageItem\_getLanguages(), ilRadioOption\addSubItem(), ILIAS\Repository\form(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), ilPageContentGUI\getCurrentTextLang(), getFormTitle(), getTemplateOptions(), ILIAS\Repository\lng(), setBasicTableCellStyles(), and ilLanguage\txt().
Referenced by create(), editProperties(), insert(), and setProperties().
ilPCTableGUI::insert | ( | ) |
Definition at line 875 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), ILIAS\Repository\form(), initPropertiesForm(), and ilGlobalTemplateInterface\setContent().
Referenced by create().
ilPCTableGUI::leftAlign | ( | ) |
Definition at line 851 of file class.ilPCTableGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCTableGUI::leftFloatAlign | ( | ) |
Definition at line 863 of file class.ilPCTableGUI.php.
References ilPageContentGUI\updateAndReturn().
|
protected |
Static render table function.
Definition at line 1248 of file class.ilPCTableGUI.php.
References $DIC, $ilUser, $params, ilUtil\getImagePath(), ilCOPagePCDef\getPCDefinitions(), ilFileUtils\getWebspaceDir(), xslt_create(), and xslt_free().
Referenced by getCellContent().
ilPCTableGUI::rightAlign | ( | ) |
Definition at line 845 of file class.ilPCTableGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCTableGUI::rightFloatAlign | ( | ) |
Definition at line 869 of file class.ilPCTableGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCTableGUI::saveProperties | ( | ) |
save table properties in db and return to page edit screen
Definition at line 832 of file class.ilPCTableGUI.php.
References ILIAS\Repository\ctrl(), edit(), and setProperties().
ilPCTableGUI::setAlignment | ( | ) |
Set cell alignments.
Definition at line 999 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng, ILIAS\Repository\ctrl(), ilUtil\stripSlashes(), and ilLanguage\txt().
ilPCTableGUI::setBasicTableCellStyles | ( | ) |
Definition at line 51 of file class.ilPCTableGUI.php.
References ilPageContentGUI\setCharacteristics().
Referenced by editCellStyle(), and initPropertiesForm().
ilPCTableGUI::setCellPropertiesSubTabs | ( | ) |
Definition at line 116 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, and $tabs.
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), and editCellWidth().
|
protected |
Set editor tool context.
Definition at line 1025 of file class.ilPCTableGUI.php.
References ilCOPageEditGSToolProvider\SHOW_EDITOR.
Referenced by editData().
ilPCTableGUI::setProperties | ( | ) |
Set properties from input form.
Definition at line 794 of file class.ilPCTableGUI.php.
References ILIAS\Repository\form(), and initPropertiesForm().
Referenced by create(), and saveProperties().
ilPCTableGUI::setSpans | ( | ) |
Set cell spans.
Definition at line 771 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng, ILIAS\Repository\ctrl(), and ilLanguage\txt().
ilPCTableGUI::setStyles | ( | ) |
Set cell styles.
Definition at line 723 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng, ILIAS\Repository\ctrl(), ilUtil\stripSlashes(), and ilLanguage\txt().
ilPCTableGUI::setTabs | ( | string | $data_tab_txt_key = "" | ) |
Definition at line 78 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, $tabs, ILIAS\Repository\ctrl(), and ilLanguage\txt().
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), editCellWidth(), editData(), and editProperties().
ilPCTableGUI::setWidths | ( | ) |
Set cell widths.
Definition at line 748 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng, ILIAS\Repository\ctrl(), ilUtil\stripSlashes(), and ilLanguage\txt().
|
protected |
Definition at line 28 of file class.ilPCTableGUI.php.
|
protected |
Definition at line 29 of file class.ilPCTableGUI.php.
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), editCellWidth(), setCellPropertiesSubTabs(), and setTabs().
|
protected |
Definition at line 31 of file class.ilPCTableGUI.php.
|
protected |
Definition at line 30 of file class.ilPCTableGUI.php.
Referenced by initPropertiesForm().