ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilDclRecordEditGUI. More...
Public Member Functions | |
__construct (ilObjDataCollectionGUI $parent_obj) | |
executeCommand () | |
getRecord () | |
create () | |
Create new record gui. More... | |
edit () | |
Record edit gui. More... | |
confirmDelete () | |
Delete confirmation. More... | |
cancelDelete () | |
Cancel deletion. More... | |
delete () | |
Remove record. More... | |
getRecordData ($record_id=0) | |
Return All fields and values from a record ID. More... | |
initForm () | |
init Form More... | |
setFormValues () | |
Set values from object to form. More... | |
cancelUpdate () | |
Cancel Update. More... | |
cancelSave () | |
Cancel Save. More... | |
save () | |
Save record. More... | |
searchObjects () | |
This function is only used by the ajax request if searching for ILIAS references. More... | |
getForm () | |
Data Fields | |
const | REDIRECT_RECORD_LIST = 1 |
Possible redirects after saving/updating a record - use GET['redirect'] to set constants. More... | |
const | REDIRECT_DETAIL = 2 |
Protected Member Functions | |
checkAndPerformRedirect ($force_redirect=false) | |
Checkes to what view (table or detail) should be redirected and performs redirect. More... | |
accessDenied () | |
sendFailure ($message) | |
getLanguageJsKeys () | |
parseSearchResults ($a_res) | |
Parse search results. More... | |
cleanupTempFiles () | |
Cleanup temp-files. More... | |
Protected Attributes | |
$record_id | |
$table_id | |
$table | |
$parent_obj | |
$record | |
$ctrl | |
$tpl | |
$lng | |
$user | |
$form | |
ilDclRecordEditGUI::__construct | ( | ilObjDataCollectionGUI | $parent_obj | ) |
ilObjDataCollectionGUI | $parent_obj |
Definition at line 70 of file class.ilDclRecordEditGUI.php.
References $DIC, $ilCtrl, $ilUser, $lng, $parent_obj, $tpl, and user().
|
protected |
Definition at line 633 of file class.ilDclRecordEditGUI.php.
References exit, and ilUtil\sendFailure().
Referenced by delete(), getRecord(), and save().
ilDclRecordEditGUI::cancelDelete | ( | ) |
Cancel deletion.
Definition at line 203 of file class.ilDclRecordEditGUI.php.
ilDclRecordEditGUI::cancelSave | ( | ) |
Cancel Save.
Definition at line 359 of file class.ilDclRecordEditGUI.php.
References array, cancelUpdate(), exit, ilDclBaseRecordModel\getRecordField(), ilDclFieldFactory\getRecordRepresentationInstance(), ilObjDataCollectionAccess\hasEditAccess(), ilObjDataCollectionAccess\hasWriteAccess(), IL_CAL_DATETIME, IL_CAL_UNIX, ilDclBaseRecordModel\setLastEditBy(), ilDclBaseRecordModel\setLastUpdate(), ilDclBaseRecordModel\setTableId(), time, and user().
ilDclRecordEditGUI::cancelUpdate | ( | ) |
Cancel Update.
Definition at line 350 of file class.ilDclRecordEditGUI.php.
References checkAndPerformRedirect().
Referenced by cancelSave().
|
protected |
Checkes to what view (table or detail) should be redirected and performs redirect.
Definition at line 613 of file class.ilDclRecordEditGUI.php.
References $_GET.
Referenced by cancelUpdate(), and save().
|
protected |
Cleanup temp-files.
Definition at line 740 of file class.ilDclRecordEditGUI.php.
References $_POST.
Referenced by edit().
ilDclRecordEditGUI::confirmDelete | ( | ) |
Delete confirmation.
ilDclException |
Definition at line 174 of file class.ilDclRecordEditGUI.php.
References $key, $record, ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), and ilDclCache\getRecordRepresentation().
ilDclRecordEditGUI::create | ( | ) |
Create new record gui.
Definition at line 137 of file class.ilDclRecordEditGUI.php.
References exit, getLanguageJsKeys(), and initForm().
ilDclRecordEditGUI::delete | ( | ) |
Remove record.
Definition at line 212 of file class.ilDclRecordEditGUI.php.
References $record, accessDenied(), ilDclCache\getRecordCache(), and ilUtil\sendSuccess().
ilDclRecordEditGUI::edit | ( | ) |
Record edit gui.
Definition at line 153 of file class.ilDclRecordEditGUI.php.
References cleanupTempFiles(), exit, getLanguageJsKeys(), initForm(), and setFormValues().
ilDclRecordEditGUI::executeCommand | ( | ) |
Definition at line 92 of file class.ilDclRecordEditGUI.php.
References getRecord().
ilDclRecordEditGUI::getForm | ( | ) |
Definition at line 752 of file class.ilDclRecordEditGUI.php.
References $form.
|
protected |
Definition at line 708 of file class.ilDclRecordEditGUI.php.
Referenced by create(), edit(), save(), and sendFailure().
ilDclRecordEditGUI::getRecord | ( | ) |
Definition at line 110 of file class.ilDclRecordEditGUI.php.
References $_GET, accessDenied(), ilDclCache\getRecordCache(), ilDclCache\getTableCache(), and ilObjDataCollectionAccess\hasAddRecordAccess().
Referenced by executeCommand().
ilDclRecordEditGUI::getRecordData | ( | $record_id = 0 | ) |
Return All fields and values from a record ID.
If this method is requested over AJAX, data is returned in JSON format
int | $record_id |
Definition at line 236 of file class.ilDclRecordEditGUI.php.
References $_GET, $record, $record_id, array, exit, and ilDclCache\getRecordCache().
ilDclRecordEditGUI::initForm | ( | ) |
init Form
move parts to RecordRepresentationGUI
Definition at line 260 of file class.ilDclRecordEditGUI.php.
References ilDclCache\getFieldRepresentation(), and ilObjDataCollectionAccess\hasWriteAccess().
Referenced by create(), edit(), and save().
|
protected |
Parse search results.
ilObject[] | $a_res |
Definition at line 721 of file class.ilDclRecordEditGUI.php.
References $r, $rows, ilObject\_lookupDescription(), ilObject\_lookupTitle(), and array.
Referenced by searchObjects().
ilDclRecordEditGUI::save | ( | ) |
Save record.
Definition at line 426 of file class.ilDclRecordEditGUI.php.
References $_POST, $_SESSION, $data, $DIC, $file, $form, $ilUser, $table_id, $valid, ilObjUser\_lookupId(), accessDenied(), array, checkAndPerformRedirect(), ilDclBaseRecordModel\doCreate(), ilDclBaseRecordModel\doUpdate(), exit, ilDclBaseRecordModel\getId(), getLanguageJsKeys(), ilDclCache\getRecordCache(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ilDclBaseRecordModel\hasPermissionToEdit(), ilObjDataCollectionAccess\hasWriteAccess(), IL_CAL_DATETIME, IL_CAL_UNIX, initForm(), ilDclPropertyFormGUI\rebuildTempFileByHash(), sendFailure(), ilUtil\sendSuccess(), ilDclBaseRecordModel\setCreateDate(), setFormValues(), ilDclBaseRecordModel\setLastEditBy(), ilDclBaseRecordModel\setLastUpdate(), ilDclBaseRecordModel\setOwner(), ilDclBaseRecordModel\setRecordFieldValueFromForm(), ilDclBaseRecordModel\setTableId(), time, and user().
ilDclRecordEditGUI::searchObjects | ( | ) |
This function is only used by the ajax request if searching for ILIAS references.
It builds the html for the search results.
Definition at line 664 of file class.ilDclRecordEditGUI.php.
References $_POST, $html, $path, $res, $results, $tpl, array, exit, parseSearchResults(), and QP_COMBINATION_AND.
|
protected |
$message |
Definition at line 648 of file class.ilDclRecordEditGUI.php.
References $message, exit, getLanguageJsKeys(), and ilUtil\sendFailure().
Referenced by save().
ilDclRecordEditGUI::setFormValues | ( | ) |
Set values from object to form.
Definition at line 329 of file class.ilDclRecordEditGUI.php.
References $form, and ilDclCache\getRecordCache().
Referenced by edit(), and save().
|
protected |
Definition at line 48 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 64 of file class.ilDclRecordEditGUI.php.
Referenced by getForm(), save(), and setFormValues().
|
protected |
Definition at line 56 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 40 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 44 of file class.ilDclRecordEditGUI.php.
Referenced by confirmDelete(), delete(), and getRecordData().
|
protected |
Definition at line 28 of file class.ilDclRecordEditGUI.php.
Referenced by getRecordData().
|
protected |
Definition at line 36 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 32 of file class.ilDclRecordEditGUI.php.
Referenced by save().
|
protected |
Definition at line 52 of file class.ilDclRecordEditGUI.php.
Referenced by __construct(), and searchObjects().
|
protected |
Definition at line 60 of file class.ilDclRecordEditGUI.php.
const ilDclRecordEditGUI::REDIRECT_DETAIL = 2 |
Definition at line 24 of file class.ilDclRecordEditGUI.php.
Referenced by ilDclDetailedViewGUI\renderRecord().
const ilDclRecordEditGUI::REDIRECT_RECORD_LIST = 1 |
Possible redirects after saving/updating a record - use GET['redirect'] to set constants.
Definition at line 23 of file class.ilDclRecordEditGUI.php.