|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 | |
| $tableview_id | |
| $record_id | |
| $table_id | |
| $table | |
| $parent_obj | |
| $record | |
| $ctrl | |
| $tpl | |
| $lng | |
| $user | |
| $form | |
| $tableview | |
| ilDclRecordEditGUI::__construct | ( | ilObjDataCollectionGUI | $parent_obj | ) |
| ilObjDataCollectionGUI | $parent_obj |
Definition at line 77 of file class.ilDclRecordEditGUI.php.
References $DIC, $ilUser, $lng, $parent_obj, $tpl, ActiveRecord\findOrGetInstance(), ilDclCache\getTableCache(), and user().
Here is the call graph for this function:
|
protected |
Definition at line 705 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 219 of file class.ilDclRecordEditGUI.php.
| ilDclRecordEditGUI::cancelSave | ( | ) |
Cancel Save.
Definition at line 406 of file class.ilDclRecordEditGUI.php.
References cancelUpdate().
Here is the call graph for this function:| ilDclRecordEditGUI::cancelUpdate | ( | ) |
Cancel Update.
Definition at line 397 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 685 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 830 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 190 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 149 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 228 of file class.ilDclRecordEditGUI.php.
References $record, accessDenied(), and ilDclCache\getRecordCache().
Here is the call graph for this function:| ilDclRecordEditGUI::edit | ( | ) |
Record edit gui.
Definition at line 167 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 104 of file class.ilDclRecordEditGUI.php.
References getRecord().
Here is the call graph for this function:| ilDclRecordEditGUI::getForm | ( | ) |
Definition at line 842 of file class.ilDclRecordEditGUI.php.
References $form.
|
protected |
Definition at line 798 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 122 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 252 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 276 of file class.ilDclRecordEditGUI.php.
References ilDclTableViewBaseDefaultValue\findSingle(), 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 811 of file class.ilDclRecordEditGUI.php.
References $rows, 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 478 of file class.ilDclRecordEditGUI.php.
References $_GET, $_POST, $_SESSION, $data, $DIC, Vendor\Package\$e, $valid, ilObjUser\_lookupId(), accessDenied(), checkAndPerformRedirect(), ilDclBaseRecordModel\doCreate(), ilDclBaseRecordModel\doUpdate(), exit, ilDclTableViewBaseDefaultValue\findSingle(), ilDclBaseRecordModel\getId(), getLanguageJsKeys(), ilDclCache\getRecordCache(), ilUtil\getSystemMessageHTML(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ilDclBaseRecordModel\hasPermissionToEdit(), ilObjDataCollectionAccess\hasWriteAccess(), IL_CAL_DATETIME, IL_CAL_UNIX, initForm(), ilDclPropertyFormGUI\rebuildTempFileByHash(), sendFailure(), ilDclBaseRecordModel\setCreateDate(), setFormValues(), ilDclBaseRecordModel\setLastEditBy(), ilDclBaseRecordModel\setLastUpdate(), ilDclBaseRecordModel\setOwner(), ilDclBaseRecordModel\setRecordFieldValue(), 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 756 of file class.ilDclRecordEditGUI.php.
References $_POST, $res, $results, $tpl, exit, parseSearchResults(), QP_COMBINATION_AND, and ROOT_FOLDER_ID.
Here is the call graph for this function:
|
protected |
| $message |
Definition at line 720 of file class.ilDclRecordEditGUI.php.
References $message, exit, ilDclBaseRecordModel\fillRecordFieldFormInput(), ilDclBaseRecordModel\getId(), getLanguageJsKeys(), ilDclCache\getRecordCache(), ilUtil\getSystemMessageHTML(), 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 373 of file class.ilDclRecordEditGUI.php.
References ilDclCache\getRecordCache(), and ilDclDatatype\INPUTFORMAT_NONE.
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 51 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 67 of file class.ilDclRecordEditGUI.php.
Referenced by getForm().
|
protected |
Definition at line 59 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 43 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 47 of file class.ilDclRecordEditGUI.php.
Referenced by confirmDelete(), delete(), getRecordData(), and ILIAS\UI\Implementation\Component\Table\RowFactory\map().
|
protected |
Definition at line 31 of file class.ilDclRecordEditGUI.php.
Referenced by getRecordData().
|
protected |
Definition at line 39 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 35 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 71 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 27 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 55 of file class.ilDclRecordEditGUI.php.
Referenced by __construct(), and searchObjects().
|
protected |
Definition at line 63 of file class.ilDclRecordEditGUI.php.
| const ilDclRecordEditGUI::REDIRECT_DETAIL = 2 |
Definition at line 23 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 22 of file class.ilDclRecordEditGUI.php.
Referenced by checkAndPerformRedirect().