interface global_scope_interface

Global Scope Interface.

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

Methods

apply(query_builder_interface $builder)

Apply the scope to the given QueryBuilder.

bool
should_apply()

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

Details

at line 35
query_builder_interface apply(query_builder_interface $builder)

Apply the scope to the given QueryBuilder.

Parameters

query_builder_interface $builder

Return Value

query_builder_interface

at line 42
bool should_apply()

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

Return Value

bool