diff --git a/include/zeitaufzeichnung_gd.class.php b/include/zeitaufzeichnung_gd.class.php new file mode 100644 index 000000000..c88cc9525 --- /dev/null +++ b/include/zeitaufzeichnung_gd.class.php @@ -0,0 +1,83 @@ +uid) && + is_string($this->studiensemester_kurzbz) && + is_bool($this->selbstverwaltete_pause)) + { + $qry = ' + INSERT INTO campus.tbl_zeitaufzeichnung_gd ( + uid, + studiensemester_kurzbz, + selbstverwaltete_pause, + insertvon + ) + VALUES ('. + $this->db_add_param($this->uid). ', '. + $this->db_add_param($this->studiensemester_kurzbz). ', '. + $this->db_add_param($this->selbstverwaltete_pause). ', '. + $this->db_add_param($this->uid). ' + ); + '; + + if ($this->db_query($qry)) + { + return true; + } + else + { + $this->errormsg = 'Fehler beim Speichern der selbstverwalteten Pause'; + return false; + } + } + else + { + $this->errormsg = 'Falsche Parameterübergabe'; + return false; + } + } +} \ No newline at end of file