ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilPCTableGUI. More...
Public Member Functions | |
__construct (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="") | |
Constructor public. More... | |
setBasicTableCellStyles () | |
Set basic table cell styles. More... | |
executeCommand () | |
execute command More... | |
setTabs ($data_tab_txt_key="") | |
Set tabs. More... | |
setCellPropertiesSubTabs () | |
Set tabs. More... | |
getTemplateOptions ($a_type="") | |
Get table templates. More... | |
edit () | |
editProperties () | |
edit properties form More... | |
initPropertiesForm ($a_mode="edit") | |
Init properties form. More... | |
getPropertiesFormValues () | |
Get properties form. More... | |
renderTable ($a_mode="table_edit", $a_submode="") | |
Render the table. More... | |
editCellStyle () | |
Edit cell styles. More... | |
editCellWidth () | |
Edit cell widths. More... | |
editCellSpan () | |
Edit cell spans. More... | |
setStyles () | |
Set cell styles and. 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 () | |
align table to right More... | |
leftAlign () | |
align table to left More... | |
centerAlign () | |
align table to left More... | |
leftFloatAlign () | |
align table to left float More... | |
rightFloatAlign () | |
align table to left More... | |
insert () | |
insert new table form More... | |
getNewTableObject () | |
Get new table object. More... | |
create () | |
create new table in dom and update page in db More... | |
afterCreation () | |
After creation processing. More... | |
editCellAlignment () | |
Edit cell styles. More... | |
setAlignment () | |
Set cell alignments. More... | |
editData () | |
Edit data of table. More... | |
getEditDataTable ($initial=false) | |
![]() | |
__construct ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="") | |
Constructor public. More... | |
setContentObject ($a_val) | |
Set content object. More... | |
getContentObject () | |
Get content object. More... | |
setPage ($a_val) | |
Set page. More... | |
getPage () | |
Get page. More... | |
setPageConfig ($a_val) | |
Set Page Config. More... | |
getPageConfig () | |
Get Page Config. More... | |
setStyleId ($a_styleid) | |
Set Style Id. More... | |
getStyleId () | |
Get Style Id. More... | |
getStyle () | |
Get style object. More... | |
getCharacteristicsOfCurrentStyle ($a_type) | |
Get characteristics of current style. More... | |
setCharacteristics ($a_chars) | |
Set Characteristics. More... | |
getCharacteristics () | |
Get characteristics. More... | |
getHierId () | |
get hierarchical id in dom object More... | |
setHierId ($a_hier_id) | |
get hierarchical id in dom object More... | |
getBBMenu ($a_ta_name="par_content") | |
Get the bb menu incl. More... | |
delete () | |
delete content element More... | |
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 () | |
display validation errors More... | |
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 ($a_type) | |
Get table templates. More... | |
Static Public Member Functions | |
static | _renderTable ( $content, $a_mode="table_edit", $a_submode="", $a_table_obj=null, $unmask=true, $page_object=null) |
Static render table function. More... | |
static | _addStyleCheckboxes ($a_output, $a_table) |
Add style checkboxes in edit mode. More... | |
static | _addAlignmentCheckboxes ($a_output, $a_table) |
Add alignment checkboxes in edit mode. More... | |
static | _addWidthInputs ($a_output, $a_table) |
Add width inputs. More... | |
static | _addSpanInputs ($a_output, $a_table) |
Add span inputs. More... | |
![]() | |
static | _getCommonBBButtons () |
Get common bb buttons. More... | |
Protected Member Functions | |
setEditorToolContext () | |
Set editor tool context. More... | |
getCellContent (int $i, int $j) | |
renderCell ( $content, $unmask=true, $page_object=null) | |
Static render table function. More... | |
getColumnCaption (int $nr) | |
![]() | |
redirectToParent ($hier_id="") | |
Redirect to parent. More... | |
getParentReturn ($hier_id="") | |
Protected Attributes | |
$tabs | |
$user | |
$tool_context | |
![]() | |
$error | |
$log | |
Additional Inherited Members | |
![]() | |
$content_obj | |
$tpl | |
$lng | |
$ctrl | |
$pg_obj | |
$hier_id | |
$dom | |
$updated | |
$target_script | |
$return_location | |
$page_config = null | |
![]() | |
static | $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;" |
![]() | |
static | $common_bb_buttons |
Class ilPCTableGUI.
User Interface for Table Editing
See https://mantis.ilias.de/view.php?id=32856 ilPCTableGUI: ilAssGenFeedbackPageGUI
Definition at line 20 of file class.ilPCTableGUI.php.
ilPCTableGUI::__construct | ( | & | $a_pg_obj, |
& | $a_content_obj, | ||
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Constructor public.
Definition at line 41 of file class.ilPCTableGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilPageContentGUI\setCharacteristics(), and user().
|
static |
Add alignment checkboxes in edit mode.
Definition at line 576 of file class.ilPCTableGUI.php.
References $DIC, and ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add span inputs.
Definition at line 621 of file class.ilPCTableGUI.php.
References $DIC, $i, and ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add style checkboxes in edit mode.
Definition at line 549 of file class.ilPCTableGUI.php.
References $DIC, and ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add width inputs.
Definition at line 600 of file class.ilPCTableGUI.php.
References $DIC, and ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Static render table function.
Definition at line 475 of file class.ilPCTableGUI.php.
References $DIC, $ilUser, _addAlignmentCheckboxes(), _addSpanInputs(), _addStyleCheckboxes(), _addWidthInputs(), ilUtil\getImagePath(), ilCOPagePCDef\getPCDefinitions(), ilUtil\getWebspaceDir(), ilCOPagePCDef\requirePCClassByName(), xslt_create(), xslt_error(), and xslt_free().
Referenced by ilObjStyleSheetGUI\_getTemplatePreview(), and renderTable().
ilPCTableGUI::afterCreation | ( | ) |
After creation processing.
Definition at line 1002 of file class.ilPCTableGUI.php.
Referenced by create().
ilPCTableGUI::centerAlign | ( | ) |
ilPCTableGUI::create | ( | ) |
create new table in dom and update page in db
Definition at line 952 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, afterCreation(), getNewTableObject(), insert(), setProperties(), and ilUtil\stripSlashes().
ilPCTableGUI::edit | ( | ) |
Definition at line 173 of file class.ilPCTableGUI.php.
Referenced by saveProperties().
ilPCTableGUI::editCellAlignment | ( | ) |
Edit cell styles.
Definition at line 1015 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, $si, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), renderTable(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellSpan | ( | ) |
Edit cell spans.
Definition at line 735 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), renderTable(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellStyle | ( | ) |
Edit cell styles.
Definition at line 660 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), renderTable(), setBasicTableCellStyles(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellWidth | ( | ) |
Edit cell widths.
Definition at line 709 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), renderTable(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editData | ( | ) |
Edit data of table.
Definition at line 1096 of file class.ilPCTableGUI.php.
References ilPageContentGUI\displayValidationError(), getEditDataTable(), setEditorToolContext(), and setTabs().
Referenced by ilPCDataTableGUI\update(), and ilPCDataTableGUI\updateJS().
ilPCTableGUI::editProperties | ( | ) |
edit properties form
Definition at line 181 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), getPropertiesFormValues(), initPropertiesForm(), renderTable(), and setTabs().
ilPCTableGUI::executeCommand | ( | ) |
execute command
Definition at line 67 of file class.ilPCTableGUI.php.
References $ret, and ilPageContentGUI\getCharacteristicsOfCurrentStyle().
|
protected |
Definition at line 1252 of file class.ilPCTableGUI.php.
References $mobs, ilObject\_lookupType(), ilPageContentGUI\getPage(), ilPageContentGUI\getStyleId(), and renderCell().
Referenced by getEditDataTable().
|
protected |
Definition at line 1337 of file class.ilPCTableGUI.php.
References $base.
Referenced by getEditDataTable().
ilPCTableGUI::getEditDataTable | ( | $initial = false | ) |
Definition at line 1110 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $i, $res, getCellContent(), getColumnCaption(), ilPageContentGUI\getHierId(), ilInternalLinkGUI\getInitHTML(), xpath_eval(), and xpath_new_context().
Referenced by editData().
ilPCTableGUI::getNewTableObject | ( | ) |
Get new table object.
Definition at line 944 of file class.ilPCTableGUI.php.
References ilPageContentGUI\getPage().
Referenced by create().
ilPCTableGUI::getPropertiesFormValues | ( | ) |
Get properties form.
Definition at line 412 of file class.ilPCTableGUI.php.
References ilObjStyleSheet\_lookupTemplateIdByName(), and ilPageContentGUI\getStyleId().
Referenced by editProperties().
ilPCTableGUI::getTemplateOptions | ( | $a_type = "" | ) |
Get table templates.
Definition at line 168 of file class.ilPCTableGUI.php.
Referenced by initPropertiesForm().
ilPCTableGUI::initPropertiesForm | ( | $a_mode = "edit" | ) |
Init properties form.
Definition at line 198 of file class.ilPCTableGUI.php.
References $_GET, $_SESSION, $cols, ilPageContentGUI\$ctrl, $i, $ilUser, $lang, ilPageContentGUI\$lng, $rows, ilPageContentGUI\$tpl, $user, ilMDLanguageItem\_getLanguages(), ilRadioOption\addSubItem(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), getTemplateOptions(), and setBasicTableCellStyles().
Referenced by editProperties(), and insert().
ilPCTableGUI::insert | ( | ) |
insert new table form
Definition at line 927 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $ilUser, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, $user, ilPageContentGUI\displayValidationError(), and initPropertiesForm().
Referenced by create().
ilPCTableGUI::leftAlign | ( | ) |
ilPCTableGUI::leftFloatAlign | ( | ) |
align table to left float
Definition at line 907 of file class.ilPCTableGUI.php.
References $_SESSION.
|
protected |
Static render table function.
Definition at line 1294 of file class.ilPCTableGUI.php.
References $DIC, $ilUser, ilUtil\getImagePath(), ilCOPagePCDef\getPCDefinitions(), ilUtil\getWebspaceDir(), ilCOPagePCDef\requirePCClassByName(), xslt_create(), and xslt_free().
Referenced by getCellContent().
ilPCTableGUI::renderTable | ( | $a_mode = "table_edit" , |
|
$a_submode = "" |
|||
) |
Render the table.
Definition at line 444 of file class.ilPCTableGUI.php.
References $mobs, ilObject\_lookupType(), _renderTable(), ilPageContentGUI\getPage(), and ilPageContentGUI\getStyleId().
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), editCellWidth(), and editProperties().
ilPCTableGUI::rightAlign | ( | ) |
ilPCTableGUI::rightFloatAlign | ( | ) |
ilPCTableGUI::saveProperties | ( | ) |
save table properties in db and return to page edit screen
Definition at line 861 of file class.ilPCTableGUI.php.
References edit(), and setProperties().
ilPCTableGUI::setAlignment | ( | ) |
Set cell alignments.
Definition at line 1058 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, and ilUtil\stripSlashes().
ilPCTableGUI::setBasicTableCellStyles | ( | ) |
Set basic table cell styles.
Definition at line 58 of file class.ilPCTableGUI.php.
References ilPageContentGUI\setCharacteristics().
Referenced by editCellStyle(), and initPropertiesForm().
ilPCTableGUI::setCellPropertiesSubTabs | ( | ) |
Set tabs.
Definition at line 130 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, and $tabs.
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), and editCellWidth().
|
protected |
Set editor tool context.
Definition at line 1083 of file class.ilPCTableGUI.php.
References ilCOPageEditGSToolProvider\SHOW_EDITOR.
Referenced by editData().
ilPCTableGUI::setProperties | ( | ) |
Set properties from input form.
Definition at line 826 of file class.ilPCTableGUI.php.
References $_POST, and ilUtil\stripSlashes().
Referenced by create(), and saveProperties().
ilPCTableGUI::setSpans | ( | ) |
Set cell spans.
Definition at line 807 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, and ilUtil\stripSlashes().
ilPCTableGUI::setStyles | ( | ) |
Set cell styles and.
Definition at line 761 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, and ilUtil\stripSlashes().
ilPCTableGUI::setTabs | ( | $data_tab_txt_key = "" | ) |
Set tabs.
Definition at line 90 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, and $tabs.
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), editCellWidth(), editData(), and editProperties().
ilPCTableGUI::setWidths | ( | ) |
Set cell widths.
Definition at line 785 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, and ilUtil\stripSlashes().
|
protected |
Definition at line 25 of file class.ilPCTableGUI.php.
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), editCellWidth(), setCellPropertiesSubTabs(), and setTabs().
|
protected |
Definition at line 35 of file class.ilPCTableGUI.php.
|
protected |
Definition at line 30 of file class.ilPCTableGUI.php.
Referenced by initPropertiesForm(), and insert().