ILIAS
Release_4_1_x_branch Revision 61804
|
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. | |
setStyleId ($a_styleid) | |
Set Style Id. | |
getStyleId () | |
Get Style Id. | |
setEnableInternalLinks ($a_val) | |
Set enable internal links. | |
getEnableInternalLinks () | |
Get enable internal links. | |
setEnableKeywords ($a_val) | |
Set enable keywords handling. | |
getEnableKeywords () | |
Get enable keywords handling. | |
setEnableAnchors ($a_val) | |
Set enable anchors. | |
getEnableAnchors () | |
Get enable anchors. | |
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 | |
deactivate () | |
gui function set enabled if is not enabled and vice versa | |
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 | |
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 503 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add span inputs.
Definition at line 547 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add style checkboxes in edit mode.
Definition at line 475 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Add width inputs.
Definition at line 527 of file class.ilPCTableGUI.php.
References ilPageContentGUI\$lng.
Referenced by _renderTable().
|
static |
Static render table function.
Definition at line 418 of file class.ilPCTableGUI.php.
References _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 931 of file class.ilPCTableGUI.php.
Referenced by create().
ilPCTableGUI::centerAlign | ( | ) |
align table to left
Definition at line 822 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::create | ( | ) |
create new table in dom and update page in db
Definition at line 874 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 944 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), setCellPropertiesSubTabs(), ilSelectInputGUI\setOptions(), and setTabs().
ilPCTableGUI::editCellSpan | ( | ) |
Edit cell spans.
Definition at line 657 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellStyle | ( | ) |
Edit cell styles.
Definition at line 587 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), setBasicTableCellStyles(), setCellPropertiesSubTabs(), and setTabs().
ilPCTableGUI::editCellWidth | ( | ) |
Edit cell widths.
Definition at line 633 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 866 of file class.ilPCTableGUI.php.
Referenced by create().
ilPCTableGUI::getPropertiesFormValues | ( | ) |
Get properties form.
Definition at line 357 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, $lang, ilPageContentGUI\$lng, $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 852 of file class.ilPCTableGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), and initPropertiesForm().
Referenced by create().
ilPCTableGUI::leftAlign | ( | ) |
align table to left
Definition at line 812 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::leftFloatAlign | ( | ) |
align table to left float
Definition at line 832 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::renderTable | ( | $a_mode = "table_edit" , |
|
$a_submode = "" |
|||
) |
Render the table.
Definition at line 392 of file class.ilPCTableGUI.php.
References $mobs, ilObject\_lookupType(), _renderTable(), and ilPageContentGUI\getStyleId().
ilPCTableGUI::rightAlign | ( | ) |
align table to right
Definition at line 802 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::rightFloatAlign | ( | ) |
align table to left
Definition at line 842 of file class.ilPCTableGUI.php.
References $_SESSION.
ilPCTableGUI::saveProperties | ( | ) |
save table properties in db and return to page edit screen
Definition at line 783 of file class.ilPCTableGUI.php.
References edit(), and setProperties().
ilPCTableGUI::setAlignment | ( | ) |
Set cell alignments.
Definition at line 985 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 747 of file class.ilPCTableGUI.php.
References $_POST, $t, and ilUtil\stripSlashes().
Referenced by create(), and saveProperties().
ilPCTableGUI::setSpans | ( | ) |
Set cell spans.
Definition at line 726 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilPCTableGUI::setStyles | ( | ) |
Set cell styles and.
Definition at line 681 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 705 of file class.ilPCTableGUI.php.
References $_POST, ilPageContentGUI\$lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().