Added a new function 'local_webhooks_get_total_count'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
0e94634c49
commit
0a07c2ab22
10
lib.php
10
lib.php
@ -119,6 +119,16 @@ function local_webhooks_get_list_events() {
|
||||
return report_eventlist_list_generator::get_all_events_list(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total number of records.
|
||||
*
|
||||
* @return number
|
||||
*/
|
||||
function local_webhooks_get_total_count() {
|
||||
global $DB;
|
||||
return $DB->count_records("local_webhooks_service", array());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an entry in the database.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user