mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
Transfer few methods from model database to propers tables models
This commit is contained in:
parent
f1170c82ea
commit
155cace466
6 changed files with 33 additions and 93 deletions
|
@ -63,6 +63,17 @@ namespace models;
|
|||
return $this->_run_query($query, $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get scheduleds message not in progress and before a date
|
||||
* @param string $date : Limit date
|
||||
* @return array
|
||||
*/
|
||||
public function get_scheduleds_not_in_progress_before ($date)
|
||||
{
|
||||
return $this->_select('scheduleds', ['<=at' => $date, 'progress' => false]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Cette fonction retourne les messages programmés avant une date et pour un numéro.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue