ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
getMaxReferenceLength () | |
setMaxReferenceLength ($max_reference_length) | |
doUpdate () | |
getValue () | |
getSingleHTML ($options=null) | |
this funciton is used to in the viewdefinition of a single record. More... | |
getLinkHTML ($link, $value) | |
getHTML () | |
getValueFromExcel ($excel, $row, $col) | |
getExportValue () | |
Public Member Functions inherited from ilDclReferenceRecordFieldModel | |
__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 | |
loadValueSorted () | |
loadValue () | |
getReferencesFromString ($stringValues) | |
This method tries to get as many valid references out of a string separated by commata. More... | |
Protected Member Functions inherited from ilDclReferenceRecordFieldModel | |
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 | |
$max_reference_length = 20 | |
Protected Attributes inherited from ilDclReferenceRecordFieldModel | |
$dcl_obj_id | |
Protected Attributes inherited from ilDclBaseRecordFieldModel | |
$id | |
$field | |
$record | |
$record_representation | |
$field_representation | |
$value | |
$user | |
$ctrl | |
$db | |
$lng | |
Definition at line 8 of file class.ilDclNReferenceRecordFieldModel.php.
ilDclNReferenceRecordFieldModel::doUpdate | ( | ) |
Definition at line 35 of file class.ilDclNReferenceRecordFieldModel.php.
References $DIC, $ilDB, $query, ilDclBaseRecordFieldModel\$value, $values, ilDclBaseRecordFieldModel\getField(), and getValue().
Referenced by ilDclNReferenceFieldGUI\buildTemplate().
ilDclNReferenceRecordFieldModel::getExportValue | ( | ) |
Definition at line 219 of file class.ilDclNReferenceRecordFieldModel.php.
References $name, ilDclBaseRecordFieldModel\$value, $values, ilDclBaseRecordFieldModel\getField(), ilDclCache\getRecordCache(), and getValue().
ilDclNReferenceRecordFieldModel::getHTML | ( | ) |
Definition at line 190 of file class.ilDclNReferenceRecordFieldModel.php.
ilDclNReferenceRecordFieldModel::getLinkHTML | ( | $link, | |
$value | |||
) |
null | $link | |
$value |
Definition at line 177 of file class.ilDclNReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$value, and ilDclBaseRecordFieldModel\getField().
Referenced by ilDclNReferenceFieldGUI\buildTemplate().
ilDclNReferenceRecordFieldModel::getMaxReferenceLength | ( | ) |
Definition at line 20 of file class.ilDclNReferenceRecordFieldModel.php.
References $max_reference_length.
|
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 |
Definition at line 251 of file class.ilDclNReferenceRecordFieldModel.php.
References $i, and ilDclReferenceRecordFieldModel\getReferenceFromValue().
Referenced by getValueFromExcel().
ilDclNReferenceRecordFieldModel::getSingleHTML | ( | $options = null | ) |
this funciton is used to in the viewdefinition of a single record.
Definition at line 163 of file class.ilDclNReferenceRecordFieldModel.php.
References PHPMailer\PHPMailer\$options.
ilDclNReferenceRecordFieldModel::getValue | ( | ) |
Definition at line 68 of file class.ilDclNReferenceRecordFieldModel.php.
References ilDclBaseRecordFieldModel\$value, and loadValue().
Referenced by doUpdate(), and getExportValue().
ilDclNReferenceRecordFieldModel::getValueFromExcel | ( | $excel, | |
$row, | |||
$col | |||
) |
Definition at line 198 of file class.ilDclNReferenceRecordFieldModel.php.
References $DIC, ilDclBaseRecordFieldModel\$lng, $row, $warning, ilDataCollectionImporter\getExcelCharForInteger(), and getReferencesFromString().
|
protected |
Definition at line 141 of file class.ilDclNReferenceRecordFieldModel.php.
References $DIC, $ilDB, $query, and ilDclBaseRecordFieldModel\getField().
Referenced by getValue().
|
protected |
Definition at line 76 of file class.ilDclNReferenceRecordFieldModel.php.
References $DIC, $ilDB, $query, ilDclBaseRecordFieldModel\getField(), ilDclCache\getFieldCache(), ilDclDatatype\INPUTFORMAT_BOOLEAN, ilDclDatatype\INPUTFORMAT_FILE, ilDclDatatype\INPUTFORMAT_ILIAS_REF, ilDclDatatype\INPUTFORMAT_MOB, ilDclDatatype\INPUTFORMAT_NUMBER, and ilDclDatatype\INPUTFORMAT_TEXT.
ilDclNReferenceRecordFieldModel::setMaxReferenceLength | ( | $max_reference_length | ) |
int | $max_reference_length |
Definition at line 29 of file class.ilDclNReferenceRecordFieldModel.php.
References $max_reference_length.
|
protected |
Definition at line 14 of file class.ilDclNReferenceRecordFieldModel.php.
Referenced by getMaxReferenceLength(), and setMaxReferenceLength().