ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 () | |
Set tabs. More... | |
setCellPropertiesSubTabs () | |
Set tabs. More... | |
getTemplateOptions ($a_type="") | |
Get table templates. More... | |
edit () | |
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... | |
Public Member Functions inherited from ilPageContentGUI | |
__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... | |
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) |
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 Public Member Functions inherited from ilPageContentGUI | |
static | _getCommonBBButtons () |
Get common bb buttons. More... | |
Protected Attributes | |
$tabs | |
$user | |
Protected Attributes inherited from ilPageContentGUI | |
$error | |
$log | |
Additional Inherited Members | |
Data Fields inherited from ilPageContentGUI | |
$content_obj | |
$tpl | |
$lng | |
$ctrl | |
$pg_obj | |
$hier_id | |
$dom | |
$updated | |
$target_script | |
$return_location | |
$page_config = null | |
Static Public Attributes inherited from ilPageContentGUI | |
static | $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;" |
Protected Member Functions inherited from ilPageContentGUI | |
getCharacteristicsOfCurrentStyle ($a_type) | |
Get characteristics of current style. More... | |
Static Protected Attributes inherited from ilPageContentGUI | |
static | $common_bb_buttons |
Class ilPCTableGUI.
User Interface for Table Editing
Definition at line 17 of file class.ilPCTableGUI.php.
ilPCTableGUI::__construct | ( | & | $a_pg_obj, |
& | $a_content_obj, | ||
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Constructor public.
Definition at line 34 of file class.ilPCTableGUI.php.
References $DIC, ilPageContentGUI\setCharacteristics(), and user().
|
static |
Add alignment checkboxes in edit mode.
Definition at line 541 of file class.ilPCTableGUI.php.
References $DIC, and ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add span inputs.
Definition at line 586 of file class.ilPCTableGUI.php.
References $DIC, $i, and ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add style checkboxes in edit mode.
Definition at line 514 of file class.ilPCTableGUI.php.
References $DIC, and ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add width inputs.
Definition at line 565 of file class.ilPCTableGUI.php.
References $DIC, and ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Static render table function.
Definition at line 452 of file class.ilPCTableGUI.php.
References $DIC, $ilUser, Sabre\VObject\$output, PHPMailer\PHPMailer\$params, _addAlignmentCheckboxes(), _addSpanInputs(), _addStyleCheckboxes(), _addWidthInputs(), ilUtil\getImagePath(), ilUtil\getWebspaceDir(), xslt_create(), xslt_error(), and xslt_free().
Referenced by ilObjStyleSheetGUI\_getTemplatePreview(), and renderTable().
ilPCTableGUI::afterCreation | ( | ) |
After creation processing.
Definition at line 967 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 917 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, afterCreation(), getNewTableObject(), insert(), setProperties(), and ilUtil\stripSlashes().
ilPCTableGUI::edit | ( | ) |
edit properties form
Definition at line 157 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $html, $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), getPropertiesFormValues(), initPropertiesForm(), renderTable(), and setTabs().
Referenced by saveProperties().
ilPCTableGUI::editCellAlignment | ( | ) |
Edit cell styles.
Definition at line 980 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $form, $html, $ilCtrl, ilPageContentGUI\$lng, PHPMailer\PHPMailer\$options, $si, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), renderTable(), setCellPropertiesSubTabs(), ilSelectInputGUI\setOptions(), and setTabs().
ilPCTableGUI::editCellSpan | ( | ) |
Edit cell spans.
Definition at line 700 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $html, $ilCtrl, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), renderTable(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellStyle | ( | ) |
Edit cell styles.
Definition at line 625 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $form, $html, $ilCtrl, ilPageContentGUI\$lng, PHPMailer\PHPMailer\$options, $style, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), renderTable(), setBasicTableCellStyles(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellWidth | ( | ) |
Edit cell widths.
Definition at line 674 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $html, $ilCtrl, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), renderTable(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::executeCommand | ( | ) |
execute command
Definition at line 59 of file class.ilPCTableGUI.php.
References $ret, and ilPageContentGUI\getCharacteristicsOfCurrentStyle().
ilPCTableGUI::getNewTableObject | ( | ) |
Get new table object.
Definition at line 909 of file class.ilPCTableGUI.php.
References ilPageContentGUI\getPage().
Referenced by create().
ilPCTableGUI::getPropertiesFormValues | ( | ) |
Get properties form.
Definition at line 390 of file class.ilPCTableGUI.php.
References $values, ilObjStyleSheet\_lookupTemplateIdByName(), and ilPageContentGUI\getStyleId().
Referenced by edit().
ilPCTableGUI::getTemplateOptions | ( | $a_type = "" | ) |
Get table templates.
Definition at line 149 of file class.ilPCTableGUI.php.
Referenced by initPropertiesForm().
ilPCTableGUI::initPropertiesForm | ( | $a_mode = "edit" | ) |
Init properties form.
Definition at line 176 of file class.ilPCTableGUI.php.
References $_GET, $_SESSION, $border, $cols, ilPageContentGUI\$ctrl, $html, $i, $ilCtrl, $ilUser, $lang, $language, ilPageContentGUI\$lng, PHPMailer\PHPMailer\$options, $rows, $t, ilPageContentGUI\$tpl, $user, ilMDLanguageItem\_getLanguages(), ilRadioOption\addSubItem(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), getTemplateOptions(), setBasicTableCellStyles(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), and ilTextInputGUI\setSize().
Referenced by edit(), and insert().
ilPCTableGUI::insert | ( | ) |
insert new table form
Definition at line 892 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $html, $ilCtrl, $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 872 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::renderTable | ( | $a_mode = "table_edit" , |
|
$a_submode = "" |
|||
) |
Render the table.
Definition at line 422 of file class.ilPCTableGUI.php.
References $mobs, $style, ilObject\_lookupType(), _renderTable(), and ilPageContentGUI\getStyleId().
Referenced by edit(), editCellAlignment(), editCellSpan(), editCellStyle(), and editCellWidth().
ilPCTableGUI::rightAlign | ( | ) |
ilPCTableGUI::rightFloatAlign | ( | ) |
ilPCTableGUI::saveProperties | ( | ) |
save table properties in db and return to page edit screen
Definition at line 826 of file class.ilPCTableGUI.php.
References edit(), and setProperties().
ilPCTableGUI::setAlignment | ( | ) |
Set cell alignments.
Definition at line 1023 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, and ilUtil\stripSlashes().
ilPCTableGUI::setBasicTableCellStyles | ( | ) |
Set basic table cell styles.
Definition at line 50 of file class.ilPCTableGUI.php.
References ilPageContentGUI\setCharacteristics().
Referenced by editCellStyle(), and initPropertiesForm().
ilPCTableGUI::setCellPropertiesSubTabs | ( | ) |
Set tabs.
Definition at line 111 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $ilCtrl, ilPageContentGUI\$lng, and $tabs.
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), and editCellWidth().
ilPCTableGUI::setProperties | ( | ) |
Set properties from input form.
Definition at line 791 of file class.ilPCTableGUI.php.
References $_POST, $t, and ilUtil\stripSlashes().
Referenced by create(), and saveProperties().
ilPCTableGUI::setSpans | ( | ) |
Set cell spans.
Definition at line 772 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, and ilUtil\stripSlashes().
ilPCTableGUI::setStyles | ( | ) |
Set cell styles and.
Definition at line 726 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, and ilUtil\stripSlashes().
ilPCTableGUI::setTabs | ( | ) |
Set tabs.
Definition at line 82 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$ctrl, $ilCtrl, ilPageContentGUI\$lng, and $tabs.
Referenced by edit(), editCellAlignment(), editCellSpan(), editCellStyle(), and editCellWidth().
ilPCTableGUI::setWidths | ( | ) |
Set cell widths.
Definition at line 750 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, and ilUtil\stripSlashes().
|
protected |
Definition at line 22 of file class.ilPCTableGUI.php.
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), editCellWidth(), setCellPropertiesSubTabs(), and setTabs().
|
protected |
Definition at line 27 of file class.ilPCTableGUI.php.
Referenced by initPropertiesForm(), and insert().