|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilDclRecordEditGUI. More...
Collaboration diagram for ilDclRecordEditGUI: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 78 of file class.ilDclRecordEditGUI.php.
References $DIC, $ilCtrl, $ilUser, $lng, $parent_obj, $tpl, and user().
Here is the call graph for this function:
|
protected |
Definition at line 636 of file class.ilDclRecordEditGUI.php.
References exit, and ilUtil\sendFailure().
Referenced by delete(), getRecord(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclRecordEditGUI::cancelDelete | ( | ) |
Cancel deletion.
Definition at line 205 of file class.ilDclRecordEditGUI.php.
| ilDclRecordEditGUI::cancelSave | ( | ) |
Cancel Save.
Definition at line 355 of file class.ilDclRecordEditGUI.php.
References cancelUpdate().
Here is the call graph for this function:| ilDclRecordEditGUI::cancelUpdate | ( | ) |
Cancel Update.
Definition at line 347 of file class.ilDclRecordEditGUI.php.
References checkAndPerformRedirect().
Referenced by cancelSave().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Checkes to what view (table or detail) should be redirected and performs redirect.
Definition at line 617 of file class.ilDclRecordEditGUI.php.
References $_GET, REDIRECT_DETAIL, and REDIRECT_RECORD_LIST.
Referenced by cancelUpdate(), and save().
Here is the caller graph for this function:
|
protected |
Cleanup temp-files.
Definition at line 738 of file class.ilDclRecordEditGUI.php.
References $_POST.
Referenced by edit().
Here is the caller graph for this function:| ilDclRecordEditGUI::confirmDelete | ( | ) |
Delete confirmation.
| ilDclException |
Definition at line 177 of file class.ilDclRecordEditGUI.php.
References $record, ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), and ilDclCache\getRecordRepresentation().
Here is the call graph for this function:| ilDclRecordEditGUI::create | ( | ) |
Create new record gui.
Definition at line 142 of file class.ilDclRecordEditGUI.php.
References exit, getLanguageJsKeys(), and initForm().
Here is the call graph for this function:| ilDclRecordEditGUI::delete | ( | ) |
Remove record.
Definition at line 213 of file class.ilDclRecordEditGUI.php.
References $record, accessDenied(), ilDclCache\getRecordCache(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilDclRecordEditGUI::edit | ( | ) |
Record edit gui.
Definition at line 157 of file class.ilDclRecordEditGUI.php.
References cleanupTempFiles(), exit, getLanguageJsKeys(), initForm(), and setFormValues().
Here is the call graph for this function:| ilDclRecordEditGUI::executeCommand | ( | ) |
Definition at line 99 of file class.ilDclRecordEditGUI.php.
References $cmd, and getRecord().
Here is the call graph for this function:| ilDclRecordEditGUI::getForm | ( | ) |
Definition at line 749 of file class.ilDclRecordEditGUI.php.
References $form.
|
protected |
Definition at line 708 of file class.ilDclRecordEditGUI.php.
Referenced by create(), edit(), save(), and sendFailure().
Here is the caller graph for this function:| ilDclRecordEditGUI::getRecord | ( | ) |
Definition at line 116 of file class.ilDclRecordEditGUI.php.
References $_GET, accessDenied(), ilDclCache\getRecordCache(), ilDclCache\getTableCache(), and ilObjDataCollectionAccess\hasAddRecordAccess().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| 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, exit, and ilDclCache\getRecordCache().
Here is the call graph for this function:| ilDclRecordEditGUI::initForm | ( | ) |
init Form
@move move parts to RecordRepresentationGUI
Definition at line 259 of file class.ilDclRecordEditGUI.php.
References ilDclCache\getFieldRepresentation(), and ilObjDataCollectionAccess\hasWriteAccess().
Referenced by create(), edit(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse search results.
| ilObject[] | $a_res |
Definition at line 720 of file class.ilDclRecordEditGUI.php.
References $r, ilObject\_lookupDescription(), and ilObject\_lookupTitle().
Referenced by searchObjects().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclRecordEditGUI::save | ( | ) |
Save record.
Definition at line 422 of file class.ilDclRecordEditGUI.php.
References $_POST, $_SESSION, $data, $DIC, $file, $ilUser, $valid, ilObjUser\_lookupId(), accessDenied(), 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(), and user().
Here is the call graph for this function:| 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 665 of file class.ilDclRecordEditGUI.php.
References $_POST, $html, $path, $res, $results, $tpl, exit, parseSearchResults(), and QP_COMBINATION_AND.
Here is the call graph for this function:
|
protected |
| $message |
Definition at line 650 of file class.ilDclRecordEditGUI.php.
References exit, getLanguageJsKeys(), and ilUtil\sendFailure().
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclRecordEditGUI::setFormValues | ( | ) |
Set values from object to form.
Definition at line 327 of file class.ilDclRecordEditGUI.php.
References ilDclCache\getRecordCache().
Referenced by edit(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 56 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 72 of file class.ilDclRecordEditGUI.php.
Referenced by getForm().
|
protected |
Definition at line 64 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 48 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 52 of file class.ilDclRecordEditGUI.php.
Referenced by confirmDelete(), delete(), and getRecordData().
|
protected |
Definition at line 36 of file class.ilDclRecordEditGUI.php.
Referenced by getRecordData().
|
protected |
Definition at line 44 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 40 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 60 of file class.ilDclRecordEditGUI.php.
Referenced by __construct(), and searchObjects().
|
protected |
Definition at line 68 of file class.ilDclRecordEditGUI.php.
| const ilDclRecordEditGUI::REDIRECT_DETAIL = 2 |
Definition at line 32 of file class.ilDclRecordEditGUI.php.
Referenced by checkAndPerformRedirect(), and ilDclDetailedViewGUI\renderRecord().
| const ilDclRecordEditGUI::REDIRECT_RECORD_LIST = 1 |
Possible redirects after saving/updating a record - use GET['redirect'] to set constants.
Definition at line 31 of file class.ilDclRecordEditGUI.php.
Referenced by checkAndPerformRedirect().