Added variables
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
2bd5e80b10
commit
46b6022269
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user