91        $query = 
"SELECT * FROM il_dcl_record_field WHERE field_id = " . $this->db->quote($this->
getField()->
getId(), 
"integer") . 
" AND record_id = " 
   93        $set = $this->db->query(
$query);
 
   94        $rec = $this->db->fetchAssoc($set);
 
   95        $this->
id = $rec[
'id'];
 
  106        $id = $this->db->nextId(
"il_dcl_record_field");
 
  107        $query = 
"INSERT INTO il_dcl_record_field (id, record_id, field_id) VALUES (" . $this->db->quote(
$id, 
"integer") . 
", " 
  109        $this->db->manipulate(
$query);
 
  120        $datatype = $this->
getField()->getDatatype();
 
  121        $storage_location = ($this->
getField()->getStorageLocationOverride() !== 
null) ? $this->
getField()->getStorageLocationOverride() : $datatype->getStorageLocation();
 
  123        if ($storage_location != 0) {
 
  124            $query = 
"DELETE FROM il_dcl_stloc" . $storage_location . 
"_value WHERE record_field_id = " 
  125                . $this->db->quote($this->
id, 
"integer");
 
  126            $this->db->manipulate(
$query);
 
  128            $next_id = $this->db->nextId(
"il_dcl_stloc" . $storage_location . 
"_value");
 
  131            if ($storage_location == 3 && (is_null($this->value) || empty($this->value))) {
 
  132                $this->value = 
'0000-00-00 00:00:00';
 
  137            if ($this->
getId() == 0) {
 
  141            $insert_params = array(
 
  142                "value" => array($datatype->getDbType(), 
$value),
 
  143                "record_field_id" => array(
"integer", $this->
getId()),
 
  144                "id" => array(
"integer", $next_id),
 
  147            $this->db->insert(
"il_dcl_stloc" . $storage_location . 
"_value", $insert_params);
 
  155    public function delete()
 
  157        $datatype = $this->
getField()->getDatatype();
 
  158        $storage_location = ($this->
getField()->getStorageLocationOverride() !== 
null) ? $this->
getField()->getStorageLocationOverride() : $datatype->getStorageLocation();
 
  160        if ($storage_location != 0) {
 
  161            $query = 
"DELETE FROM il_dcl_stloc" . $storage_location . 
"_value WHERE record_field_id = " 
  162                . $this->db->quote($this->
id, 
"integer");
 
  163            $this->db->manipulate(
$query);
 
  166        $query2 = 
"DELETE FROM il_dcl_record_field WHERE id = " . $this->db->quote($this->
id, 
"integer");
 
  167        $this->db->manipulate($query2);
 
  217        $deserialize = json_decode(
$value, 
true);
 
  218        if (is_array($deserialize)) {
 
  235        if (!$omit_parsing) {
 
  239            if ($tmp !== 
false) {
 
  290        $value = $excel->getCell($row, $col);
 
  352            $confirmation->
addHiddenItem(
'field_' . $this->field->getId(), $this->getValue());
 
  381        if ($this->value === 
null) {
 
  382            $datatype = $this->
getField()->getDatatype();
 
  384            $storage_location = ($this->
getField()->getStorageLocationOverride() !== 
null) ? $this->
getField()->getStorageLocationOverride() : $datatype->getStorageLocation();
 
  385            if ($storage_location != 0) {
 
  386                $query = 
"SELECT * FROM il_dcl_stloc" . $storage_location . 
"_value WHERE record_field_id = " 
  387                    . $this->db->quote($this->
id, 
"integer");
 
  389                $set = $this->db->query(
$query);
 
  390                $rec = $this->db->fetchAssoc($set);
 
An exception for terminatinating execution or to throw for unit testing.
Confirmation screen class.
addHiddenItem($a_post_var, $a_value)
Add hidden item.
Class ilDclBaseFieldModel.
Class ilDclBaseFieldModel.
addHiddenItemsToConfirmation(ilConfirmationGUI &$confirmation)
getSortingValue($link=true)
getValueFromExcel($excel, $row, $col)
getRecordRepresentation()
setRecordRepresentation($record_representation)
deserializeData($value)
Deserialize data before applying to field.
parseValue($value)
Function to parse incoming data from form input value $value.
parseExportValue($value)
Function to parse incoming data from form input value $value.
fillExcelExport(ilExcel $worksheet, &$row, &$col)
parseSortingValue($value, $link=true)
Returns sortable value for the specific field-types.
doCreate()
Creates an Id and a database entry.
doUpdate()
Update object in database.
serializeData($value)
Serialize data before storing to db.
setValue($value, $omit_parsing=false)
Set value for record field.
getValueForRepresentation()
doRead()
Read object data from database.
__construct(ilDclBaseRecordModel $record, ilDclBaseFieldModel $field)
setFieldRepresentation($field_representation)
cloneStructure(ilDclBaseRecordFieldModel $old_record_field)
loadValue()
Load the value.
Class ilDclBaseRecordModel.
setCell($a_row, $a_col, $a_value, $a_datatype=null)
Set cell value.