ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class ilDataCollectionNReferenceField. More...
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 () | |
![]() | |
__construct (ilDataCollectionRecord $record, ilDataCollectionField $field) | |
getExportValue () | |
getValueFromExcel ($excel, $row, $col) | |
getReferenceFromValue ($value) | |
![]() | |
__construct (ilDataCollectionRecord $record, ilDataCollectionField $field) | |
doUpdate () | |
Update object in database. More... | |
delete () | |
Delete record field in database. More... | |
getValue () | |
setValue ($value, $omit_parsing=false) | |
Set value for record field. More... | |
setValueFromForm (&$form) | |
getValueFromExcel ($excel, $row, $col) | |
fillFormInput (&$form) | |
getExportValue () | |
fillExcelExport ($worksheet, &$row, &$col) | |
getPlainText () | |
getHTML ($link=true) | |
getSortingValue ($link=true) | |
getSingleHTML () | |
getField () | |
getId () | |
getRecord () | |
Protected Member Functions | |
loadValueSorted () | |
loadValue () | |
getReferencesFromString ($stringValues) | |
This method tries to get as many valid references out of a string separated by commata. More... | |
![]() | |
getLinkHTML ($link_name=NULL, $value) | |
![]() | |
doRead () | |
Read object data from database. More... | |
doCreate () | |
Creates an Id and a database entry. More... | |
getFormInput () | |
loadValue () | |
Load the value. More... | |
Protected Attributes | |
$max_reference_length = 20 | |
![]() | |
$dcl_obj_id | |
$properties = array() | |
![]() | |
$id | |
$field | |
$record | |
$value | |
$user | |
$ctrl | |
$db | |
$lng | |
Class ilDataCollectionNReferenceField.
Definition at line 9 of file class.ilDataCollectionNReferenceField.php.
ilDataCollectionNReferenceField::doUpdate | ( | ) |
Definition at line 35 of file class.ilDataCollectionNReferenceField.php.
References $ilDB, $query, ilDataCollectionRecordField\$value, and getValue().
Referenced by ilDataCollectionNReferenceFieldGUI\buildTemplate().
ilDataCollectionNReferenceField::getExportValue | ( | ) |
Definition at line 201 of file class.ilDataCollectionNReferenceField.php.
References ilDataCollectionRecordField\$value, ilDataCollectionRecordField\getField(), ilDataCollectionCache\getRecordCache(), and getValue().
ilDataCollectionNReferenceField::getHTML | ( | ) |
Definition at line 179 of file class.ilDataCollectionNReferenceField.php.
ilDataCollectionNReferenceField::getLinkHTML | ( | $link, | |
$value | |||
) |
null | $link | |
$value |
Definition at line 167 of file class.ilDataCollectionNReferenceField.php.
References ilDataCollectionRecordField\$value, and ilDataCollectionRecordField\getField().
Referenced by ilDataCollectionNReferenceFieldGUI\buildTemplate().
ilDataCollectionNReferenceField::getMaxReferenceLength | ( | ) |
Definition at line 20 of file class.ilDataCollectionNReferenceField.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 229 of file class.ilDataCollectionNReferenceField.php.
References ilDataCollectionReferenceField\getReferenceFromValue().
Referenced by getValueFromExcel().
ilDataCollectionNReferenceField::getSingleHTML | ( | $options = NULL | ) |
this funciton is used to in the viewdefinition of a single record.
Definition at line 154 of file class.ilDataCollectionNReferenceField.php.
References $options.
ilDataCollectionNReferenceField::getValue | ( | ) |
Definition at line 66 of file class.ilDataCollectionNReferenceField.php.
References ilDataCollectionRecordField\$value, and loadValue().
Referenced by doUpdate(), and getExportValue().
ilDataCollectionNReferenceField::getValueFromExcel | ( | $excel, | |
$row, | |||
$col | |||
) |
Definition at line 184 of file class.ilDataCollectionNReferenceField.php.
References ilDataCollectionRecordField\$lng, $row, ilDataCollectionImporter\getExcelCharForInteger(), and getReferencesFromString().
|
protected |
Definition at line 134 of file class.ilDataCollectionNReferenceField.php.
Referenced by getValue().
|
protected |
Definition at line 73 of file class.ilDataCollectionNReferenceField.php.
References $ilDB, $query, ilDataCollectionRecordField\getField(), ilDataCollectionCache\getFieldCache(), ilDataCollectionDatatype\INPUTFORMAT_BOOLEAN, ilDataCollectionDatatype\INPUTFORMAT_FILE, ilDataCollectionDatatype\INPUTFORMAT_ILIAS_REF, ilDataCollectionDatatype\INPUTFORMAT_MOB, ilDataCollectionDatatype\INPUTFORMAT_NUMBER, and ilDataCollectionDatatype\INPUTFORMAT_TEXT.
ilDataCollectionNReferenceField::setMaxReferenceLength | ( | $max_reference_length | ) |
int | $max_reference_length |
Definition at line 28 of file class.ilDataCollectionNReferenceField.php.
References $max_reference_length.
|
protected |
Definition at line 14 of file class.ilDataCollectionNReferenceField.php.
Referenced by getMaxReferenceLength(), and setMaxReferenceLength().