aboutsummaryrefslogtreecommitdiff
path: root/lib.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-03-20 03:23:13 +0300
committerValentin Popov <info@valentineus.link>2018-03-20 03:23:13 +0300
commit092d0436e81848e7629f0cb20fbd16af6adde866 (patch)
treeec35259b7ce7b3a33cbd01a9fda1e212d87eb3c8 /lib.php
parent27e7f48f36d686edc7530d8d15069e4cbcc88682 (diff)
downloadlocal_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.php7
1 files 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;