mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
Update methods names
This commit is contained in:
parent
37b2a93323
commit
1865072b73
26 changed files with 88 additions and 101 deletions
|
@ -24,7 +24,7 @@ namespace models;
|
|||
*
|
||||
* @return array : L'entrée
|
||||
*/
|
||||
public function get_by_id($id)
|
||||
public function get($id)
|
||||
{
|
||||
$receiveds = $this->_select('received', ['id' => $id]);
|
||||
|
||||
|
@ -37,7 +37,7 @@ namespace models;
|
|||
* @param int $limit : Nombre de résultat maximum à retourner
|
||||
* @param int $offset : Nombre de résultat à ingnorer
|
||||
*/
|
||||
public function get_list($limit, $offset)
|
||||
public function list($limit, $offset)
|
||||
{
|
||||
return $this->_select('received', [], '', false, $limit, $offset);
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ namespace models;
|
|||
*
|
||||
* @return array : La liste des entrées
|
||||
*/
|
||||
public function get_by_ids($ids)
|
||||
public function gets($ids)
|
||||
{
|
||||
$query = '
|
||||
SELECT * FROM received
|
||||
|
@ -95,7 +95,7 @@ namespace models;
|
|||
*
|
||||
* @return int : Le nombre de lignes supprimées
|
||||
*/
|
||||
public function delete_by_id($id)
|
||||
public function delete($id)
|
||||
{
|
||||
$query = '
|
||||
DELETE FROM received
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue