MIDDAG for Moodle

global_scope_interface

Global Scope Interface.

Allows extensions to register automatic filters that are applied to all queries made through the QueryBuilder.

Table of Contents

Methods

apply()  : query_builder_interface
Apply the scope to the given QueryBuilder.
should_apply()  : bool
Check if this scope should be applied to the current context.

Methods

apply()

Apply the scope to the given QueryBuilder.

public apply(query_builder_interface $builder) : query_builder_interface
Parameters
$builder : query_builder_interface
Return values
query_builder_interface

should_apply()

Check if this scope should be applied to the current context.

public should_apply() : bool
Return values
bool

        
On this page

Search results