mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 06:46:25 +02:00
Update methods names
This commit is contained in:
parent
37b2a93323
commit
1865072b73
26 changed files with 88 additions and 101 deletions
|
@ -44,7 +44,7 @@ namespace controllers\publics;
|
|||
public function list($page = 0)
|
||||
{
|
||||
$page = (int) $page;
|
||||
$contacts = $this->internal_contact->get_list(25, $page);
|
||||
$contacts = $this->internal_contact->list(25, $page);
|
||||
$this->render('contact/list', ['contacts' => $contacts]);
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ namespace controllers\publics;
|
|||
global $db;
|
||||
$ids = $_GET['ids'] ?? [];
|
||||
|
||||
$contacts = $this->internal_contact->get_by_ids($ids);
|
||||
$contacts = $this->internal_contact->gets($ids);
|
||||
|
||||
$this->render('contact/edit', [
|
||||
'contacts' => $contacts,
|
||||
|
@ -189,6 +189,6 @@ namespace controllers\publics;
|
|||
public function json_list()
|
||||
{
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($this->internal_contact->get_list());
|
||||
echo json_encode($this->internal_contact->list());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue