65 $this->datatype_property_id = $a_id;
85 $this->value = $a_value;
105 $this->field_id = $a_id;
126 $query =
"SELECT * FROM il_dcl_field_prop WHERE id = ".$ilDB->quote($this->
getId(),
"integer");
127 $set = $ilDB->query(
$query);
128 $rec = $ilDB->fetchAssoc($set);
144 $id = $ilDB->nextId(
"il_dcl_field_prop");
146 $query =
"INSERT INTO il_dcl_field_prop (".
148 ", datatype_prop_id".
152 $ilDB->quote($this->
getId(),
"integer")
154 .
",".$ilDB->quote($this->
getFieldId(),
"integer")
155 .
",".$ilDB->quote($this->
getValue(),
"text")
157 $ilDB->manipulate(
$query);
164 public function doUpdate()
169 $sql =
"SELECT * FROM il_dcl_field_prop WHERE datatype_prop_id = " . $ilDB->quote($this->
getDatatypePropertyId(),
'integer') .
170 " AND field_id = " . $ilDB->quote($this->
getFieldId(),
'integer');
171 $set = $ilDB->query($sql);
172 if (!$ilDB->numRows($set)) {
177 $ilDB->update(
"il_dcl_field_prop", array(
179 "field_id" => array(
"integer", $this->
getFieldId()),
180 "value" => array(
"text", $this->
getValue())
183 "field_id" => array(
"integer", $this->
getFieldId())