original_string: public static function get_filetypes_browser_data($onlytypes, $allowall, $current) {
  
          $params = self::validate_parameters(self::get_filetypes_browser_data_parameters(),
              compact('onlytypes', 'allowall', 'current'));
  
          $util = new filetypes_util();
  
          return ['groups' => $util->data_for_browser($params['onlytypes'], $params['allowall'], $params['current'])];
      }
code: public static function get_filetypes_browser_data($onlytypes, $allowall, $current) {
  
          $params = self::validate_parameters(self::get_filetypes_browser_data_parameters(),
              compact('onlytypes', 'allowall', 'current'));
  
          $util = new filetypes_util();
  
          return ['groups' => $util->data_for_browser($params['onlytypes'], $params['allowall'], $params['current'])];
      }
code_tokens: public static function get_filetypes_browser_data ( $ onlytypes , $ allowall , $ current ) { $ params = self :: validate_parameters ( self :: get_filetypes_browser_data_parameters ( ) , compact ( 'onlytypes' , 'allowall' , 'current' ) ) ; $ util = new filetypes_util ( ) ; return [ 'groups' => $ util -> data_for_browser ( $ params [ 'onlytypes' ] , $ params [ 'allowall' ] , $ params [ 'current' ] ) ] ; }
docstring: Implements the get_filetypes_browser_data external function.
  
  @param string $onlytypes Allow selection from these file types only; for example 'web_image'.
  @param bool $allowall Allow to select 'All file types'. Does not apply if onlytypes is set.
  @param string $current Current values that should be selected.
  @return object
docstring_tokens: Implements the get_filetypes_browser_data external function .