original_string: public function load_choices() {
          global $CFG, $DB;
          if (during_initial_install()) {
              return false;
          }
          if (is_array($this->choices)) {
              return true;
          }
          if ($roles = get_all_roles()) {
              $this->choices = role_fix_names($roles, null, ROLENAME_ORIGINAL, true);
              return true;
          } else {
              return false;
          }
      }
code: public function load_choices() {
          global $CFG, $DB;
          if (during_initial_install()) {
              return false;
          }
          if (is_array($this->choices)) {
              return true;
          }
          if ($roles = get_all_roles()) {
              $this->choices = role_fix_names($roles, null, ROLENAME_ORIGINAL, true);
              return true;
          } else {
              return false;
          }
      }
code_tokens: public function load_choices ( ) { global $ CFG , $ DB ; if ( during_initial_install ( ) ) { return false ; } if ( is_array ( $ this -> choices ) ) { return true ; } if ( $ roles = get_all_roles ( ) ) { $ this -> choices = role_fix_names ( $ roles , null , ROLENAME_ORIGINAL , true ) ; return true ; } else { return false ; } }
docstring: Load roles as choices
  
  @return bool true=>success, false=>error
docstring_tokens: Load roles as choices