original_string: protected function support_grades() {
          foreach ($this->get_module_names() as $modname => $modfullname) {
              if (!plugin_supports('mod', $modname, FEATURE_GRADE_HAS_GRADE, false)) {
                  return false;
              }
          }
          return true;
      }
code: protected function support_grades() {
          foreach ($this->get_module_names() as $modname => $modfullname) {
              if (!plugin_supports('mod', $modname, FEATURE_GRADE_HAS_GRADE, false)) {
                  return false;
              }
          }
          return true;
      }
code_tokens: protected function support_grades ( ) { foreach ( $ this -> get_module_names ( ) as $ modname => $ modfullname ) { if ( ! plugin_supports ( 'mod' , $ modname , FEATURE_GRADE_HAS_GRADE , false ) ) { return false ; } } return true ; }
docstring: Returns true if all selected modules support grading.
  
  @return bool
docstring_tokens: Returns true if all selected modules support grading .