|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilDclRecordEditGUI:Public Member Functions | |
| __construct (ilObjDataCollectionGUI $parent_obj, int $table_id, int $tableview_id) | |
| 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 (int $record_id=0) | |
| Return All fields and values from a record ID. More... | |
| initForm () | |
| init Form @move move parts to RecordRepresentationGUI 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 | |
| rebuildUploadsForFileHash (bool $has_ilfilehash) | |
| checkAndPerformRedirect (bool $force_redirect=false) | |
| Checks to what view (table or detail) should be redirected and performs redirect. More... | |
| accessDenied () | |
| sendFailure (string $message) | |
| parseSearchResults (array $a_res) | |
| Parse search results. More... | |
| cleanupTempFiles () | |
| Cleanup temp-files. More... | |
Protected Attributes | |
| int | $tableview_id = null |
| int | $record_id = null |
| int | $table_id = 1 |
| ilDclTable | $table |
| ilObjDataCollectionGUI | $parent_obj |
| ilDclBaseRecordModel | $record |
| ilCtrl | $ctrl |
| ilGlobalPageTemplate | $tpl |
| ilLanguage | $lng |
| ilObjUser | $user |
| ilDclPropertyFormGUI | $form |
| ilDclTableView | $tableview |
| ILIAS HTTP Services | $http |
| ILIAS Refinery Factory | $refinery |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 19 of file class.ilDclRecordEditGUI.php.
| ilDclRecordEditGUI::__construct | ( | ilObjDataCollectionGUI | $parent_obj, |
| int | $table_id, | ||
| int | $tableview_id | ||
| ) |
| ilObjDataCollectionGUI | $parent_obj |
Definition at line 45 of file class.ilDclRecordEditGUI.php.
References $DIC, $parent_obj, $table_id, $tableview_id, ILIAS\Repository\ctrl(), ilDclTableView\findOrGetInstance(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
protected |
Definition at line 720 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\ctrl(), exit, and ILIAS\Repository\lng().
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 222 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:| ilDclRecordEditGUI::cancelSave | ( | ) |
Cancel Save.
Definition at line 407 of file class.ilDclRecordEditGUI.php.
References cancelUpdate().
Here is the call graph for this function:| ilDclRecordEditGUI::cancelUpdate | ( | ) |
Cancel Update.
Definition at line 399 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 |
Checks to what view (table or detail) should be redirected and performs redirect.
Definition at line 697 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), REDIRECT_DETAIL, REDIRECT_RECORD_LIST, and ILIAS\Repository\refinery().
Referenced by cancelUpdate(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Cleanup temp-files.
Definition at line 833 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\form(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by edit().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclRecordEditGUI::confirmDelete | ( | ) |
Delete confirmation.
| ilDclException |
Definition at line 194 of file class.ilDclRecordEditGUI.php.
References $record, ILIAS\Repository\ctrl(), ilDclBaseRecordModel\getId(), ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), ilDclCache\getRecordRepresentation(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilDclRecordEditGUI::create | ( | ) |
Create new record gui.
Definition at line 172 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\form(), and initForm().
Here is the call graph for this function:| ilDclRecordEditGUI::delete | ( | ) |
Remove record.
Definition at line 230 of file class.ilDclRecordEditGUI.php.
References $record, accessDenied(), ILIAS\Repository\ctrl(), ilDclBaseRecordModel\doDelete(), ilDclCache\getRecordCache(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilDclRecordEditGUI::edit | ( | ) |
Record edit gui.
Definition at line 181 of file class.ilDclRecordEditGUI.php.
References cleanupTempFiles(), ILIAS\Repository\form(), initForm(), and setFormValues().
Here is the call graph for this function:| ilDclRecordEditGUI::executeCommand | ( | ) |
Definition at line 134 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\ctrl(), and getRecord().
Here is the call graph for this function:| ilDclRecordEditGUI::getForm | ( | ) |
Definition at line 842 of file class.ilDclRecordEditGUI.php.
References $form.
| ilDclRecordEditGUI::getRecord | ( | ) |
Definition at line 142 of file class.ilDclRecordEditGUI.php.
References $ref_id, accessDenied(), ILIAS\Repository\ctrl(), ilDclCache\getRecordCache(), ilDclCache\getTableCache(), ilObjDataCollectionAccess\hasAddRecordAccess(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclRecordEditGUI::getRecordData | ( | int | $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 251 of file class.ilDclRecordEditGUI.php.
References $record, $record_id, ILIAS\Repository\ctrl(), exit, ilDclCache\getRecordCache(), ilDclBaseRecordModel\getRecordFieldValues(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Here is the call graph for this function:| ilDclRecordEditGUI::initForm | ( | ) |
init Form @move move parts to RecordRepresentationGUI
Definition at line 275 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilDclCache\getFieldRepresentation(), ilObjDataCollectionAccess\hasWriteAccess(), and ILIAS\Repository\lng().
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 815 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:
|
protected |
Definition at line 77 of file class.ilDclRecordEditGUI.php.
References $data, ILIAS\Repository\form(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclRecordEditGUI::save | ( | ) |
Save record.
Definition at line 488 of file class.ilDclRecordEditGUI.php.
References $DIC, Vendor\Package\$e, $ref_id, $valid, ilObjUser\_lookupId(), accessDenied(), checkAndPerformRedirect(), ILIAS\Repository\ctrl(), ilDclBaseRecordModel\doCreate(), ilDclBaseRecordModel\doUpdate(), exit, ILIAS\Repository\form(), ilDclBaseRecordModel\getId(), ilDclCache\getRecordCache(), ilUtil\getSystemMessageHTML(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ilDclBaseRecordModel\hasPermissionToEdit(), ilObjDataCollectionAccess\hasWriteAccess(), ILIAS\FileDelivery\http(), IL_CAL_UNIX, initForm(), ILIAS\Repository\lng(), ilDclPropertyFormGUI\rebuildTempFileByHash(), rebuildUploadsForFileHash(), ILIAS\Repository\refinery(), sendFailure(), ilDclBaseRecordModel\setCreateDate(), setFormValues(), ilDclBaseRecordModel\setLastEditBy(), ilDclBaseRecordModel\setLastUpdate(), ilDclBaseRecordModel\setOwner(), ilDclBaseRecordModel\setRecordFieldValue(), ilDclBaseRecordModel\setRecordFieldValueFromForm(), ilDclBaseRecordModel\setTableId(), and ILIAS\Repository\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 765 of file class.ilDclRecordEditGUI.php.
References $path, $res, $results, $tpl, exit, ilGlobalPageTemplate\get(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ilGlobalPageTemplate\parseCurrentBlock(), parseSearchResults(), ilQueryParser\QP_COMBINATION_AND, ILIAS\Repository\refinery(), ROOT_FOLDER_ID, ilGlobalPageTemplate\setCurrentBlock(), and ilGlobalPageTemplate\setVariable().
Here is the call graph for this function:
|
protected |
Definition at line 731 of file class.ilDclRecordEditGUI.php.
References $message, ILIAS\Repository\ctrl(), exit, ilDclBaseRecordModel\fillRecordFieldFormInput(), ILIAS\Repository\form(), ilDclBaseRecordModel\getId(), ilDclCache\getRecordCache(), and ilUtil\getSystemMessageHTML().
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 376 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\form(), 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 33 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 37 of file class.ilDclRecordEditGUI.php.
Referenced by getForm().
|
protected |
Definition at line 39 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 35 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 31 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 32 of file class.ilDclRecordEditGUI.php.
Referenced by ILIAS\UI\Implementation\Component\Table\DataRow\__construct(), ILIAS\UI\Implementation\Component\Table\DataRowBuilder\buildDataRow(), confirmDelete(), delete(), and getRecordData().
|
protected |
Definition at line 28 of file class.ilDclRecordEditGUI.php.
Referenced by getRecordData().
|
protected |
Definition at line 40 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 30 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 29 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilDclRecordEditGUI.php.
|
protected |
Definition at line 27 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 34 of file class.ilDclRecordEditGUI.php.
Referenced by searchObjects().
|
protected |
Definition at line 36 of file class.ilDclRecordEditGUI.php.
| const ilDclRecordEditGUI::REDIRECT_DETAIL = 2 |
Definition at line 25 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 24 of file class.ilDclRecordEditGUI.php.
Referenced by checkAndPerformRedirect().