25 $this->properties = $a_properties;
38 $this->properties->getADT()->reset();
40 $sql =
"SELECT * FROM " . $this->properties->getTable() .
41 " WHERE " . $this->properties->buildPrimaryWhere();
42 $set =
$ilDB->query($sql);
43 if (
$ilDB->numRows($set)) {
45 $this->properties->readRecord(
$row);
58 $fields = $this->properties->getPrimary();
59 $this->properties->prepareInsert($fields);
61 $ilDB->insert($this->properties->getTable(), $fields);
64 $this->properties->afterInsert();
75 $this->properties->prepareUpdate($fields);
78 $ilDB->update($this->properties->getTable(), $fields, $this->properties->getPrimary());
81 $this->properties->afterUpdate();
87 public function delete()
91 $ilDB->manipulate(
"DELETE FROM " . $this->properties->getTable() .
92 " WHERE " . $this->properties->buildPrimaryWhere());
95 $this->properties->afterDelete();
An exception for terminatinating execution or to throw for unit testing.
ADT Active Record helper class.
__construct(ilADTGroupDBBridge $a_properties)
Constructor.
create()
Create/insert record.