|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilDclBaseRecordModel. More...
Collaboration diagram for ilDclBaseRecordModel:Public Member Functions | |
| __construct ($a_id=0) | |
| doUpdate ($omit_notification=false) | |
| doUpdate More... | |
| doRead () | |
| Read record. More... | |
| doCreate () | |
| deleteField ($field_id) | |
| setId ($a_id) | |
| Set field id. More... | |
| getId () | |
| Get field id. More... | |
| setTableId ($a_id) | |
| Set Table ID. More... | |
| getTableId () | |
| Get Table ID. More... | |
| setCreateDate ($a_datetime) | |
| Set Creation Date. More... | |
| getCreateDate () | |
| Get Creation Date. More... | |
| setLastUpdate ($a_datetime) | |
| Set Last Update Date. More... | |
| getLastUpdate () | |
| Get Last Update Date. More... | |
| setOwner ($a_id) | |
| Set Owner. More... | |
| getOwner () | |
| Get Owner. More... | |
| getLastEditBy () | |
| setLastEditBy ($last_edit_by) | |
| setRecordFieldValue ($field_id, $value) | |
| Set a field value. More... | |
| setRecordFieldValueFromForm ($field_id, &$form) | |
| Set a field value. More... | |
| getRecordFieldValueFromExcel ($excel, $row, $col, $field) | |
| setStandardFieldValueFromExcel ($excel, $row, $col, $field) | |
| getRecordFieldValues () | |
| getRecordFieldValue ($field_id) | |
| Get Field Value. More... | |
| getRecordFieldRepresentationValue ($field_id) | |
| Get Field Value for Representation in a Form. More... | |
| getRecordFieldExportValue ($field_id) | |
| Get Field Export Value. More... | |
| getRecordFieldPlainText ($field_id) | |
| Get Field Export Value. More... | |
| fillRecordFieldExcelExport (ilExcel $worksheet, &$row, &$col, $field_id) | |
| getRecordFieldFormulaValue ($field_id) | |
| getRecordFieldHTML ($field_id, array $options=array()) | |
| getRecordFieldSortingValue ($field_id, array $options=array()) | |
| fillRecordFieldFormInput ($field_id, &$form) | |
| getStandardFieldFormulaValue ($field_id) | |
| getStandardFieldHTML ($field_id, array $options=array()) | |
| getStandardFieldPlainText ($field_id) | |
| getRecordField ($field_id) | |
| doDelete ($omit_notification=false) | |
| Delete. More... | |
| cloneStructure ($original_id, $new_fields) | |
| deleteFile ($obj_id) | |
| Delete a file. More... | |
| deleteMob ($obj_id) | |
| Delete MOB. More... | |
| passThroughFilter (array $filter) | |
| hasPermissionToEdit ($ref_id) | |
| hasPermissionToDelete ($ref_id) | |
| hasPermissionToView ($ref_id) | |
| getRecordFields () | |
| getTable () | |
| getComments () | |
| Get all comments of this record. More... | |
Protected Member Functions | |
| setStandardFieldFromForm ($field_id, &$form) | |
| setStandardField ($field_id, $value) | |
| fillStandardFieldFormInput ($field_id, &$form) | |
| getStandardField ($field_id) | |
Protected Attributes | |
| $recordfields | |
| $id | |
| $table_id | |
| $table | |
| $last_edit_by | |
| $owner | |
| $last_update | |
| $create_date | |
| $comments | |
Private Member Functions | |
| fixDate ($value) | |
| loadRecordFields () | |
| Load record fields. More... | |
| loadTable () | |
| Load table. More... | |
Class ilDclBaseRecordModel.
Definition at line 16 of file class.ilDclBaseRecordModel.php.
| ilDclBaseRecordModel::__construct | ( | $a_id = 0 | ) |
| int | $a_id |
Definition at line 62 of file class.ilDclBaseRecordModel.php.
References doRead().
Here is the call graph for this function:| ilDclBaseRecordModel::cloneStructure | ( | $original_id, | |
| $new_fields | |||
| ) |
| $original_id | integer |
| $new_fields | array($old_field_id => $new_field) |
Definition at line 874 of file class.ilDclBaseRecordModel.php.
References doCreate(), getId(), ilDclCache\getRecordCache(), ilDclCache\getRecordFieldCache(), ilDclCache\setCloneOf(), setCreateDate(), setLastEditBy(), setLastUpdate(), setOwner(), and ilDclCache\TYPE_RECORD.
Here is the call graph for this function:| ilDclBaseRecordModel::deleteField | ( | $field_id | ) |
| $field_id |
Definition at line 192 of file class.ilDclBaseRecordModel.php.
References doDelete(), and loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::deleteFile | ( | $obj_id | ) |
Delete a file.
| $obj_id |
Definition at line 899 of file class.ilDclBaseRecordModel.php.
References ilObject2\_exists().
Referenced by doDelete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::deleteMob | ( | $obj_id | ) |
Delete MOB.
| $obj_id |
Definition at line 913 of file class.ilDclBaseRecordModel.php.
References ilObject2\_lookupObjId().
Referenced by doDelete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::doCreate | ( | ) |
| ilException |
Definition at line 155 of file class.ilDclBaseRecordModel.php.
References $DIC, $id, $ilDB, $query, ilDclTable\_tableExists(), getCreateDate(), getId(), getLastEditBy(), getLastUpdate(), getOwner(), getRecordFields(), getTable(), getTableId(), loadRecordFields(), and setId().
Referenced by cloneStructure(), and ilDclRecordEditGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::doDelete | ( | $omit_notification = false | ) |
Delete.
| bool | $omit_notification |
Definition at line 825 of file class.ilDclBaseRecordModel.php.
References $_GET, $DIC, $ilDB, $query, deleteFile(), deleteMob(), getId(), ilDclCache\getTableCache(), getTableId(), ilDclDatatype\INPUTFORMAT_FILE, ilDclDatatype\INPUTFORMAT_MOB, and loadRecordFields().
Referenced by deleteField().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::doRead | ( | ) |
Read record.
Definition at line 134 of file class.ilDclBaseRecordModel.php.
References $DIC, $ilDB, $query, getId(), setCreateDate(), setLastEditBy(), setLastUpdate(), setOwner(), and setTableId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::doUpdate | ( | $omit_notification = false | ) |
doUpdate
Definition at line 85 of file class.ilDclBaseRecordModel.php.
References $_GET, $DIC, $ilDB, fixDate(), getLastEditBy(), getLastUpdate(), getOwner(), getRecordFields(), and getTableId().
Referenced by ilDclRecordEditGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::fillRecordFieldExcelExport | ( | ilExcel | $worksheet, |
| & | $row, | ||
| & | $col, | ||
| $field_id | |||
| ) |
| $worksheet | |
| $row | |
| $col | |
| $field_id |
Definition at line 499 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), ilObjUser\_lookupLogin(), ilObjUser\_lookupName(), getOwner(), getStandardFieldHTML(), loadRecordFields(), and ilExcel\setCell().
Referenced by ilDclContentExporter\fillRowExcel().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::fillRecordFieldFormInput | ( | $field_id, | |
| & | $form | ||
| ) |
| $field_id | |
| $form | ilPropertyFormGUI |
Definition at line 629 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), fillStandardFieldFormInput(), and loadRecordFields().
Referenced by ilDclRecordEditGUI\sendFailure().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $field_id | |
| $form |
Definition at line 672 of file class.ilDclBaseRecordModel.php.
References getStandardField().
Referenced by fillRecordFieldFormInput().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $value |
Definition at line 76 of file class.ilDclBaseRecordModel.php.
Referenced by doUpdate().
Here is the caller graph for this function:| ilDclBaseRecordModel::getComments | ( | ) |
Get all comments of this record.
Definition at line 1004 of file class.ilDclBaseRecordModel.php.
References $comments, ilNote\_getNotesOfObject(), and IL_NOTE_PUBLIC.
Referenced by getStandardFieldHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::getCreateDate | ( | ) |
Get Creation Date.
Definition at line 262 of file class.ilDclBaseRecordModel.php.
References $create_date.
Referenced by doCreate(), and getStandardFieldHTML().
Here is the caller graph for this function:| ilDclBaseRecordModel::getId | ( | ) |
Get field id.
Definition at line 218 of file class.ilDclBaseRecordModel.php.
References $id.
Referenced by cloneStructure(), doCreate(), doDelete(), doRead(), ilDclFieldFactory\getRecordFieldInstance(), getStandardFieldHTML(), ilDclRecordEditGUI\save(), and ilDclRecordEditGUI\sendFailure().
Here is the caller graph for this function:| ilDclBaseRecordModel::getLastEditBy | ( | ) |
Definition at line 315 of file class.ilDclBaseRecordModel.php.
References $last_edit_by.
Referenced by doCreate(), doUpdate(), getStandardField(), and getStandardFieldHTML().
Here is the caller graph for this function:| ilDclBaseRecordModel::getLastUpdate | ( | ) |
Get Last Update Date.
Definition at line 284 of file class.ilDclBaseRecordModel.php.
References $last_update.
Referenced by doCreate(), doUpdate(), and getStandardFieldHTML().
Here is the caller graph for this function:| ilDclBaseRecordModel::getOwner | ( | ) |
Get Owner.
Definition at line 306 of file class.ilDclBaseRecordModel.php.
References $owner.
Referenced by doCreate(), ilDclTable\doesRecordBelongToUser(), doUpdate(), fillRecordFieldExcelExport(), getStandardField(), and getStandardFieldHTML().
Here is the caller graph for this function:| ilDclBaseRecordModel::getRecordField | ( | $field_id | ) |
| $field_id |
Definition at line 812 of file class.ilDclBaseRecordModel.php.
References loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::getRecordFieldExportValue | ( | $field_id | ) |
Get Field Export Value.
| int | $field_id |
Definition at line 464 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), getStandardFieldHTML(), and loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::getRecordFieldFormulaValue | ( | $field_id | ) |
| int | string | $field_id |
Definition at line 524 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), getStandardFieldFormulaValue(), and loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::getRecordFieldHTML | ( | $field_id, | |
| array | $options = array() |
||
| ) |
| $field_id | ||
| array | $options |
Definition at line 546 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), getStandardFieldHTML(), and loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::getRecordFieldPlainText | ( | $field_id | ) |
Get Field Export Value.
| int | $field_id |
Definition at line 482 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), getStandardFieldHTML(), and loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::getRecordFieldRepresentationValue | ( | $field_id | ) |
Get Field Value for Representation in a Form.
| $field_id |
Definition at line 443 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), getStandardField(), and loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::getRecordFields | ( | ) |
Definition at line 980 of file class.ilDclBaseRecordModel.php.
References $recordfields, and loadRecordFields().
Referenced by doCreate(), and doUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::getRecordFieldSortingValue | ( | $field_id, | |
| array | $options = array() |
||
| ) |
| $field_id | ||
| array | $options |
Definition at line 574 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), getStandardFieldHTML(), and loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::getRecordFieldValue | ( | $field_id | ) |
Get Field Value.
| int | $field_id |
Definition at line 422 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), getStandardField(), and loadRecordFields().
Referenced by ilDclBaseFieldRepresentation\passThroughFilter(), ilDclBooleanFieldRepresentation\passThroughFilter(), ilDclDatetimeFieldRepresentation\passThroughFilter(), ilDclFileuploadFieldRepresentation\passThroughFilter(), ilDclIliasReferenceFieldRepresentation\passThroughFilter(), ilDclMobFieldRepresentation\passThroughFilter(), ilDclNumberFieldRepresentation\passThroughFilter(), ilDclRatingFieldRepresentation\passThroughFilter(), ilDclReferenceFieldRepresentation\passThroughFilter(), and ilDclTextFieldRepresentation\passThroughFilter().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::getRecordFieldValueFromExcel | ( | $excel, | |
| $row, | |||
| $col, | |||
| $field | |||
| ) |
| $excel | ilExcel |
| $row | |
| $col | |
| $field | ilDclBaseFieldModel |
Definition at line 376 of file class.ilDclBaseRecordModel.php.
References loadRecordFields().
Here is the call graph for this function:| ilDclBaseRecordModel::getRecordFieldValues | ( | ) |
Definition at line 403 of file class.ilDclBaseRecordModel.php.
References $id, and loadRecordFields().
Here is the call graph for this function:
|
protected |
| $field_id |
Definition at line 685 of file class.ilDclBaseRecordModel.php.
References ilObjUser\_lookupName(), getLastEditBy(), and getOwner().
Referenced by fillStandardFieldFormInput(), getRecordFieldRepresentationValue(), and getRecordFieldValue().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::getStandardFieldFormulaValue | ( | $field_id | ) |
| $field_id |
Definition at line 707 of file class.ilDclBaseRecordModel.php.
References getStandardFieldHTML().
Referenced by getRecordFieldFormulaValue().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::getStandardFieldHTML | ( | $field_id, | |
| array | $options = array() |
||
| ) |
| string | $field_id | |
| array | $options |
Definition at line 718 of file class.ilDclBaseRecordModel.php.
References $_GET, ilCommonActionDispatcherGUI\buildAjaxHash(), ilDatePresentation\formatDate(), getComments(), getCreateDate(), getId(), ilUtil\getImagePath(), getLastEditBy(), getLastUpdate(), ilNoteGUI\getListCommentsJSCall(), ilUserUtil\getNamePresentation(), getOwner(), and IL_CAL_DATETIME.
Referenced by fillRecordFieldExcelExport(), getRecordFieldExportValue(), getRecordFieldHTML(), getRecordFieldPlainText(), getRecordFieldSortingValue(), getStandardFieldFormulaValue(), and getStandardFieldPlainText().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::getStandardFieldPlainText | ( | $field_id | ) |
| string | $field_id |
Definition at line 756 of file class.ilDclBaseRecordModel.php.
References ilNote\_getNotesOfObject(), and getStandardFieldHTML().
Here is the call graph for this function:| ilDclBaseRecordModel::getTable | ( | ) |
Definition at line 991 of file class.ilDclBaseRecordModel.php.
References $table, and loadTable().
Referenced by doCreate(), hasPermissionToDelete(), hasPermissionToEdit(), hasPermissionToView(), and ilDclRecordListGUI\recordBelongsToCollection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::getTableId | ( | ) |
Get Table ID.
Definition at line 240 of file class.ilDclBaseRecordModel.php.
References $table_id.
Referenced by doCreate(), doDelete(), doUpdate(), and loadTable().
Here is the caller graph for this function:| ilDclBaseRecordModel::hasPermissionToDelete | ( | $ref_id | ) |
| int | $ref_id |
Definition at line 960 of file class.ilDclBaseRecordModel.php.
References getTable().
Here is the call graph for this function:| ilDclBaseRecordModel::hasPermissionToEdit | ( | $ref_id | ) |
| int | $ref_id |
Definition at line 949 of file class.ilDclBaseRecordModel.php.
References getTable().
Referenced by ilDclRecordEditGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::hasPermissionToView | ( | $ref_id | ) |
| $ref_id |
Definition at line 971 of file class.ilDclBaseRecordModel.php.
References getTable().
Here is the call graph for this function:
|
private |
Load record fields.
Definition at line 780 of file class.ilDclBaseRecordModel.php.
References $recordfields, ilDclCache\getRecordFieldCache(), and loadTable().
Referenced by deleteField(), doCreate(), doDelete(), fillRecordFieldExcelExport(), fillRecordFieldFormInput(), getRecordField(), getRecordFieldExportValue(), getRecordFieldFormulaValue(), getRecordFieldHTML(), getRecordFieldPlainText(), getRecordFieldRepresentationValue(), getRecordFields(), getRecordFieldSortingValue(), getRecordFieldValue(), getRecordFieldValueFromExcel(), getRecordFieldValues(), setRecordFieldValue(), and setRecordFieldValueFromForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Load table.
Definition at line 799 of file class.ilDclBaseRecordModel.php.
References ilDclCache\getTableCache(), and getTableId().
Referenced by getTable(), loadRecordFields(), passThroughFilter(), setRecordFieldValue(), and setRecordFieldValueFromForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::passThroughFilter | ( | array | $filter | ) |
| array | $filter |
Definition at line 927 of file class.ilDclBaseRecordModel.php.
References ilDclCache\getFieldRepresentation(), loadTable(), and passThroughFilter().
Referenced by passThroughFilter().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::setCreateDate | ( | $a_datetime | ) |
Set Creation Date.
| ilDateTime | $a_datetime |
Definition at line 251 of file class.ilDclBaseRecordModel.php.
Referenced by cloneStructure(), doRead(), and ilDclRecordEditGUI\save().
Here is the caller graph for this function:| ilDclBaseRecordModel::setId | ( | $a_id | ) |
Set field id.
| int | $a_id |
Definition at line 207 of file class.ilDclBaseRecordModel.php.
Referenced by doCreate().
Here is the caller graph for this function:| ilDclBaseRecordModel::setLastEditBy | ( | $last_edit_by | ) |
Definition at line 324 of file class.ilDclBaseRecordModel.php.
References $last_edit_by.
Referenced by cloneStructure(), doRead(), ilDclRecordEditGUI\save(), and setStandardField().
Here is the caller graph for this function:| ilDclBaseRecordModel::setLastUpdate | ( | $a_datetime | ) |
Set Last Update Date.
| ilDateTime | $a_datetime |
Definition at line 273 of file class.ilDclBaseRecordModel.php.
Referenced by cloneStructure(), doRead(), and ilDclRecordEditGUI\save().
Here is the caller graph for this function:| ilDclBaseRecordModel::setOwner | ( | $a_id | ) |
Set Owner.
| int | $a_id |
Definition at line 295 of file class.ilDclBaseRecordModel.php.
Referenced by cloneStructure(), doRead(), and ilDclRecordEditGUI\save().
Here is the caller graph for this function:| ilDclBaseRecordModel::setRecordFieldValue | ( | $field_id, | |
| $value | |||
| ) |
Set a field value.
| int | $field_id | |
| string | $value |
Definition at line 336 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), loadRecordFields(), loadTable(), and setStandardField().
Referenced by ilDclRecordEditGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::setRecordFieldValueFromForm | ( | $field_id, | |
| & | $form | ||
| ) |
Set a field value.
| int | $field_id | |
| string | $value |
Definition at line 356 of file class.ilDclBaseRecordModel.php.
References ilDclStandardField\_isStandardField(), loadRecordFields(), loadTable(), and setStandardFieldFromForm().
Referenced by ilDclRecordEditGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $field_id | |
| $value |
Definition at line 656 of file class.ilDclBaseRecordModel.php.
References setLastEditBy().
Referenced by setRecordFieldValue(), and setStandardFieldFromForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $field_id | ||
| ilPropertyFormGUI | $form |
Definition at line 644 of file class.ilDclBaseRecordModel.php.
References setStandardField().
Referenced by setRecordFieldValueFromForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseRecordModel::setStandardFieldValueFromExcel | ( | $excel, | |
| $row, | |||
| $col, | |||
| $field | |||
| ) |
| $excel | ilExcel |
| $row | |
| $col | |
| $field | ilDclStandardField |
Definition at line 390 of file class.ilDclBaseRecordModel.php.
| ilDclBaseRecordModel::setTableId | ( | $a_id | ) |
Set Table ID.
| int | $a_id |
Definition at line 229 of file class.ilDclBaseRecordModel.php.
Referenced by doRead(), and ilDclRecordEditGUI\save().
Here is the caller graph for this function:
|
protected |
Definition at line 56 of file class.ilDclBaseRecordModel.php.
Referenced by getComments().
|
protected |
Definition at line 52 of file class.ilDclBaseRecordModel.php.
Referenced by getCreateDate().
|
protected |
Definition at line 26 of file class.ilDclBaseRecordModel.php.
Referenced by doCreate(), getId(), and getRecordFieldValues().
|
protected |
Definition at line 40 of file class.ilDclBaseRecordModel.php.
Referenced by getLastEditBy(), and setLastEditBy().
|
protected |
Definition at line 48 of file class.ilDclBaseRecordModel.php.
Referenced by getLastUpdate().
|
protected |
Definition at line 44 of file class.ilDclBaseRecordModel.php.
Referenced by getOwner().
|
protected |
Definition at line 22 of file class.ilDclBaseRecordModel.php.
Referenced by getRecordFields(), and loadRecordFields().
|
protected |
Definition at line 34 of file class.ilDclBaseRecordModel.php.
Referenced by getTable().
|
protected |
Definition at line 30 of file class.ilDclBaseRecordModel.php.
Referenced by getTableId().