|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilDclBaseFieldModel. More...
Inheritance diagram for ilDclReferenceRecordFieldModel:
Collaboration diagram for ilDclReferenceRecordFieldModel:Public Member Functions | |
| __construct (ilDclBaseRecordModel $record, ilDclBaseFieldModel $field) | |
| getExportValue () | |
| getValueFromExcel ($excel, $row, $col) | |
| getReferenceFromValue ($value) | |
| afterClone () | |
Public Member Functions inherited from ilDclBaseRecordFieldModel | |
| __construct (ilDclBaseRecordModel $record, ilDclBaseFieldModel $field) | |
| doCreate () | |
| Creates an Id and a database entry. More... | |
| doUpdate () | |
| Update object in database. More... | |
| delete () | |
| Delete record field in database. More... | |
| getValue () | |
| getValueForRepresentation () | |
| serializeData ($value) | |
| Serialize data before storing to db. More... | |
| deserializeData ($value) | |
| Deserialize data before applying to field. More... | |
| setValue ($value, $omit_parsing=false) | |
| Set value for record field. More... | |
| setValueFromForm ($form) | |
| getFormulaValue () | |
| parseExportValue ($value) | |
| Function to parse incoming data from form input value $value. More... | |
| getValueFromExcel ($excel, $row, $col) | |
| parseValue ($value) | |
| Function to parse incoming data from form input value $value. More... | |
| getExportValue () | |
| fillExcelExport (ilExcel $worksheet, &$row, &$col) | |
| getPlainText () | |
| getSortingValue ($link=true) | |
| addHiddenItemsToConfirmation (ilConfirmationGUI &$confirmation) | |
| parseSortingValue ($value, $link=true) | |
| Returns sortable value for the specific field-types. More... | |
| cloneStructure (ilDclBaseRecordFieldModel $old_record_field) | |
| afterClone () | |
| getField () | |
| getId () | |
| getRecord () | |
| getRecordRepresentation () | |
| setRecordRepresentation ($record_representation) | |
| getFieldRepresentation () | |
| setFieldRepresentation ($field_representation) | |
Protected Member Functions | |
| getReferencesFromString ($stringValues) | |
| This method tries to get as many valid references out of a string separated by commata. More... | |
Protected Member Functions inherited from ilDclBaseRecordFieldModel | |
| doRead () | |
| Read object data from database. More... | |
| loadValue () | |
| Load the value. More... | |
Protected Attributes | |
| $dcl_obj_id | |
Protected Attributes inherited from ilDclBaseRecordFieldModel | |
| $id | |
| $field | |
| $record | |
| $record_representation | |
| $field_representation | |
| $value | |
| $user | |
| $ctrl | |
| $db | |
| $lng | |
Class ilDclBaseFieldModel.
Definition at line 20 of file class.ilDclReferenceRecordFieldModel.php.
| ilDclReferenceRecordFieldModel::__construct | ( | ilDclBaseRecordModel | $record, |
| ilDclBaseFieldModel | $field | ||
| ) |
| ilDclBaseRecordModel | $record | |
| ilDclBaseFieldModel | $field |
Reimplemented from ilDclBaseRecordFieldModel.
Definition at line 33 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$field, ilDclBaseRecordFieldModel\$record, ilDclBaseRecordFieldModel\getField(), and ilDclCache\getTableCache().
Here is the call graph for this function:| ilDclReferenceRecordFieldModel::afterClone | ( | ) |
Reimplemented from ilDclBaseRecordFieldModel.
Definition at line 171 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\doUpdate(), ilDclCache\getCloneOf(), ilDclBaseRecordFieldModel\getField(), ilDclBaseRecordFieldModel\getId(), ilDclBaseRecordFieldModel\getRecord(), ilDclCache\getRecordFieldCache(), ilDclBaseRecordFieldModel\setValue(), ilDclCache\TYPE_FIELD, and ilDclCache\TYPE_RECORD.
Here is the call graph for this function:| ilDclReferenceRecordFieldModel::getExportValue | ( | ) |
Reimplemented from ilDclBaseRecordFieldModel.
Reimplemented in ilDclNReferenceRecordFieldModel.
Definition at line 44 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$value, ilDclBaseRecordFieldModel\getField(), ilDclCache\getRecordCache(), ilDclBaseRecordFieldModel\getValue(), ilDclBaseFieldModel\PROP_N_REFERENCE, and ilDclBaseFieldModel\PROP_REFERENCE.
Here is the call graph for this function:| ilDclReferenceRecordFieldModel::getReferenceFromValue | ( | $value | ) |
| $field | ilDclBaseFieldModel |
| $value |
Definition at line 151 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$field, ilDclBaseRecordFieldModel\$record, $table, ilDclBaseRecordFieldModel\$value, ilDclBaseRecordFieldModel\getField(), ilDclCache\getFieldCache(), ilDclCache\getTableCache(), and ilDclBaseFieldModel\PROP_REFERENCE.
Referenced by ilDclNReferenceRecordFieldModel\getReferencesFromString(), getReferencesFromString(), and getValueFromExcel().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
This method tries to get as many valid references out of a string separated by commata.
This is problematic as a string value could contain commata itself. It is optimized to work with an exported list from this DataCollection. And works fine in most cases. Only areference list with the values "hello" and "hello, world" Will mess with it.
| $stringValues | string |
Reimplemented in ilDclNReferenceRecordFieldModel.
Definition at line 115 of file class.ilDclReferenceRecordFieldModel.php.
References $delimiter, $i, and getReferenceFromValue().
Referenced by getValueFromExcel().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclReferenceRecordFieldModel::getValueFromExcel | ( | $excel, | |
| $row, | |||
| $col | |||
| ) |
| $excel | |
| $row | |
| $col |
Reimplemented from ilDclBaseRecordFieldModel.
Reimplemented in ilDclNReferenceRecordFieldModel.
Definition at line 81 of file class.ilDclReferenceRecordFieldModel.php.
References $DIC, ilDclBaseRecordFieldModel\$lng, $row, ilDclBaseRecordFieldModel\$value, $warning, ilDataCollectionImporter\getExcelCharForInteger(), ilDclBaseRecordFieldModel\getField(), getReferenceFromValue(), getReferencesFromString(), and ilDclBaseFieldModel\PROP_N_REFERENCE.
Here is the call graph for this function:
|
protected |
Definition at line 26 of file class.ilDclReferenceRecordFieldModel.php.