Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

reportbuilder/Advanced Filter Options

From MoodleDocs
Revision as of 14:06, 24 June 2022 by Andrew Nicols (talk | contribs) (Note about plan not to migrate this page to the new developer resources. See template for more info.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.