ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilDataCollectionFieldEditGUI. More...
Public Member Functions | |
__construct (ilObjDataCollectionGUI $a_parent_obj, $table_id, $field_id) | |
Constructor. | |
executeCommand () | |
execute command | |
create () | |
create field add form | |
edit () | |
create field edit form | |
permissionDenied () | |
confirmDelete () | |
confirmDelete | |
cancelDelete () | |
cancelDelete | |
delete () | |
cancel () | |
initForm ($a_mode="create") | |
initEditCustomForm | |
getValues () | |
getFieldValues | |
save ($a_mode="create") | |
save Field |
Protected Member Functions | |
checkInput ($a_mode) | |
Check input of form. |
Private Member Functions | |
accessDenied () |
Private Attributes | |
$obj_id | |
$table_id | |
$parent_obj | |
$table |
Class ilDataCollectionFieldEditGUI.
Definition at line 21 of file class.ilDataCollectionFieldEditGUI.php.
ilDataCollectionFieldEditGUI::__construct | ( | ilObjDataCollectionGUI | $a_parent_obj, |
$table_id, | |||
$field_id | |||
) |
Constructor.
object | $a_parent_obj | |
int | $table_id | We need a table_id if no field_id is set (creation mode). We ignore the table_id by edit mode |
int | $field_id | The field_id of a existing fiel (edit mode) |
Definition at line 35 of file class.ilDataCollectionFieldEditGUI.php.
References $_GET, $ilCtrl, $table_id, ilDataCollectionCache\getFieldCache(), and ilDataCollectionCache\getTableCache().
|
private |
Definition at line 476 of file class.ilDataCollectionFieldEditGUI.php.
References $tpl.
Referenced by save().
ilDataCollectionFieldEditGUI::cancel | ( | ) |
Definition at line 171 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl.
ilDataCollectionFieldEditGUI::cancelDelete | ( | ) |
cancelDelete
Definition at line 150 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl.
|
protected |
Check input of form.
$a_mode | 'create' | 'update' |
Definition at line 444 of file class.ilDataCollectionFieldEditGUI.php.
References $lng, ilDataCollectionTable\_hasFieldByTitle(), ilDataCollectionDatatype\INPUTFORMAT_TEXT, ilDataCollectionField\PROPERTYID_LENGTH, ilDataCollectionField\PROPERTYID_TEXTAREA, and ilUtil\sendFailure().
Referenced by save().
ilDataCollectionFieldEditGUI::confirmDelete | ( | ) |
confirmDelete
Definition at line 130 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl, $lng, and $tpl.
ilDataCollectionFieldEditGUI::create | ( | ) |
create field add form
Definition at line 95 of file class.ilDataCollectionFieldEditGUI.php.
References $tpl, and initForm().
ilDataCollectionFieldEditGUI::delete | ( | ) |
Definition at line 160 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl.
ilDataCollectionFieldEditGUI::edit | ( | ) |
create field edit form
Definition at line 106 of file class.ilDataCollectionFieldEditGUI.php.
References $tpl, getValues(), and initForm().
ilDataCollectionFieldEditGUI::executeCommand | ( | ) |
execute command
Definition at line 68 of file class.ilDataCollectionFieldEditGUI.php.
References $cmd, $ilCtrl, $ilUser, $tpl, permissionDenied(), and save().
ilDataCollectionFieldEditGUI::getValues | ( | ) |
getFieldValues
Definition at line 328 of file class.ilDataCollectionFieldEditGUI.php.
References ilDataCollectionDatatype\getAllDatatypes(), and ilDataCollectionDatatype\getProperties().
Referenced by edit().
ilDataCollectionFieldEditGUI::initForm | ( | $a_mode = "create" | ) |
initEditCustomForm
string | $a_mode | values: create | edit |
Definition at line 182 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl, $lng, $options, $table, ilDataCollectionField\_getTitleValidChars(), ilSubEnabledFormPropertyGUI\addSubItem(), ilDataCollectionDatatype\getAllDatatypes(), ilDataCollectionDatatype\getProperties(), ilDataCollectionDatatype\INPUTFORMAT_BOOLEAN, ilDataCollectionDatatype\INPUTFORMAT_NUMBER, ilDataCollectionDatatype\INPUTFORMAT_REFERENCE, ilDataCollectionDatatype\INPUTFORMAT_REFERENCELIST, ilDataCollectionField\PROPERTYID_REFERENCE, ilDataCollectionField\PROPERTYID_REFERENCELIST, ilFormPropertyGUI\setRequired(), and ilNumberInputGUI\setSize().
Referenced by create(), edit(), and save().
ilDataCollectionFieldEditGUI::permissionDenied | ( | ) |
Definition at line 119 of file class.ilDataCollectionFieldEditGUI.php.
References $tpl.
Referenced by executeCommand().
ilDataCollectionFieldEditGUI::save | ( | $a_mode = "create" | ) |
save Field
string | $a_mode | values: create | update |
Definition at line 364 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl, $lng, $tpl, accessDenied(), checkInput(), ilDataCollectionDatatype\getProperties(), initForm(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
Referenced by executeCommand().
|
private |
Definition at line 23 of file class.ilDataCollectionFieldEditGUI.php.
|
private |
Definition at line 25 of file class.ilDataCollectionFieldEditGUI.php.
|
private |
Definition at line 26 of file class.ilDataCollectionFieldEditGUI.php.
Referenced by initForm().
|
private |
Definition at line 24 of file class.ilDataCollectionFieldEditGUI.php.
Referenced by __construct().