ILIAS
release_4-3 Revision
|
Class ilPCTableGUI. More...
Public Member Functions | |
ilPCDataTableGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="") | |
Constructor public. | |
& | executeCommand () |
execute command | |
editDataCl () | |
Edit data of table. | |
update ($a_redirect=true) | |
Update table data in dom and update page in db. | |
updateJS () | |
Update via JavaScript. | |
getNewTableObject () | |
Get new table object. | |
afterCreation () | |
After creation processing. | |
tableAction () | |
Perform operation on table (adding, moving, deleting rows/cols) | |
setTabs () | |
Set tabs. | |
editData () | |
Edit data of table. | |
Public Member Functions inherited from ilPCTableGUI | |
ilPCTableGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="") | |
Constructor public. | |
setBasicTableCellStyles () | |
Set basic table cell styles. | |
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 | |
create () | |
create new table in dom and update page in db | |
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 | |
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. |
Additional Inherited Members | |
Static Public Member Functions inherited from ilPCTableGUI | |
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. | |
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 Data Table Editing
Definition at line 18 of file class.ilPCDataTableGUI.php.
ilPCDataTableGUI::afterCreation | ( | ) |
After creation processing.
Reimplemented from ilPCTableGUI.
Definition at line 411 of file class.ilPCDataTableGUI.php.
References $ilCtrl, editData(), and ilPageContentGUI\setHierId().
ilPCDataTableGUI::editData | ( | ) |
Edit data of table.
Definition at line 470 of file class.ilPCDataTableGUI.php.
References $_POST, $GLOBALS, $ilCtrl, ilPageContentGUI\$lng, $path, $res, ilPageContentGUI\$tpl, ilPageEditorGUI\_doJSEditing(), ilPageContentGUI\displayValidationError(), editDataCl(), ilObjStyleSheet\getContentStylePath(), ilUtil\getImagePath(), ilPageContentGUI\getStyleId(), ilUtil\getStyleSheetLocation(), ilPageObjectGUI\getTinyMenu(), ilYuiUtil\initConnection(), ilYuiUtil\initDragDrop(), ilYuiUtil\initPanel(), setTabs(), ilUtil\stripSlashes(), ilPCParagraph\xml2output(), ilPCParagraphGUI\xml2outputJS(), xpath_eval(), and xpath_new_context().
Referenced by afterCreation(), update(), and updateJS().
ilPCDataTableGUI::editDataCl | ( | ) |
Edit data of table.
(classic version)
Definition at line 62 of file class.ilPCDataTableGUI.php.
References $_POST, $ilCtrl, ilPageContentGUI\$lng, $path, $res, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), ilPageContentGUI\getBBMenu(), ilUtil\getImagePath(), setTabs(), ilUtil\stripSlashes(), ilPCParagraph\xml2output(), xpath_eval(), and xpath_new_context().
Referenced by editData().
& ilPCDataTableGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilPCTableGUI.
Definition at line 34 of file class.ilPCDataTableGUI.php.
References $cmd, $ret, and ilPageContentGUI\getCharacteristicsOfCurrentStyle().
ilPCDataTableGUI::getNewTableObject | ( | ) |
Get new table object.
Reimplemented from ilPCTableGUI.
Definition at line 403 of file class.ilPCDataTableGUI.php.
ilPCDataTableGUI::ilPCDataTableGUI | ( | & | $a_pg_obj, |
& | $a_content_obj, | ||
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Constructor public.
Definition at line 25 of file class.ilPCDataTableGUI.php.
References ilPageContentGUI\ilPageContentGUI(), and ilPageContentGUI\setCharacteristics().
ilPCDataTableGUI::setTabs | ( | ) |
Set tabs.
Reimplemented from ilPCTableGUI.
Definition at line 450 of file class.ilPCDataTableGUI.php.
References $ilCtrl.
Referenced by editData(), and editDataCl().
ilPCDataTableGUI::tableAction | ( | ) |
Perform operation on table (adding, moving, deleting rows/cols)
Definition at line 428 of file class.ilPCDataTableGUI.php.
References $_POST, $_SESSION, $ilCtrl, and update().
ilPCDataTableGUI::update | ( | $a_redirect = true | ) |
Update table data in dom and update page in db.
Definition at line 268 of file class.ilPCDataTableGUI.php.
References $_POST, $data, $ilBench, ilPageContentGUI\$lng, $row, ilPCParagraph\_input2xml(), editData(), and ilUtil\sendSuccess().
Referenced by tableAction().
ilPCDataTableGUI::updateJS | ( | ) |
Update via JavaScript.
Definition at line 317 of file class.ilPCDataTableGUI.php.
References $_POST, $_SESSION, $data, $ilBench, $ilCtrl, ilPageContentGUI\$lng, ilPCParagraph\_input2xml(), editData(), ilPCParagraph\handleAjaxContent(), ilPCParagraph\handleAjaxContentPost(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().