original_string: public static function get_all_filters() {
          $filters = \core_component::get_component_classes_in_namespace('tool_usertours', 'local\filter');
          $filters = array_keys($filters);
  
          $filters = array_filter($filters, function($filterclass) {
              $rc = new \ReflectionClass($filterclass);
              return $rc->isInstantiable();
          });
  
          return $filters;
      }
code: public static function get_all_filters() {
          $filters = \core_component::get_component_classes_in_namespace('tool_usertours', 'local\filter');
          $filters = array_keys($filters);
  
          $filters = array_filter($filters, function($filterclass) {
              $rc = new \ReflectionClass($filterclass);
              return $rc->isInstantiable();
          });
  
          return $filters;
      }
code_tokens: public static function get_all_filters ( ) { $ filters = \ core_component :: get_component_classes_in_namespace ( 'tool_usertours' , 'local\filter' ) ; $ filters = array_keys ( $ filters ) ; $ filters = array_filter ( $ filters , function ( $ filterclass ) { $ rc = new \ ReflectionClass ( $ filterclass ) ; return $ rc -> isInstantiable ( ) ; } ) ; return $ filters ; }
docstring: Get a list of all possible filters.
  
  @return  array
docstring_tokens: Get a list of all possible filters .