mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
angepasste oberflaeche fuer gesamtorganisation
csv import
This commit is contained in:
@@ -418,6 +418,27 @@ class zeitaufzeichnung extends basis_db
|
||||
$this->errormsg = 'Fehler beim Laden der Daten';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Löscht sämtliche Einträge eines Users für einen Tag
|
||||
* @param string $user
|
||||
* @param string $tag Y-m-d
|
||||
*/
|
||||
public function deleteEntriesForUser($user, $tag)
|
||||
{
|
||||
$where = "uid=".$this->db_add_param($user);
|
||||
|
||||
$qry = "delete from campus.tbl_zeitaufzeichnung where $where and date_trunc('day', start) = '$tag'";
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Laden der Daten';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user