mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Rename a few classes, fix bugs, fix syntax
This commit is contained in:
parent
7cb963b8cf
commit
bda1c7ddfd
18 changed files with 106 additions and 37 deletions
|
@ -58,18 +58,17 @@ namespace models;
|
|||
|
||||
return isset($contacts[0]) ? $contacts[0] : false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get contacts of a particular group
|
||||
* Get contacts of a particular group.
|
||||
*
|
||||
* @param int $id_group : Id of the group we want contacts for
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get_by_group($id_group)
|
||||
{
|
||||
$contacts = $this->_select('contact', ['id_group' => $id_group]);
|
||||
return $contacts;
|
||||
return $this->_select('contact', ['id_group' => $id_group]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,7 +14,6 @@ namespace models;
|
|||
|
||||
class DataBase extends \descartes\Model
|
||||
{
|
||||
|
||||
//
|
||||
// PARTIE DES REQUETES SCHEDULEDS_NUMBERS
|
||||
//
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of PHP CS Fixer.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
namespace models;
|
||||
|
||||
|
|
|
@ -64,16 +64,17 @@ namespace models;
|
|||
}
|
||||
|
||||
/**
|
||||
* Get scheduleds message not in progress and before a date
|
||||
* 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)
|
||||
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.
|
||||
*
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace models;
|
|||
/**
|
||||
* Cette classe gère les accès bdd pour les sendedes.
|
||||
*/
|
||||
class Sended extends \descartes\Model
|
||||
class Sent extends \descartes\Model
|
||||
{
|
||||
/**
|
||||
* Retourne une entrée par son id.
|
Loading…
Add table
Add a link
Reference in a new issue