original_string: function set_wwwroot($wwwroot) {
          global $CFG, $DB;
  
          $hostinfo = $DB->get_record('mnet_host', array('wwwroot'=>$wwwroot));
  
          if ($hostinfo != false) {
              $this->populate($hostinfo);
              return true;
          }
          return false;
      }
code: function set_wwwroot($wwwroot) {
          global $CFG, $DB;
  
          $hostinfo = $DB->get_record('mnet_host', array('wwwroot'=>$wwwroot));
  
          if ($hostinfo != false) {
              $this->populate($hostinfo);
              return true;
          }
          return false;
      }
code_tokens: function set_wwwroot ( $ wwwroot ) { global $ CFG , $ DB ; $ hostinfo = $ DB -> get_record ( 'mnet_host' , array ( 'wwwroot' => $ wwwroot ) ) ; if ( $ hostinfo != false ) { $ this -> populate ( $ hostinfo ) ; return true ; } return false ; }
docstring: 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
docstring_tokens: Load information from db about an mnet peer into this object s properties