Product SiteDocumentation Site

5.4. Bug Filter Events

5.4.1. Custom Filters and Columns

EVENT_FILTER_FIELDS (Default)

This event allows a plugin to register custom filter objects (based on the MantisFilter class) that will allow the user to search for issues based on custom criteria or datasets. The plugin can return either a class name (which will be instantiated at runtime) or an already instantiated object. The plugin must ensure that the filter class has been defined before returning the class name for this event.
Return Value
  • <Array>: Array of class names or objects for custom filters

EVENT_FILTER_COLUMNS (Default)

This event allows a plugin to register custom column objects (based on the MantisColumn class) that will allow the user to view data for issues based on custom datasets. The plugin can return either a class name (which will be instantiated at runtime) or an already instantiated object. The plugin must ensure that the column class has been defined before returning the class name for this event.
Return Value
  • <Array>: Array of class names or objects for custom columns