original_string: public function has_hidden_grades($groupsql="", array $params=null, $groupwheresql="") {
          global $DB;
          $params = (array)$params;
          $params['itemid'] = $this->id;
  
          return $DB->get_field_sql("SELECT COUNT(*) FROM {grade_grades} g LEFT JOIN "
                              ."{user} u ON g.userid = u.id $groupsql WHERE itemid = :itemid AND hidden = 1 $groupwheresql", $params);
      }
code: public function has_hidden_grades($groupsql="", array $params=null, $groupwheresql="") {
          global $DB;
          $params = (array)$params;
          $params['itemid'] = $this->id;
  
          return $DB->get_field_sql("SELECT COUNT(*) FROM {grade_grades} g LEFT JOIN "
                              ."{user} u ON g.userid = u.id $groupsql WHERE itemid = :itemid AND hidden = 1 $groupwheresql", $params);
      }
code_tokens: public function has_hidden_grades ( $ groupsql = "" , array $ params = null , $ groupwheresql = "" ) { global $ DB ; $ params = ( array ) $ params ; $ params [ 'itemid' ] = $ this -> id ; return $ DB -> get_field_sql ( "SELECT COUNT(*) FROM {grade_grades} g LEFT JOIN " . "{user} u ON g.userid = u.id $groupsql WHERE itemid = :itemid AND hidden = 1 $groupwheresql" , $ params ) ; }
docstring: Returns the number of grades that are hidden
  
  @param string $groupsql SQL to limit the query by group
  @param array $params SQL params for $groupsql
  @param string $groupwheresql Where conditions for $groupsql
  @return int The number of hidden grades
docstring_tokens: Returns the number of grades that are hidden