| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 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 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 | 
Definition at line 21 of file class.ilDclRecordEditGUI.php.
| ilDclRecordEditGUI::__construct | ( | ilObjDataCollectionGUI | $parent_obj, | 
| int | $table_id, | ||
| int | $tableview_id | ||
| ) | 
Definition at line 44 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 716 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 223 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\ctrl().
 Here is the call graph for this function:| ilDclRecordEditGUI::cancelSave | ( | ) | 
Cancel Save.
Definition at line 406 of file class.ilDclRecordEditGUI.php.
References cancelUpdate(), ILIAS\Repository\ctrl(), exit, ilDclBaseRecordModel\getRecordField(), ilDclFieldFactory\getRecordRepresentationInstance(), ilDclBaseRecordFieldModel\getValue(), ilObjDataCollectionAccess\hasEditAccess(), ilObjDataCollectionAccess\hasWriteAccess(), IL_CAL_UNIX, ILIAS\Repository\lng(), ilDclBaseRecordModel\setLastEditBy(), ilDclBaseRecordModel\setLastUpdate(), ilDclBaseRecordModel\setTableId(), and ILIAS\Repository\user().
 Here is the call graph for this function:| ilDclRecordEditGUI::cancelUpdate | ( | ) | 
Cancel Update.
Definition at line 398 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 693 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), 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 829 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 195 of file class.ilDclRecordEditGUI.php.
References 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 171 of file class.ilDclRecordEditGUI.php.
References $DIC, ILIAS\Repository\form(), and initForm().
 Here is the call graph for this function:| ilDclRecordEditGUI::delete | ( | ) | 
Remove record.
Definition at line 231 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 182 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 133 of file class.ilDclRecordEditGUI.php.
References ILIAS\Repository\ctrl(), and getRecord().
 Here is the call graph for this function:| ilDclRecordEditGUI::getForm | ( | ) | 
Definition at line 838 of file class.ilDclRecordEditGUI.php.
References $form.
| ilDclRecordEditGUI::getRecord | ( | ) | 
Definition at line 141 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 252 of file class.ilDclRecordEditGUI.php.
References $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 parts to RecordRepresentationGUI
Definition at line 274 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 811 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:
      
  | 
  protected | 
Definition at line 76 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 485 of file class.ilDclRecordEditGUI.php.
References $DIC, Vendor\Package\$e, $form, $ref_id, $table_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(), ilDataCollectionMailNotification\TYPE_RECORD_CREATE, 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 761 of file class.ilDclRecordEditGUI.php.
References $path, $res, $results, 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 727 of file class.ilDclRecordEditGUI.php.
References $form, 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 375 of file class.ilDclRecordEditGUI.php.
References $form, 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 35 of file class.ilDclRecordEditGUI.php.
      
  | 
  protected | 
Definition at line 39 of file class.ilDclRecordEditGUI.php.
Referenced by getForm(), save(), sendFailure(), and setFormValues().
      
  | 
  protected | 
Definition at line 41 of file class.ilDclRecordEditGUI.php.
      
  | 
  protected | 
Definition at line 37 of file class.ilDclRecordEditGUI.php.
      
  | 
  protected | 
Definition at line 33 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 34 of file class.ilDclRecordEditGUI.php.
Referenced by delete().
      
  | 
  protected | 
Definition at line 30 of file class.ilDclRecordEditGUI.php.
Referenced by getRecordData().
      
  | 
  protected | 
Definition at line 42 of file class.ilDclRecordEditGUI.php.
      
  | 
  protected | 
Definition at line 32 of file class.ilDclRecordEditGUI.php.
      
  | 
  protected | 
Definition at line 31 of file class.ilDclRecordEditGUI.php.
Referenced by __construct(), and save().
      
  | 
  protected | 
Definition at line 40 of file class.ilDclRecordEditGUI.php.
      
  | 
  protected | 
Definition at line 29 of file class.ilDclRecordEditGUI.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 36 of file class.ilDclRecordEditGUI.php.
      
  | 
  protected | 
Definition at line 38 of file class.ilDclRecordEditGUI.php.
| const ilDclRecordEditGUI::REDIRECT_DETAIL = 2 | 
Definition at line 27 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 26 of file class.ilDclRecordEditGUI.php.