ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilDclSelectionRecordFieldModel. More...
Public Member Functions | |
getValue () | |
setValueFromForm ($form) | |
parseExportValue ($value) | |
getValueFromExcel ($excel, $row, $col) | |
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) | |
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) | |
Data Fields | |
const | PROP_SELECTION_TYPE = '' |
const | PROP_SELECTION_OPTIONS = '' |
Protected Member Functions | |
getMultipleValuesFromString ($stringValues) | |
Copied from reference field and slightly adjusted. More... | |
Protected Member Functions inherited from ilDclBaseRecordFieldModel | |
doRead () | |
Read object data from database. More... | |
loadValue () | |
Load the value. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ilDclBaseRecordFieldModel | |
$id | |
$field | |
$record | |
$record_representation | |
$field_representation | |
$value | |
$user | |
$ctrl | |
$db | |
$lng | |
Class ilDclSelectionRecordFieldModel.
Definition at line 9 of file class.ilDclSelectionRecordFieldModel.php.
|
protected |
Copied from reference field and slightly adjusted.
This method tries to get as many valid values 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 |
Definition at line 88 of file class.ilDclSelectionRecordFieldModel.php.
References $delimiter, $i, $options, array, and ilDclBaseRecordFieldModel\getField().
Referenced by getValueFromExcel().
ilDclSelectionRecordFieldModel::getValue | ( | ) |
Definition at line 19 of file class.ilDclSelectionRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$value, array, and ilDclBaseRecordFieldModel\getField().
ilDclSelectionRecordFieldModel::getValueFromExcel | ( | $excel, | |
$row, | |||
$col | |||
) |
$excel | |
$row | |
$col |
Definition at line 56 of file class.ilDclSelectionRecordFieldModel.php.
References $DIC, ilDclBaseRecordFieldModel\$lng, $old, $row, $warning, array, ilDataCollectionImporter\getExcelCharForInteger(), ilDclBaseRecordFieldModel\getField(), and getMultipleValuesFromString().
ilDclSelectionRecordFieldModel::parseExportValue | ( | $value | ) |
mixed | $value |
Definition at line 42 of file class.ilDclSelectionRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$value, ilDclBaseRecordFieldModel\getField(), ilDclBaseRecordFieldModel\getId(), and ilDclSelectionOption\getValues().
ilDclSelectionRecordFieldModel::setValueFromForm | ( | $form | ) |
const ilDclSelectionRecordFieldModel::PROP_SELECTION_OPTIONS = '' |
Definition at line 14 of file class.ilDclSelectionRecordFieldModel.php.
const ilDclSelectionRecordFieldModel::PROP_SELECTION_TYPE = '' |
Definition at line 13 of file class.ilDclSelectionRecordFieldModel.php.