original_string: public function perpage_select() {
          global $PAGE, $OUTPUT;
  
          $options = array_combine(self::$validperpage, self::$validperpage);
  
          $url = new moodle_url($PAGE->url);
          $url->remove_params(['page', 'perpage']);
  
          $out = '';
          $select = new \single_select($url, 'perpage', $options, $this->perpage, null, 'perpagechanger');
          $select->label = get_string('itemsperpage', 'gradereport_singleview');
          $out .= $OUTPUT->render($select);
  
          return $out;
      }
code: public function perpage_select() {
          global $PAGE, $OUTPUT;
  
          $options = array_combine(self::$validperpage, self::$validperpage);
  
          $url = new moodle_url($PAGE->url);
          $url->remove_params(['page', 'perpage']);
  
          $out = '';
          $select = new \single_select($url, 'perpage', $options, $this->perpage, null, 'perpagechanger');
          $select->label = get_string('itemsperpage', 'gradereport_singleview');
          $out .= $OUTPUT->render($select);
  
          return $out;
      }
code_tokens: public function perpage_select ( ) { global $ PAGE , $ OUTPUT ; $ options = array_combine ( self :: $ validperpage , self :: $ validperpage ) ; $ url = new moodle_url ( $ PAGE -> url ) ; $ url -> remove_params ( [ 'page' , 'perpage' ] ) ; $ out = '' ; $ select = new \ single_select ( $ url , 'perpage' , $ options , $ this -> perpage , null , 'perpagechanger' ) ; $ select -> label = get_string ( 'itemsperpage' , 'gradereport_singleview' ) ; $ out .= $ OUTPUT -> render ( $ select ) ; return $ out ; }
docstring: Allow selection of number of items to display per page.
  @return string
docstring_tokens: Allow selection of number of items to display per page .