From 092d0436e81848e7629f0cb20fbd16af6adde866 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 20 Mar 2018 04:23:13 +0400 Subject: Comments have been added Signed-off-by: Valentin Popov --- lib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib.php b/lib.php index 9f313f5..8fd4807 100644 --- a/lib.php +++ b/lib.php @@ -89,13 +89,16 @@ function local_webhooks_search_record($eventname, $limitfrom = 0, $limitnum = 0) /** * Get the record from the database. * - * @param number $serviceid - * @return object + * @param number $serviceid Service identifier + * @return object Service data */ function local_webhooks_get_record($serviceid) { global $DB; + /* Loads service data */ $record = $DB->get_record(LOCAL_WEBHOOKS_TABLE_SERVICES, array("id" => $serviceid), "*", IGNORE_MISSING); + + /* Loads service events */ $record->events = local_webhooks_get_list_events_for_service($serviceid); return $record; -- cgit v1.2.3