original_string: public static function load_settings($quizid) {
          global $DB;
  
          $rules = self::get_rule_classes();
          list($sql, $params) = self::get_load_sql($quizid, $rules, '');
  
          if ($sql) {
              $data = (array) $DB->get_record_sql($sql, $params);
          } else {
              $data = array();
          }
  
          foreach ($rules as $rule) {
              $data += $rule::get_extra_settings($quizid);
          }
  
          return $data;
      }
code: public static function load_settings($quizid) {
          global $DB;
  
          $rules = self::get_rule_classes();
          list($sql, $params) = self::get_load_sql($quizid, $rules, '');
  
          if ($sql) {
              $data = (array) $DB->get_record_sql($sql, $params);
          } else {
              $data = array();
          }
  
          foreach ($rules as $rule) {
              $data += $rule::get_extra_settings($quizid);
          }
  
          return $data;
      }
code_tokens: public static function load_settings ( $ quizid ) { global $ DB ; $ rules = self :: get_rule_classes ( ) ; list ( $ sql , $ params ) = self :: get_load_sql ( $ quizid , $ rules , '' ) ; if ( $ sql ) { $ data = ( array ) $ DB -> get_record_sql ( $ sql , $ params ) ; } else { $ data = array ( ) ; } foreach ( $ rules as $ rule ) { $ data += $ rule :: get_extra_settings ( $ quizid ) ; } return $ data ; }
docstring: Load any settings required by the access rules. We try to do this with
  a single DB query.
  
  Note that the standard plugins do not use this mechanism, becuase all their
  settings are stored in the quiz table.
  
  @param int $quizid the quiz id.
  @return array setting value name => value. The value names should all
  start with the name of the corresponding plugin to avoid collisions.
docstring_tokens: Load any settings required by the access rules . We try to do this with a single DB query .