Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

reportbuilder/Advanced Filter Options

From MoodleDocs


Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.


Back to Index

Advanced Filter Options

When defining a report's default filters, you can set the 'advanced' flag to 1.

$this->defaultfilters = array(
    array(
        'type' => 'course',
        'value' => 'fullname',
        'advanced' => 1
    )
);

This will include the filter but hide it by default, only revealing it when the user presses the "Show advanced" button. This is useful if you want to make lots of filters available but only show the most commonly used ones initially.

Report administrators can set the advanced state of filters via a checkbox on the Filters tab.