ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilDclBaseFieldModel. More...
Public Member Functions | |
__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 | |
doRead () | |
Read object data from database. More... | |
loadValue () | |
Load the value. More... | |
Protected Attributes | |
$id | |
$field | |
$record | |
$record_representation | |
$field_representation | |
$value | |
$user | |
$ctrl | |
$db | |
$lng | |
Class ilDclBaseFieldModel.
Definition at line 18 of file class.ilDclBaseRecordFieldModel.php.
ilDclBaseRecordFieldModel::__construct | ( | ilDclBaseRecordModel | $record, |
ilDclBaseFieldModel | $field | ||
) |
ilDclBaseRecordModel | $record | |
ilDclBaseFieldModel | $field |
Definition at line 67 of file class.ilDclBaseRecordFieldModel.php.
References $DIC, $field, $ilCtrl, $ilDB, $ilUser, $lng, $record, doRead(), and user().
ilDclBaseRecordFieldModel::addHiddenItemsToConfirmation | ( | ilConfirmationGUI & | $confirmation | ) |
ilConfirmationGUI | $confirmation |
Definition at line 350 of file class.ilDclBaseRecordFieldModel.php.
References $key, $value, ilConfirmationGUI\addHiddenItem(), and getValue().
ilDclBaseRecordFieldModel::afterClone | ( | ) |
Definition at line 413 of file class.ilDclBaseRecordFieldModel.php.
ilDclBaseRecordFieldModel::cloneStructure | ( | ilDclBaseRecordFieldModel | $old_record_field | ) |
ilDclBaseRecordFieldModel | $old_record_field |
Definition at line 403 of file class.ilDclBaseRecordFieldModel.php.
References doUpdate(), getValue(), and setValue().
ilDclBaseRecordFieldModel::delete | ( | ) |
Delete record field in database.
Definition at line 157 of file class.ilDclBaseRecordFieldModel.php.
References $query, and getField().
ilDclBaseRecordFieldModel::deserializeData | ( | $value | ) |
Deserialize data before applying to field.
$value | mixed |
Definition at line 217 of file class.ilDclBaseRecordFieldModel.php.
References $value.
Referenced by loadValue().
ilDclBaseRecordFieldModel::doCreate | ( | ) |
Creates an Id and a database entry.
Definition at line 106 of file class.ilDclBaseRecordFieldModel.php.
References $id, $query, getField(), getId(), and getRecord().
Referenced by doUpdate().
|
protected |
Read object data from database.
Definition at line 87 of file class.ilDclBaseRecordFieldModel.php.
References $query, getField(), getId(), getRecord(), and loadValue().
Referenced by __construct().
ilDclBaseRecordFieldModel::doUpdate | ( | ) |
Update object in database.
Definition at line 119 of file class.ilDclBaseRecordFieldModel.php.
References $query, $value, doCreate(), getField(), getId(), and serializeData().
Referenced by ilDclFileuploadRecordFieldModel\afterClone(), ilDclReferenceRecordFieldModel\afterClone(), ilDclMobRecordFieldModel\afterClone(), and cloneStructure().
ilDclBaseRecordFieldModel::fillExcelExport | ( | ilExcel | $worksheet, |
& | $row, | ||
& | $col | ||
) |
$worksheet | |
$row | |
$col |
Definition at line 325 of file class.ilDclBaseRecordFieldModel.php.
References $row, getExportValue(), and ilExcel\setCell().
ilDclBaseRecordFieldModel::getExportValue | ( | ) |
Definition at line 314 of file class.ilDclBaseRecordFieldModel.php.
References getValue(), and parseExportValue().
Referenced by ilDclTextSelectionRecordFieldModel\fillExcelExport(), fillExcelExport(), getFormulaValue(), and getPlainText().
ilDclBaseRecordFieldModel::getField | ( | ) |
Definition at line 421 of file class.ilDclBaseRecordFieldModel.php.
References $field.
Referenced by ilDclIliasReferenceRecordFieldModel\__construct(), ilDclRatingRecordFieldModel\__construct(), ilDclFormulaRecordFieldModel\__construct(), ilDclReferenceRecordFieldModel\__construct(), ilDclFileuploadRecordFieldModel\afterClone(), ilDclReferenceRecordFieldModel\afterClone(), ilDclMobRecordFieldModel\afterClone(), ilDclNReferenceFieldGUI\buildTemplate(), ilDclRatingRecordFieldModel\delete(), delete(), doCreate(), doRead(), ilDclNReferenceRecordFieldModel\doUpdate(), doUpdate(), ilDclTextRecordFieldModel\fillExcelExport(), ilDclReferenceRecordFieldModel\getExportValue(), ilDclRatingRecordFieldModel\getExportValue(), ilDclTextRecordFieldModel\getExportValue(), ilDclNReferenceRecordFieldModel\getExportValue(), ilDclNReferenceRecordFieldModel\getLinkHTML(), ilDclSelectionRecordFieldModel\getMultipleValuesFromString(), ilDclFieldFactory\getRecordRepresentationInstance(), ilDclReferenceRecordFieldModel\getReferenceFromValue(), ilDclSelectionRecordFieldModel\getValue(), ilDclRatingRecordFieldModel\getValue(), ilDclSelectionRecordFieldModel\getValueFromExcel(), ilDclReferenceRecordFieldModel\getValueFromExcel(), ilDclTextRecordFieldModel\getValueFromExcel(), ilDclNReferenceRecordFieldModel\loadValue(), loadValue(), ilDclNReferenceRecordFieldModel\loadValueSorted(), ilDclFormulaRecordFieldModel\parse(), ilDclSelectionRecordFieldModel\parseExportValue(), ilDclTextRecordFieldModel\parseSortingValue(), ilDclMobRecordFieldModel\parseValue(), ilDclTextRecordFieldModel\parseValue(), ilDclTextRecordFieldModel\setValueFromForm(), ilDclFileuploadRecordFieldModel\setValueFromForm(), ilDclMobRecordFieldModel\setValueFromForm(), and setValueFromForm().
ilDclBaseRecordFieldModel::getFieldRepresentation | ( | ) |
Definition at line 466 of file class.ilDclBaseRecordFieldModel.php.
References $field_representation.
ilDclBaseRecordFieldModel::getFormulaValue | ( | ) |
Definition at line 264 of file class.ilDclBaseRecordFieldModel.php.
References getExportValue().
ilDclBaseRecordFieldModel::getId | ( | ) |
Definition at line 430 of file class.ilDclBaseRecordFieldModel.php.
References $id.
Referenced by ilDclFileuploadRecordFieldModel\afterClone(), ilDclReferenceRecordFieldModel\afterClone(), ilDclMobRecordFieldModel\afterClone(), ilDclRatingRecordFieldModel\delete(), doCreate(), doRead(), doUpdate(), ilDclRatingRecordFieldModel\getExportValue(), ilDclCache\getRecordRepresentation(), ilDclFieldFactory\getRecordRepresentationInstance(), ilDclRatingRecordFieldModel\getValue(), ilDclSelectionRecordFieldModel\parseExportValue(), ilDclMobRecordFieldModel\parseValue(), ilDclTextRecordFieldModel\setValueFromForm(), ilDclFileuploadRecordFieldModel\setValueFromForm(), ilDclMobRecordFieldModel\setValueFromForm(), and setValueFromForm().
ilDclBaseRecordFieldModel::getPlainText | ( | ) |
Definition at line 335 of file class.ilDclBaseRecordFieldModel.php.
References getExportValue().
ilDclBaseRecordFieldModel::getRecord | ( | ) |
Definition at line 439 of file class.ilDclBaseRecordFieldModel.php.
References $record.
Referenced by ilDclFileuploadRecordFieldModel\afterClone(), ilDclReferenceRecordFieldModel\afterClone(), ilDclMobRecordFieldModel\afterClone(), doCreate(), doRead(), ilDclRatingRecordFieldModel\getExportValue(), ilDclRatingRecordFieldModel\getValue(), ilDclFormulaRecordFieldModel\parse(), ilDclMobRecordFieldModel\parseValue(), and ilDclFileuploadRecordFieldModel\setValue().
ilDclBaseRecordFieldModel::getRecordRepresentation | ( | ) |
Definition at line 448 of file class.ilDclBaseRecordFieldModel.php.
References $record_representation.
ilDclBaseRecordFieldModel::getSortingValue | ( | $link = true | ) |
Definition at line 341 of file class.ilDclBaseRecordFieldModel.php.
References getValue(), and parseSortingValue().
ilDclBaseRecordFieldModel::getValue | ( | ) |
Definition at line 176 of file class.ilDclBaseRecordFieldModel.php.
References $value, and loadValue().
Referenced by ilDclTextRecordFieldModel\addHiddenItemsToConfirmation(), ilDclFileuploadRecordFieldModel\addHiddenItemsToConfirmation(), ilDclMobRecordFieldModel\addHiddenItemsToConfirmation(), addHiddenItemsToConfirmation(), cloneStructure(), ilDclReferenceRecordFieldModel\getExportValue(), ilDclIliasReferenceRecordFieldModel\getExportValue(), ilDclTextRecordFieldModel\getExportValue(), getExportValue(), ilDclTextRecordFieldModel\getPlainText(), getSortingValue(), ilDclIliasReferenceRecordFieldModel\getStatus(), ilDclIliasReferenceRecordFieldModel\getValueForRepresentation(), getValueForRepresentation(), and ilDclMobRecordFieldModel\parseValue().
ilDclBaseRecordFieldModel::getValueForRepresentation | ( | ) |
Definition at line 187 of file class.ilDclBaseRecordFieldModel.php.
References getValue().
ilDclBaseRecordFieldModel::getValueFromExcel | ( | $excel, | |
$row, | |||
$col | |||
) |
$excel | |
$row | |
$col |
Definition at line 290 of file class.ilDclBaseRecordFieldModel.php.
|
protected |
Load the value.
Definition at line 381 of file class.ilDclBaseRecordFieldModel.php.
References $query, $value, deserializeData(), and getField().
Referenced by doRead(), getValue(), ilDclFileuploadRecordFieldModel\setValue(), and setValue().
ilDclBaseRecordFieldModel::parseExportValue | ( | $value | ) |
Function to parse incoming data from form input value $value.
returns the string/number/etc. to store in the database.
mixed | $value |
Definition at line 277 of file class.ilDclBaseRecordFieldModel.php.
References $value.
Referenced by getExportValue().
ilDclBaseRecordFieldModel::parseSortingValue | ( | $value, | |
$link = true |
|||
) |
Returns sortable value for the specific field-types.
$value | ||
ilDclBaseRecordFieldModel | $record_field | |
bool | true | $link |
Definition at line 372 of file class.ilDclBaseRecordFieldModel.php.
References $value.
Referenced by getSortingValue().
ilDclBaseRecordFieldModel::parseValue | ( | $value | ) |
Function to parse incoming data from form input value $value.
returns the string/number/etc. to store in the database.
$value |
Definition at line 305 of file class.ilDclBaseRecordFieldModel.php.
References $value.
Referenced by ilDclFileuploadRecordFieldModel\setValue(), and setValue().
ilDclBaseRecordFieldModel::serializeData | ( | $value | ) |
Serialize data before storing to db.
$value | mixed |
Definition at line 200 of file class.ilDclBaseRecordFieldModel.php.
References $value.
Referenced by doUpdate().
ilDclBaseRecordFieldModel::setFieldRepresentation | ( | $field_representation | ) |
ilDclBaseFieldRepresentation | $field_representation |
Definition at line 475 of file class.ilDclBaseRecordFieldModel.php.
References $field_representation.
ilDclBaseRecordFieldModel::setRecordRepresentation | ( | $record_representation | ) |
ilDclBaseRecordRepresentation | $record_representation |
Definition at line 457 of file class.ilDclBaseRecordFieldModel.php.
References $record_representation.
ilDclBaseRecordFieldModel::setValue | ( | $value, | |
$omit_parsing = false |
|||
) |
Set value for record field.
mixed | $value | |
bool | $omit_parsing | If true, does not parse the value and stores it in the given format |
Definition at line 234 of file class.ilDclBaseRecordFieldModel.php.
References $value, loadValue(), and parseValue().
Referenced by ilDclReferenceRecordFieldModel\afterClone(), ilDclMobRecordFieldModel\afterClone(), ilDclNReferenceFieldGUI\buildTemplate(), cloneStructure(), ilDclTextRecordFieldModel\setValueFromForm(), ilDclMobRecordFieldModel\setValueFromForm(), and setValueFromForm().
ilDclBaseRecordFieldModel::setValueFromForm | ( | $form | ) |
$form | ilPropertyFormGUI |
Definition at line 253 of file class.ilDclBaseRecordFieldModel.php.
References $form, $value, getField(), getId(), and setValue().
|
protected |
Definition at line 52 of file class.ilDclBaseRecordFieldModel.php.
|
protected |
Definition at line 56 of file class.ilDclBaseRecordFieldModel.php.
|
protected |
Definition at line 28 of file class.ilDclBaseRecordFieldModel.php.
Referenced by __construct(), ilDclFileuploadRecordFieldModel\afterClone(), ilDclMobRecordFieldModel\afterClone(), getField(), ilDclReferenceRecordFieldModel\getReferenceFromValue(), and ilDclMobRecordFieldModel\parseValue().
|
protected |
Definition at line 40 of file class.ilDclBaseRecordFieldModel.php.
Referenced by getFieldRepresentation(), and setFieldRepresentation().
|
protected |
Definition at line 24 of file class.ilDclBaseRecordFieldModel.php.
Referenced by doCreate(), and getId().
|
protected |
Definition at line 60 of file class.ilDclBaseRecordFieldModel.php.
Referenced by __construct(), ilDclSelectionRecordFieldModel\getValueFromExcel(), ilDclReferenceRecordFieldModel\getValueFromExcel(), and ilDclNReferenceRecordFieldModel\getValueFromExcel().
|
protected |
Definition at line 32 of file class.ilDclBaseRecordFieldModel.php.
Referenced by __construct(), ilDclFileuploadRecordFieldModel\afterClone(), ilDclMobRecordFieldModel\afterClone(), getRecord(), and ilDclReferenceRecordFieldModel\getReferenceFromValue().
|
protected |
Definition at line 36 of file class.ilDclBaseRecordFieldModel.php.
Referenced by getRecordRepresentation(), and setRecordRepresentation().
|
protected |
Definition at line 48 of file class.ilDclBaseRecordFieldModel.php.
|
protected |
Definition at line 44 of file class.ilDclBaseRecordFieldModel.php.
Referenced by ilDclTextRecordFieldModel\addHiddenItemsToConfirmation(), ilDclFileuploadRecordFieldModel\addHiddenItemsToConfirmation(), ilDclMobRecordFieldModel\addHiddenItemsToConfirmation(), addHiddenItemsToConfirmation(), deserializeData(), ilDclNReferenceRecordFieldModel\doUpdate(), doUpdate(), ilDclTextRecordFieldModel\fillExcelExport(), ilDclReferenceRecordFieldModel\getExportValue(), ilDclTextRecordFieldModel\getExportValue(), ilDclNReferenceRecordFieldModel\getExportValue(), ilDclNReferenceRecordFieldModel\getLinkHTML(), ilDclTextRecordFieldModel\getPlainText(), ilDclReferenceRecordFieldModel\getReferenceFromValue(), ilDclSelectionRecordFieldModel\getValue(), ilDclNReferenceRecordFieldModel\getValue(), getValue(), ilDclDatetimeRecordFieldModel\getValueFromExcel(), ilDclReferenceRecordFieldModel\getValueFromExcel(), ilDclTextRecordFieldModel\getValueFromExcel(), getValueFromExcel(), loadValue(), ilDclBooleanRecordFieldModel\parseExportValue(), ilDclDatetimeRecordFieldModel\parseExportValue(), ilDclSelectionRecordFieldModel\parseExportValue(), ilDclMobRecordFieldModel\parseExportValue(), ilDclFileuploadRecordFieldModel\parseExportValue(), parseExportValue(), ilDclDatetimeRecordFieldModel\parseSortingValue(), ilDclTextRecordFieldModel\parseSortingValue(), ilDclFileuploadRecordFieldModel\parseSortingValue(), ilDclMobRecordFieldModel\parseSortingValue(), parseSortingValue(), ilDclNumberRecordFieldModel\parseValue(), ilDclMobRecordFieldModel\parseValue(), ilDclBooleanRecordFieldModel\parseValue(), ilDclDatetimeRecordFieldModel\parseValue(), ilDclTextRecordFieldModel\parseValue(), parseValue(), serializeData(), ilDclFormulaRecordFieldModel\setValue(), ilDclFileuploadRecordFieldModel\setValue(), setValue(), ilDclTextRecordFieldModel\setValueFromForm(), ilDclFileuploadRecordFieldModel\setValueFromForm(), ilDclMobRecordFieldModel\setValueFromForm(), and setValueFromForm().