$this->filteroptions = array( new rb_filter_option( 'course', 'fullname', 'Course Name', 'text' ) );
Every filter option object must include four required arguments:
- Column type: Must match the type of an existing column option
- Column value: Must match the value of an existing column option - the filter will act on the column option matched by the type and value
- Filter name: A string which describes the filter - this appears in the pulldown menu when choosing filters, and also next to the filter in the report
- Filter type: Defines the behaviour of the filter e.g. text field, pulldown, checkbox etc.
The filter types are modular, allowing new filter types to be written. The available filter types are found in local/reportbuilder/filters/.