mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46:27 +02:00
Ajout du système de popup sur reception d'un SMS
This commit is contained in:
parent
0b2fe3c989
commit
90e761e152
9 changed files with 91 additions and 3 deletions
|
@ -95,6 +95,26 @@
|
|||
return $this->runQuery($query, $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Récupère les SMS reçus depuis une date
|
||||
* @param $date : La date depuis laquelle on veux les SMS (au format 2014-10-25 20:10:05)
|
||||
* @return array : Tableau avec tous les SMS depuis la date
|
||||
*/
|
||||
public function getReceivedsSince($date)
|
||||
{
|
||||
$query = "
|
||||
SELECT *
|
||||
FROM receiveds
|
||||
WHERE at > STR_TO_DATE(:date, '%Y-%m-%d %h:%i:%s')
|
||||
";
|
||||
|
||||
$params = array(
|
||||
'date' => $date,
|
||||
);
|
||||
|
||||
return $this->runQuery($query, $params);
|
||||
}
|
||||
|
||||
/********************************/
|
||||
/* PARTIE DES REQUETES CONTACTS */
|
||||
/********************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue