From ea87ed52a7e97bed21a3f1fe6418074a726a1c80 Mon Sep 17 00:00:00 2001 From: peterbulmer Date: Sun, 31 Aug 2008 23:54:50 +0000 Subject: [PATCH] MDL-16285 add comments to mnet/peer.php --- mnet/peer.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mnet/peer.php b/mnet/peer.php index e3fdc0a2cc..62b968a9e1 100644 --- a/mnet/peer.php +++ b/mnet/peer.php @@ -28,6 +28,16 @@ class mnet_peer { return true; } + /* + * Fetch information about a peer identified by wwwroot + * If information does not preexist in db, collect it together based on + * supplied information + * + * @param string $wwwroot - address of peer whose details we want + * @param string $pubkey - to use if we add a record to db for new peer + * @param int $application - table id - what kind of peer are we talking to + * @return bool - indication of success or failure + */ function bootstrap($wwwroot, $pubkey = null, $application) { global $DB; @@ -220,6 +230,12 @@ class mnet_peer { return false; } + /** + * Load information from db about an mnet peer into this object's properties + * + * @param string $wwwroot - address of peer whose details we want to load + * @return bool - indication of success or failure + */ function set_wwwroot($wwwroot) { global $CFG, $DB; -- 2.39.5