ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilPCTableGUI. More...
Public Member Functions | |
ilPCDataTableGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="") | |
Constructor public. | |
& | executeCommand () |
execute command | |
editData () | |
Edit data of table. | |
update ($a_redirect=true) | |
update table data in dom and update page in db | |
getNewTableObject () | |
Get new table object. | |
afterCreation () | |
After creation processing. | |
tableAction () | |
Perform operation on table (adding, moving, deleting rows/cols) | |
setTabs () | |
Set tabs. | |
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 | |
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. | |
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. |
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 | _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 321 of file class.ilPCDataTableGUI.php.
References $ilCtrl, editData(), and ilPageContentGUI\setHierId().
ilPCDataTableGUI::editData | ( | ) |
Edit data of table.
Definition at line 58 of file class.ilPCDataTableGUI.php.
References $_POST, $command, $ilCtrl, ilPageContentGUI\$lng, $res, ilPageContentGUI\$tpl, $type, ilPageContentGUI\displayValidationError(), ilPageContentGUI\getBBMenu(), ilUtil\getImagePath(), setTabs(), ilUtil\stripSlashes(), ilPCParagraph\xml2output(), xpath_eval(), and xpath_new_context().
Referenced by afterCreation(), and update().
& 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 313 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 360 of file class.ilPCDataTableGUI.php.
References $ilCtrl.
Referenced by editData().
ilPCDataTableGUI::tableAction | ( | ) |
Perform operation on table (adding, moving, deleting rows/cols)
Definition at line 338 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 264 of file class.ilPCDataTableGUI.php.
References $_POST, $data, $ilBench, ilPageContentGUI\$lng, $row, ilPCParagraph\_input2xml(), editData(), and ilUtil\sendSuccess().
Referenced by tableAction().