ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilPCTableGUI. More...
Public Member Functions | |
ilPCTableGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="") | |
Constructor public. | |
setBasicTableCellStyles () | |
Set basic table cell styles. | |
& | executeCommand () |
execute command | |
setTabs () | |
Set tabs. | |
setCellPropertiesSubTabs () | |
Set tabs. | |
getTemplateOptions () | |
Get table templates. | |
edit () | |
edit properties form | |
initPropertiesForm ($a_mode="edit") | |
Init properties form. | |
getPropertiesFormValues () | |
Get properties form. | |
renderTable ($a_mode="table_edit", $a_submode="") | |
Render the table. | |
editCellStyle () | |
Edit cell styles. | |
editCellWidth () | |
Edit cell widths. | |
editCellSpan () | |
Edit cell spans. | |
setStyles () | |
Set cell styles and. | |
setWidths () | |
Set cell widths. | |
setSpans () | |
Set cell spans. | |
setProperties () | |
Set properties from input form. | |
saveProperties () | |
save table properties in db and return to page edit screen | |
rightAlign () | |
align table to right | |
leftAlign () | |
align table to left | |
centerAlign () | |
align table to left | |
leftFloatAlign () | |
align table to left float | |
rightFloatAlign () | |
align table to left | |
insert () | |
insert new table form | |
getNewTableObject () | |
Get new table object. | |
create () | |
create new table in dom and update page in db | |
afterCreation () | |
After creation processing. | |
editCellAlignment () | |
Edit cell styles. | |
setAlignment () | |
Set cell alignments. | |
Public Member Functions inherited from ilPageContentGUI | |
ilPageContentGUI ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="") | |
Constructor public. | |
setContentObject ($a_val) | |
Set content object. | |
getContentObject () | |
Get content object. | |
setPage ($a_val) | |
Set page. | |
getPage () | |
Get page. | |
setPageConfig ($a_val) | |
Set Page Config. | |
getPageConfig () | |
Get Page Config. | |
setStyleId ($a_styleid) | |
Set Style Id. | |
getStyleId () | |
Get Style Id. | |
getStyle () | |
Get style object. | |
setCharacteristics ($a_chars) | |
Set Characteristics. | |
getCharacteristics () | |
Get characteristics. | |
getHierId () | |
get hierarchical id in dom object | |
setHierId ($a_hier_id) | |
get hierarchical id in dom object | |
getBBMenu ($a_ta_name="par_content") | |
Get the bb menu incl. | |
delete () | |
delete content element | |
moveAfter () | |
move content element after another element | |
moveBefore () | |
move content element before another element | |
splitPage () | |
split page to new page at specified position | |
splitPageNext () | |
split page to next page at specified position | |
displayValidationError () | |
display validation errors | |
cancelCreate () | |
cancel creating page content | |
cancelUpdate () | |
cancel update | |
cancel () | |
Cancel. | |
deactivate () | |
gui function set enabled if is not enabled and vice versa | |
cut () | |
Cut single element. | |
copy () | |
Copy single element. | |
getTemplateOptions ($a_type) | |
Get table templates. |
Static Public Member Functions | |
static | _renderTable ($content, $a_mode="table_edit", $a_submode="", $a_table_obj=null) |
Static render table function. | |
static | _addStyleCheckboxes ($a_output, $a_table) |
Add style checkboxes in edit mode. | |
static | _addAlignmentCheckboxes ($a_output, $a_table) |
Add alignment checkboxes in edit mode. | |
static | _addWidthInputs ($a_output, $a_table) |
Add width inputs. | |
static | _addSpanInputs ($a_output, $a_table) |
Add span inputs. | |
Static Public Member Functions inherited from ilPageContentGUI | |
static | _getCommonBBButtons () |
Get common bb buttons. |
Additional Inherited Members | |
Data Fields inherited from ilPageContentGUI | |
$content_obj | |
$ilias | |
$tpl | |
$lng | |
$ctrl | |
$pg_obj | |
$hier_id | |
$dom | |
$updated | |
$target_script | |
$return_location | |
$page_config = null | |
Protected Member Functions inherited from ilPageContentGUI | |
getCharacteristicsOfCurrentStyle ($a_type) | |
Get characteristics of current style. | |
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.
|
static |
Add alignment checkboxes in edit mode.
Definition at line 506 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add span inputs.
Definition at line 550 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add style checkboxes in edit mode.
Definition at line 478 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add width inputs.
Definition at line 530 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Static render table function.
Definition at line 421 of file class.ilPCTableGUI.php.
References $ilUser, _addAlignmentCheckboxes(), _addSpanInputs(), _addStyleCheckboxes(), _addWidthInputs(), ilUtil\getImagePath(), ilUtil\getWebspaceDir(), xslt_create(), xslt_error(), xslt_free(), and xslt_process().
Referenced by ilObjStyleSheetGUI\_getTemplatePreview(), and renderTable().
ilPCTableGUI::afterCreation | ( | ) |
After creation processing.
Reimplemented in ilPCDataTableGUI.
Definition at line 934 of file class.ilPCTableGUI.php.
Referenced by create().
ilPCTableGUI::centerAlign | ( | ) |
align table to left
Definition at line 825 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::create | ( | ) |
create new table in dom and update page in db
Definition at line 877 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, afterCreation(), getNewTableObject(), insert(), setProperties(), and ilUtil\stripSlashes().
ilPCTableGUI::edit | ( | ) |
edit properties form
Definition at line 120 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), getPropertiesFormValues(), initPropertiesForm(), and setTabs().
Referenced by saveProperties().
ilPCTableGUI::editCellAlignment | ( | ) |
Edit cell styles.
Definition at line 947 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, $options, $si, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), setCellPropertiesSubTabs(), ilSelectInputGUI\setOptions(), and setTabs().
ilPCTableGUI::editCellSpan | ( | ) |
Edit cell spans.
Definition at line 660 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellStyle | ( | ) |
Edit cell styles.
Definition at line 590 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, $options, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), setBasicTableCellStyles(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellWidth | ( | ) |
Edit cell widths.
Definition at line 636 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), setCellPropertiesSubTabs(), and setTabs().
& ilPCTableGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilPCDataTableGUI.
Definition at line 43 of file class.ilPCTableGUI.php.
References $cmd, $ret, and ilPageContentGUI\getCharacteristicsOfCurrentStyle().
ilPCTableGUI::getNewTableObject | ( | ) |
Get new table object.
Reimplemented in ilPCDataTableGUI.
Definition at line 869 of file class.ilPCTableGUI.php.
References ilPageContentGUI\getPage().
Referenced by create().
ilPCTableGUI::getPropertiesFormValues | ( | ) |
Get properties form.
Definition at line 360 of file class.ilPCTableGUI.php.
References ilObjStyleSheet\_lookupTemplateIdByName(), and ilPageContentGUI\getStyleId().
Referenced by edit().
ilPCTableGUI::getTemplateOptions | ( | ) |
Get table templates.
Definition at line 112 of file class.ilPCTableGUI.php.
Referenced by initPropertiesForm().
ilPCTableGUI::ilPCTableGUI | ( | & | $a_pg_obj, |
& | $a_content_obj, | ||
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Constructor public.
Definition at line 24 of file class.ilPCTableGUI.php.
References ilPageContentGUI\ilPageContentGUI(), and ilPageContentGUI\setCharacteristics().
ilPCTableGUI::initPropertiesForm | ( | $a_mode = "edit" | ) |
Init properties form.
Definition at line 137 of file class.ilPCTableGUI.php.
References $_GET, $_SESSION, $ilCtrl, $ilUser, $lang, ilPageContentGUI\$lng, $options, $t, ilPageContentGUI\$tpl, ilMDLanguageItem\_getLanguages(), ilRadioOption\addSubItem(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), getTemplateOptions(), setBasicTableCellStyles(), ilSelectInputGUI\setOptions(), ilTextInputGUI\setSize(), and ilTextInputGUI\setValue().
Referenced by edit(), and insert().
ilPCTableGUI::insert | ( | ) |
insert new table form
Definition at line 855 of file class.ilPCTableGUI.php.
References $ilCtrl, $ilUser, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), and initPropertiesForm().
Referenced by create().
ilPCTableGUI::leftAlign | ( | ) |
align table to left
Definition at line 815 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::leftFloatAlign | ( | ) |
align table to left float
Definition at line 835 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::renderTable | ( | $a_mode = "table_edit" , |
|
$a_submode = "" |
|||
) |
Render the table.
Definition at line 395 of file class.ilPCTableGUI.php.
References $mobs, ilObject\_lookupType(), _renderTable(), and ilPageContentGUI\getStyleId().
ilPCTableGUI::rightAlign | ( | ) |
align table to right
Definition at line 805 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::rightFloatAlign | ( | ) |
align table to left
Definition at line 845 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::saveProperties | ( | ) |
save table properties in db and return to page edit screen
Definition at line 786 of file class.ilPCTableGUI.php.
References edit(), and setProperties().
ilPCTableGUI::setAlignment | ( | ) |
Set cell alignments.
Definition at line 988 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilPCTableGUI::setBasicTableCellStyles | ( | ) |
Set basic table cell styles.
Definition at line 34 of file class.ilPCTableGUI.php.
References ilPageContentGUI\setCharacteristics().
Referenced by editCellStyle(), and initPropertiesForm().
ilPCTableGUI::setCellPropertiesSubTabs | ( | ) |
Set tabs.
Definition at line 87 of file class.ilPCTableGUI.php.
References $ilCtrl, and ilPageContentGUI\$lng.
Referenced by editCellAlignment(), editCellSpan(), editCellStyle(), and editCellWidth().
ilPCTableGUI::setProperties | ( | ) |
Set properties from input form.
Definition at line 750 of file class.ilPCTableGUI.php.
References $_POST, $t, and ilUtil\stripSlashes().
Referenced by create(), and saveProperties().
ilPCTableGUI::setSpans | ( | ) |
Set cell spans.
Definition at line 729 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilPCTableGUI::setStyles | ( | ) |
Set cell styles and.
Definition at line 684 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilPCTableGUI::setTabs | ( | ) |
Set tabs.
Reimplemented in ilPCDataTableGUI.
Definition at line 67 of file class.ilPCTableGUI.php.
References $ilCtrl, and ilPageContentGUI\$lng.
Referenced by edit(), editCellAlignment(), editCellSpan(), editCellStyle(), and editCellWidth().
ilPCTableGUI::setWidths | ( | ) |
Set cell widths.
Definition at line 708 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().