ILIAS
Release_5_0_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 |
Data Fields | |
const | REFERENCE_SEPARATOR = " -> " |
Protected Member Functions | |
checkInput ($a_mode) | |
Check input of form. |
Protected Attributes | |
$obj_id | |
$table_id | |
$parent_obj | |
$table | |
$form |
Private Member Functions | |
accessDenied () |
Class ilDataCollectionFieldEditGUI.
Definition at line 22 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 59 of file class.ilDataCollectionFieldEditGUI.php.
References $_GET, $ilCtrl, $table_id, ilDataCollectionCache\getFieldCache(), and ilDataCollectionCache\getTableCache().
|
private |
Definition at line 491 of file class.ilDataCollectionFieldEditGUI.php.
References $tpl.
Referenced by save().
ilDataCollectionFieldEditGUI::cancel | ( | ) |
Definition at line 192 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl.
ilDataCollectionFieldEditGUI::cancelDelete | ( | ) |
cancelDelete
Definition at line 171 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl.
|
protected |
Check input of form.
$a_mode | 'create' | 'update' |
Definition at line 455 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 151 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl, $lng, and $tpl.
ilDataCollectionFieldEditGUI::create | ( | ) |
create field add form
Definition at line 118 of file class.ilDataCollectionFieldEditGUI.php.
References $tpl, and initForm().
ilDataCollectionFieldEditGUI::delete | ( | ) |
Definition at line 181 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl.
ilDataCollectionFieldEditGUI::edit | ( | ) |
create field edit form
Definition at line 129 of file class.ilDataCollectionFieldEditGUI.php.
References $tpl, getValues(), and initForm().
ilDataCollectionFieldEditGUI::executeCommand | ( | ) |
execute command
Definition at line 91 of file class.ilDataCollectionFieldEditGUI.php.
References $cmd, $ilCtrl, $ilUser, $tpl, permissionDenied(), and save().
ilDataCollectionFieldEditGUI::getValues | ( | ) |
getFieldValues
Definition at line 353 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 203 of file class.ilDataCollectionFieldEditGUI.php.
References $_GET, $ilCtrl, $lng, ilDataCollectionDatatype\$mob_suffixes, $options, $table, ilDataCollectionField\_getTitleValidChars(), ilSubEnabledFormPropertyGUI\addSubItem(), ilDataCollectionDatatype\getAllDatatypes(), ilDclExpressionParser\getFunctions(), ilDclExpressionParser\getOperators(), ilDataCollectionDatatype\getProperties(), ilDataCollectionCache\getTableCache(), ilDataCollectionDatatype\INPUTFORMAT_BOOLEAN, ilDataCollectionDatatype\INPUTFORMAT_NON_EDITABLE_VALUE, ilDataCollectionDatatype\INPUTFORMAT_NUMBER, ilDataCollectionDatatype\INPUTFORMAT_REFERENCE, ilDataCollectionDatatype\INPUTFORMAT_REFERENCELIST, ilDataCollectionField\PROPERTYID_FORMULA_EXPRESSION, ilDataCollectionField\PROPERTYID_N_REFERENCE, ilDataCollectionField\PROPERTYID_REFERENCE, ilFormPropertyGUI\setInfo(), ilFormPropertyGUI\setRequired(), ilNumberInputGUI\setSize(), and ilNonEditableValueGUI\setValue().
Referenced by create(), edit(), and save().
ilDataCollectionFieldEditGUI::permissionDenied | ( | ) |
Definition at line 142 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 385 of file class.ilDataCollectionFieldEditGUI.php.
References $ilCtrl, $lng, $tpl, accessDenied(), checkInput(), ilDataCollectionDatatype\getProperties(), initForm(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
Referenced by executeCommand().
|
protected |
Definition at line 50 of file class.ilDataCollectionFieldEditGUI.php.
|
protected |
Definition at line 30 of file class.ilDataCollectionFieldEditGUI.php.
|
protected |
Definition at line 40 of file class.ilDataCollectionFieldEditGUI.php.
|
protected |
Definition at line 45 of file class.ilDataCollectionFieldEditGUI.php.
Referenced by initForm().
|
protected |
Definition at line 35 of file class.ilDataCollectionFieldEditGUI.php.
Referenced by __construct().
const ilDataCollectionFieldEditGUI::REFERENCE_SEPARATOR = " -> " |
Definition at line 25 of file class.ilDataCollectionFieldEditGUI.php.