From 46b602226996a89f63d750e8b08e568680bf9d5d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 13 Mar 2018 00:18:28 +0400 Subject: Added variables Signed-off-by: Valentin Popov --- locallib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'locallib.php') diff --git a/locallib.php b/locallib.php index 890e705..afc917c 100644 --- a/locallib.php +++ b/locallib.php @@ -75,12 +75,14 @@ function local_webhooks_cache_reset() { * Forms a list of events for the specified service. * * @param number $serviceid + * @param number $limitfrom + * @param number $limitnum * @return array */ -function local_webhooks_get_list_events_for_service($serviceid) { +function local_webhooks_get_list_events_for_service($serviceid, $limitfrom = 0, $limitnum = 0) { global $DB; - $rs = $DB->get_recordset(LOCAL_WEBHOOKS_TABLE_EVENTS, array("serviceid" => $serviceid), "id", "*", 0, 0); + $rs = $DB->get_recordset(LOCAL_WEBHOOKS_TABLE_EVENTS, array("serviceid" => $serviceid), "id", "*", $limitfrom, $limitnum); $events = array(); foreach ($rs as $record) { -- cgit v1.2.3