$this->db->delete($this->table, $this->idcolumn, $id === false ? $this->id : $id);
}
+ public function getAttribute($attr)
+ {
+ if ($this->data === false) return NULL;
+ if (property_exists($this->data, $attr))
+ return $this->data->$attr;
+
+ return NULL;
+ }
+
public function quote($string) { return $this->db->quote($string); }
public function execute($sql) { return $this->db->execute($sql); }
public function fetchValue($sql) { return $this->db->fetchValue($sql); }