original_string: protected static function get_graded_users(int $userid, \assign $assign) {
          $params = ['grader' => $userid, 'assignid' => $assign->get_instance()->id];
  
          $sql = "SELECT DISTINCT userid AS id
                    FROM {assign_grades}
                   WHERE grader = :grader AND assignment = :assignid";
  
          $useridlist = new useridlist($userid, $assign->get_instance()->id);
          $useridlist->add_from_sql($sql, $params);
  
          // Call sub-plugins to see if they have information not already collected.
          manager::plugintype_class_callback('assignsubmission', self::ASSIGNSUBMISSION_INTERFACE, 'get_student_user_ids',
                  [$useridlist]);
          manager::plugintype_class_callback('assignfeedback', self::ASSIGNFEEDBACK_INTERFACE, 'get_student_user_ids', [$useridlist]);
  
          $userids = $useridlist->get_userids();
          return ($userids) ? $userids : false;
      }
code: protected static function get_graded_users(int $userid, \assign $assign) {
          $params = ['grader' => $userid, 'assignid' => $assign->get_instance()->id];
  
          $sql = "SELECT DISTINCT userid AS id
                    FROM {assign_grades}
                   WHERE grader = :grader AND assignment = :assignid";
  
          $useridlist = new useridlist($userid, $assign->get_instance()->id);
          $useridlist->add_from_sql($sql, $params);
  
          // Call sub-plugins to see if they have information not already collected.
          manager::plugintype_class_callback('assignsubmission', self::ASSIGNSUBMISSION_INTERFACE, 'get_student_user_ids',
                  [$useridlist]);
          manager::plugintype_class_callback('assignfeedback', self::ASSIGNFEEDBACK_INTERFACE, 'get_student_user_ids', [$useridlist]);
  
          $userids = $useridlist->get_userids();
          return ($userids) ? $userids : false;
      }
code_tokens: protected static function get_graded_users ( int $ userid , \ assign $ assign ) { $ params = [ 'grader' => $ userid , 'assignid' => $ assign -> get_instance ( ) -> id ] ; $ sql = "SELECT DISTINCT userid AS id
                    FROM {assign_grades}
                   WHERE grader = :grader AND assignment = :assignid" ; $ useridlist = new useridlist ( $ userid , $ assign -> get_instance ( ) -> id ) ; $ useridlist -> add_from_sql ( $ sql , $ params ) ; // Call sub-plugins to see if they have information not already collected. manager :: plugintype_class_callback ( 'assignsubmission' , self :: ASSIGNSUBMISSION_INTERFACE , 'get_student_user_ids' , [ $ useridlist ] ) ; manager :: plugintype_class_callback ( 'assignfeedback' , self :: ASSIGNFEEDBACK_INTERFACE , 'get_student_user_ids' , [ $ useridlist ] ) ; $ userids = $ useridlist -> get_userids ( ) ; return ( $ userids ) ? $ userids : false ; }
docstring: Find out if this user has graded any users.
  
  @param  int $userid The user ID (potential teacher).
  @param  assign $assign The assignment object.
  @return array If successful an array of objects with userids that this user graded, otherwise false.
docstring_tokens: Find out if this user has graded any users .