mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 20:59:28 +00:00
24 lines
453 B
PHP
24 lines
453 B
PHP
<?php
|
|
class Zeitsperre_model extends DB_Model
|
|
{
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'campus.tbl_zeitsperre';
|
|
$this->pk = 'zeitsperre_id';
|
|
}
|
|
|
|
public function deleteEntriesForCurrentDay()
|
|
{
|
|
$today = date('Y-m-d');
|
|
$qry = "DELETE FROM " . $this->dbTable . "
|
|
WHERE vondatum = '" . $today . "';";
|
|
|
|
return $this->execQuery($qry);
|
|
}
|
|
}
|