|
ILIAS
release_8 Revision v8.25-1-g13de6a5eca6
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilDclReferenceRecordFieldModel:
Collaboration diagram for ilDclReferenceRecordFieldModel:Public Member Functions | |
| __construct (ilDclBaseRecordModel $record, ilDclBaseFieldModel $field) | |
| getExportValue () | |
| getValueFromExcel (ilExcel $excel, int $row, int $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, bool $omit_parsing=false) | |
| Set value for record field. More... | |
| setValueFromForm (ilPropertyFormGUI $form) | |
| getFormulaValue () | |
| parseExportValue ($value) | |
| Function to parse incoming data from form input value $value. More... | |
| getValueFromExcel (ilExcel $excel, int $row, int $col) | |
| parseValue ($value) | |
| Function to parse incoming data from form input value $value. More... | |
| getExportValue () | |
| fillExcelExport (ilExcel $worksheet, int &$row, int &$col) | |
| getPlainText () | |
| getSortingValue (bool $link=true) | |
| addHiddenItemsToConfirmation (ilConfirmationGUI $confirmation) | |
| parseSortingValue ($value, bool $link=true) | |
| Returns sortable value for the specific field-types. More... | |
| cloneStructure (ilDclBaseRecordFieldModel $old_record_field) | |
| afterClone () | |
| getField () | |
| getId () | |
| getRecord () | |
| getRecordRepresentation () | |
| setRecordRepresentation (ilDclBaseRecordRepresentation $record_representation) | |
| getFieldRepresentation () | |
| setFieldRepresentation (ilDclBaseFieldRepresentation $field_representation) | |
Protected Member Functions | |
| getReferencesFromString (string $stringValues) | |
| This method tries to get as many valid references out of a string separated by commata. More... | |
| getCloneRecordId (?string $clone_reference) | |
Protected Member Functions inherited from ilDclBaseRecordFieldModel | |
| doRead () | |
| Read object data from database. More... | |
| loadValue () | |
| Load the value. More... | |
Protected Attributes | |
| int | $dcl_obj_id |
Protected Attributes inherited from ilDclBaseRecordFieldModel | |
| int | $id = null |
| ilDclBaseFieldModel | $field |
| ilDclBaseRecordModel | $record |
| ilDclBaseRecordRepresentation | $record_representation = null |
| ilDclBaseFieldRepresentation | $field_representation = null |
| $value | |
| ilObjUser | $user |
| ilCtrl | $ctrl |
| ilDBInterface | $db |
| ilLanguage | $lng |
| 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.ilDclReferenceRecordFieldModel.php.
| ilDclReferenceRecordFieldModel::__construct | ( | ilDclBaseRecordModel | $record, |
| ilDclBaseFieldModel | $field | ||
| ) |
| ilDclBaseRecordModel | $record | |
| ilDclBaseFieldModel | $field |
Reimplemented from ilDclBaseRecordFieldModel.
Definition at line 27 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$field, ilDclBaseRecordFieldModel\$record, ILIAS\GlobalScreen\Provider\__construct(), ilDclBaseRecordFieldModel\getField(), and ilDclCache\getTableCache().
Here is the call graph for this function:| ilDclReferenceRecordFieldModel::afterClone | ( | ) |
Reimplemented from ilDclBaseRecordFieldModel.
Definition at line 142 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$value, ilDclBaseRecordFieldModel\doUpdate(), ilDclCache\getCloneOf(), getCloneRecordId(), 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:
|
protected |
Definition at line 167 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclCache\getCloneOf(), and ilDclCache\TYPE_RECORD.
Referenced by afterClone().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclReferenceRecordFieldModel::getExportValue | ( | ) |
Reimplemented from ilDclBaseRecordFieldModel.
Definition at line 37 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 | ) |
Definition at line 123 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$field, ilDclBaseRecordFieldModel\$record, ilDclBaseRecordFieldModel\$value, ilDclBaseRecordFieldModel\getField(), ilDclCache\getFieldCache(), ilDclBaseFieldModel\getId(), ilDclBaseRecordModel\getId(), ilDclBaseRecordModel\getRecordField(), ilDclCache\getTableCache(), ilDclBaseFieldModel\getTableId(), and ilDclBaseFieldModel\PROP_REFERENCE.
Referenced by 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.
Definition at line 95 of file class.ilDclReferenceRecordFieldModel.php.
References $i, and getReferenceFromValue().
Referenced by getValueFromExcel().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclReferenceRecordFieldModel::getValueFromExcel | ( | ilExcel | $excel, |
| int | $row, | ||
| int | $col | ||
| ) |
Reimplemented from ilDclBaseRecordFieldModel.
Definition at line 67 of file class.ilDclReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$value, ilDataCollectionImporter\getExcelCharForInteger(), ilDclBaseRecordFieldModel\getField(), getReferenceFromValue(), getReferencesFromString(), ILIAS\Repository\lng(), and ilDclBaseFieldModel\PROP_N_REFERENCE.
Here is the call graph for this function:
|
protected |
Definition at line 21 of file class.ilDclReferenceRecordFieldModel.php.