original_string: public static function get_mod_name($type) {
          static $types;
  
          if (!is_array($types)) {
              global $DB;
              $types = $DB->get_records('modules');
          }
  
          return $types[$type]->name;
      }
code: public static function get_mod_name($type) {
          static $types;
  
          if (!is_array($types)) {
              global $DB;
              $types = $DB->get_records('modules');
          }
  
          return $types[$type]->name;
      }
code_tokens: public static function get_mod_name ( $ type ) { static $ types ; if ( ! is_array ( $ types ) ) { global $ DB ; $ types = $ DB -> get_records ( 'modules' ) ; } return $ types [ $ type ] -> name ; }
docstring: Get module instance module type
  
  @param int $type Module type id
  @return string
docstring_tokens: Get module instance module type