original_string: function populate($hostinfo) {
          global $DB;
          $this->id                   = $hostinfo->id;
          $this->wwwroot              = $hostinfo->wwwroot;
          $this->ip_address           = $hostinfo->ip_address;
          $this->name                 = $hostinfo->name;
          $this->deleted              = $hostinfo->deleted;
          $this->public_key           = $hostinfo->public_key;
          $this->public_key_expires   = $hostinfo->public_key_expires;
          $this->last_connect_time    = $hostinfo->last_connect_time;
          $this->last_log_id          = $hostinfo->last_log_id;
          $this->force_theme          = $hostinfo->force_theme;
          $this->theme                = $hostinfo->theme;
          $this->applicationid        = $hostinfo->applicationid;
          $this->sslverification      = $hostinfo->sslverification;
          $this->application = $DB->get_record('mnet_application', array('id'=>$this->applicationid));
          $this->bootstrapped = true;
      }
code: function populate($hostinfo) {
          global $DB;
          $this->id                   = $hostinfo->id;
          $this->wwwroot              = $hostinfo->wwwroot;
          $this->ip_address           = $hostinfo->ip_address;
          $this->name                 = $hostinfo->name;
          $this->deleted              = $hostinfo->deleted;
          $this->public_key           = $hostinfo->public_key;
          $this->public_key_expires   = $hostinfo->public_key_expires;
          $this->last_connect_time    = $hostinfo->last_connect_time;
          $this->last_log_id          = $hostinfo->last_log_id;
          $this->force_theme          = $hostinfo->force_theme;
          $this->theme                = $hostinfo->theme;
          $this->applicationid        = $hostinfo->applicationid;
          $this->sslverification      = $hostinfo->sslverification;
          $this->application = $DB->get_record('mnet_application', array('id'=>$this->applicationid));
          $this->bootstrapped = true;
      }
code_tokens: function populate ( $ hostinfo ) { global $ DB ; $ this -> id = $ hostinfo -> id ; $ this -> wwwroot = $ hostinfo -> wwwroot ; $ this -> ip_address = $ hostinfo -> ip_address ; $ this -> name = $ hostinfo -> name ; $ this -> deleted = $ hostinfo -> deleted ; $ this -> public_key = $ hostinfo -> public_key ; $ this -> public_key_expires = $ hostinfo -> public_key_expires ; $ this -> last_connect_time = $ hostinfo -> last_connect_time ; $ this -> last_log_id = $ hostinfo -> last_log_id ; $ this -> force_theme = $ hostinfo -> force_theme ; $ this -> theme = $ hostinfo -> theme ; $ this -> applicationid = $ hostinfo -> applicationid ; $ this -> sslverification = $ hostinfo -> sslverification ; $ this -> application = $ DB -> get_record ( 'mnet_application' , array ( 'id' => $ this -> applicationid ) ) ; $ this -> bootstrapped = true ; }
docstring: Several methods can be used to get an 'mnet_host' record. They all then
  send it to this private method to populate this object's attributes.
  
  @param   object  $hostinfo   A database record from the mnet_host table
  @return  void
docstring_tokens: Several methods can be used to get an mnet_host record . They all then send it to this private method to populate this object s attributes .