mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46: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)
|
||||
{
|
||||
$events = $this->_select('event', ['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('event', [], '', false, $limit, $offset);
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace models;
|
|||
*
|
||||
* @return array : La liste des entrées
|
||||
*/
|
||||
public function get_by_ids($ids)
|
||||
public function gets($ids)
|
||||
{
|
||||
$query = '
|
||||
SELECT * FROM event
|
||||
|
@ -83,7 +83,7 @@ namespace models;
|
|||
*
|
||||
* @return int : Le nombre de lignes supprimées
|
||||
*/
|
||||
public function delete_by_id($id)
|
||||
public function delete($id)
|
||||
{
|
||||
$query = '
|
||||
DELETE FROM event
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue