25        $this->properties = $a_properties;
 
   40        $this->properties->getADT()->reset();
 
   42        $sql = 
"SELECT * FROM " . $this->properties->getTable() .
 
   43            " WHERE " . $this->properties->buildPrimaryWhere();
 
   44        $set = 
$ilDB->query($sql);
 
   45        if (
$ilDB->numRows($set)) {
 
   46            $row = 
$ilDB->fetchAssoc($set);
 
   47            $this->properties->readRecord($row);
 
   62        $fields = $this->properties->getPrimary();
 
   63        $this->properties->prepareInsert($fields);
 
   65        $ilDB->insert($this->properties->getTable(), $fields);
 
   68        $this->properties->afterInsert();
 
   81        $this->properties->prepareUpdate($fields);
 
   84        $ilDB->update($this->properties->getTable(), $fields, $this->properties->getPrimary());
 
   87        $this->properties->afterUpdate();
 
   93    public function delete()
 
   99        $ilDB->manipulate(
"DELETE FROM " . $this->properties->getTable() .
 
  100            " WHERE " . $this->properties->buildPrimaryWhere());
 
  103        $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.