diff options
author | Valentin Popov <info@valentineus.link> | 2018-03-20 03:23:13 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-03-20 03:23:13 +0300 |
commit | 092d0436e81848e7629f0cb20fbd16af6adde866 (patch) | |
tree | ec35259b7ce7b3a33cbd01a9fda1e212d87eb3c8 /lib.php | |
parent | 27e7f48f36d686edc7530d8d15069e4cbcc88682 (diff) | |
download | local_webhooks-092d0436e81848e7629f0cb20fbd16af6adde866.tar.xz local_webhooks-092d0436e81848e7629f0cb20fbd16af6adde866.zip |
Comments have been added
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |