original_string: public static function get_users($context, $search = '', $page = 0, $perpage = 25) {
          global $DB;
  
          list($sql, $params) = self::get_users_sql_and_params($context, $search);
          $limitfrom = $page * $perpage;
          $limitto = $limitfrom + $perpage;
          $users = $DB->get_records_sql($sql, $params, $limitfrom, $limitto);
          return $users;
      }
code: public static function get_users($context, $search = '', $page = 0, $perpage = 25) {
          global $DB;
  
          list($sql, $params) = self::get_users_sql_and_params($context, $search);
          $limitfrom = $page * $perpage;
          $limitto = $limitfrom + $perpage;
          $users = $DB->get_records_sql($sql, $params, $limitfrom, $limitto);
          return $users;
      }
code_tokens: public static function get_users ( $ context , $ search = '' , $ page = 0 , $ perpage = 25 ) { global $ DB ; list ( $ sql , $ params ) = self :: get_users_sql_and_params ( $ context , $ search ) ; $ limitfrom = $ page * $ perpage ; $ limitto = $ limitfrom + $ perpage ; $ users = $ DB -> get_records_sql ( $ sql , $ params , $ limitfrom , $ limitto ) ; return $ users ; }
docstring: Retrieve a list of users.
  
  We're interested in anyone that had a grade history in this course. This api returns a list of such users based on various
  criteria passed.
  
  @param \context $context Context of the page where the results would be shown.
  @param string $search the text to search for (empty string = find all).
  @param int $page page number, defaults to 0.
  @param int $perpage Number of entries to display per page, defaults to 0.
  
  @return array list of users.
docstring_tokens: Retrieve a list of users .