mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46:27 +02:00
Improve dashboard rendering speed by using ajax for graphs. Improve perfs by using more index on query. Add function to find invalid numbers and export as csv
This commit is contained in:
parent
52c849e043
commit
2be8242d5e
16 changed files with 494 additions and 56 deletions
|
@ -376,6 +376,22 @@ use Exception;
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list of invalid phone number we've sent message to
|
||||
*
|
||||
* @param int $id_user : user id
|
||||
* @param int $volume : Minimum number of sms sent to the number
|
||||
* @param float $percent_failed : Minimum ratio of failed message
|
||||
* @param float $percent_unknown : Minimum ratio of unknown message
|
||||
* @param int $limit : Limit of results
|
||||
* @param int $page : Page of results (offset = page * limit)
|
||||
*
|
||||
*/
|
||||
public function get_invalid_numbers (int $id_user, int $volume, float $percent_failed, float $percent_unknown, int $limit, int $page)
|
||||
{
|
||||
return $this->get_model()->get_invalid_numbers($id_user, $volume, $percent_failed, $percent_unknown, $limit, $page);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the model for the Controller.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue