ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilDataCollectionRecordEditGUI. More...
Public Member Functions | |
__construct (ilObjDataCollectionGUI $parent_obj) | |
executeCommand () | |
create () | |
edit () | |
confirmDelete () | |
cancelDelete () | |
delete () | |
getRecordData ($record_id=0) | |
Return All fields and values from a record ID. | |
initForm () | |
init Form | |
setFormValues () | |
Set values from object to form. | |
cancelUpdate () | |
Cancel Update. | |
cancelSave () | |
Cancel Save. | |
save () | |
Save record. | |
searchObjects () | |
This function is only used by the ajax request if searching for ILIAS references. |
Data Fields | |
const | REDIRECT_RECORD_LIST = 1 |
Possible redirects after saving/updating a record - use GET['redirect'] to set constants. | |
const | REDIRECT_DETAIL = 2 |
Protected Member Functions | |
checkAndPerformRedirect ($force_redirect=false) | |
Checkes to what view (table or detail) should be redirected and performs redirect. | |
accessDenied () | |
sendFailure ($message) | |
parseSearchResults ($a_res) | |
Parse search results. |
Protected Attributes | |
$record_id | |
$table_id | |
$table | |
$parent_obj | |
$record | |
$ctrl | |
$tpl | |
$lng | |
$user | |
$form |
Class ilDataCollectionRecordEditGUI.
Definition at line 24 of file class.ilDataCollectionRecordEditGUI.php.
ilDataCollectionRecordEditGUI::__construct | ( | ilObjDataCollectionGUI | $parent_obj | ) |
ilObjDataCollectionGUI | $parent_obj |
Definition at line 77 of file class.ilDataCollectionRecordEditGUI.php.
References $_REQUEST, $ilCtrl, $ilUser, $lng, $parent_obj, and $tpl.
|
protected |
Definition at line 520 of file class.ilDataCollectionRecordEditGUI.php.
References exit, and sendFailure().
Referenced by delete(), executeCommand(), and save().
ilDataCollectionRecordEditGUI::cancelDelete | ( | ) |
Definition at line 162 of file class.ilDataCollectionRecordEditGUI.php.
ilDataCollectionRecordEditGUI::cancelSave | ( | ) |
Cancel Save.
Definition at line 369 of file class.ilDataCollectionRecordEditGUI.php.
References cancelUpdate().
ilDataCollectionRecordEditGUI::cancelUpdate | ( | ) |
Cancel Update.
Definition at line 361 of file class.ilDataCollectionRecordEditGUI.php.
References checkAndPerformRedirect().
Referenced by cancelSave().
|
protected |
Checkes to what view (table or detail) should be redirected and performs redirect.
Definition at line 502 of file class.ilDataCollectionRecordEditGUI.php.
References $_GET.
Referenced by cancelUpdate(), and save().
ilDataCollectionRecordEditGUI::confirmDelete | ( | ) |
Definition at line 149 of file class.ilDataCollectionRecordEditGUI.php.
References $record, and ilDataCollectionCache\getRecordCache().
ilDataCollectionRecordEditGUI::create | ( | ) |
Definition at line 124 of file class.ilDataCollectionRecordEditGUI.php.
References exit, and initForm().
ilDataCollectionRecordEditGUI::delete | ( | ) |
Definition at line 167 of file class.ilDataCollectionRecordEditGUI.php.
References $record, accessDenied(), ilDataCollectionCache\getRecordCache(), and ilUtil\sendSuccess().
ilDataCollectionRecordEditGUI::edit | ( | ) |
Definition at line 136 of file class.ilDataCollectionRecordEditGUI.php.
References exit, initForm(), and setFormValues().
ilDataCollectionRecordEditGUI::executeCommand | ( | ) |
Definition at line 93 of file class.ilDataCollectionRecordEditGUI.php.
References $_GET, $cmd, accessDenied(), ilDataCollectionCache\getRecordCache(), ilDataCollectionCache\getTableCache(), and ilObjDataCollectionAccess\hasAddRecordAccess().
ilDataCollectionRecordEditGUI::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 190 of file class.ilDataCollectionRecordEditGUI.php.
References $_GET, $record, $record_id, exit, and ilDataCollectionCache\getRecordCache().
ilDataCollectionRecordEditGUI::initForm | ( | ) |
init Form
Definition at line 211 of file class.ilDataCollectionRecordEditGUI.php.
References $_GET, $options, $record, ilObjDataCollection\_hasWriteAccess(), ilDataCollectionCache\getFieldCache(), ilDataCollectionDatatype\getInputField(), ilDataCollectionCache\getRecordCache(), ilDataCollectionCache\getTableCache(), ilObject2\getTitle(), ilDataCollectionDatatype\INPUTFORMAT_DATETIME, ilDataCollectionDatatype\INPUTFORMAT_FILE, ilDataCollectionDatatype\INPUTFORMAT_MOB, and ilDataCollectionDatatype\INPUTFORMAT_REFERENCE.
Referenced by create(), edit(), and save().
|
protected |
Parse search results.
ilObject[] | $a_res |
Definition at line 601 of file class.ilDataCollectionRecordEditGUI.php.
References ilObject\_lookupDescription(), and ilObject\_lookupTitle().
Referenced by searchObjects().
ilDataCollectionRecordEditGUI::save | ( | ) |
Save record.
Definition at line 377 of file class.ilDataCollectionRecordEditGUI.php.
References $_POST, ilObjDataCollection\_hasWriteAccess(), ilObjUser\_lookupId(), accessDenied(), checkAndPerformRedirect(), exit, ilDataCollectionCache\getRecordCache(), IL_CAL_DATETIME, IL_CAL_UNIX, initForm(), ilDataCollectionDatatype\INPUTFORMAT_FILE, ilDataCollectionDatatype\INPUTFORMAT_MOB, sendFailure(), ilObjDataCollection\sendNotification(), ilUtil\sendSuccess(), and setFormValues().
ilDataCollectionRecordEditGUI::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 550 of file class.ilDataCollectionRecordEditGUI.php.
References $_POST, $path, $res, $results, $tpl, exit, parseSearchResults(), and QP_COMBINATION_AND.
|
protected |
$message |
Definition at line 534 of file class.ilDataCollectionRecordEditGUI.php.
References exit.
Referenced by accessDenied(), and save().
ilDataCollectionRecordEditGUI::setFormValues | ( | ) |
Set values from object to form.
Definition at line 341 of file class.ilDataCollectionRecordEditGUI.php.
References ilDataCollectionCache\getRecordCache().
Referenced by edit(), and save().
|
protected |
Definition at line 55 of file class.ilDataCollectionRecordEditGUI.php.
|
protected |
Definition at line 71 of file class.ilDataCollectionRecordEditGUI.php.
|
protected |
Definition at line 63 of file class.ilDataCollectionRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 47 of file class.ilDataCollectionRecordEditGUI.php.
Referenced by __construct().
|
protected |
Definition at line 51 of file class.ilDataCollectionRecordEditGUI.php.
Referenced by confirmDelete(), delete(), getRecordData(), and initForm().
|
protected |
Definition at line 35 of file class.ilDataCollectionRecordEditGUI.php.
Referenced by getRecordData().
|
protected |
Definition at line 43 of file class.ilDataCollectionRecordEditGUI.php.
|
protected |
Definition at line 39 of file class.ilDataCollectionRecordEditGUI.php.
|
protected |
Definition at line 59 of file class.ilDataCollectionRecordEditGUI.php.
Referenced by __construct(), and searchObjects().
|
protected |
Definition at line 67 of file class.ilDataCollectionRecordEditGUI.php.
const ilDataCollectionRecordEditGUI::REDIRECT_DETAIL = 2 |
Definition at line 31 of file class.ilDataCollectionRecordEditGUI.php.
Referenced by ilDataCollectionRecordViewGUI\renderRecord().
const ilDataCollectionRecordEditGUI::REDIRECT_RECORD_LIST = 1 |
Possible redirects after saving/updating a record - use GET['redirect'] to set constants.
Definition at line 30 of file class.ilDataCollectionRecordEditGUI.php.