]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16285 add comments to mnet/peer.php
authorpeterbulmer <peterbulmer>
Sun, 31 Aug 2008 23:54:50 +0000 (23:54 +0000)
committerpeterbulmer <peterbulmer>
Sun, 31 Aug 2008 23:54:50 +0000 (23:54 +0000)
mnet/peer.php

index e3fdc0a2cc4d837cd6a14da7e993d2e873b5c528..62b968a9e18102785c5410edb9fbb0fb4160265b 100644 (file)
@@ -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;