| Methods |
public
|
__construct(EntityManagerInterface $em)
|
#
|
public
|
getEnabledFilters(): SQLFilter[]
Gets all the enabled filters.
Gets all the enabled filters.
Returns
|
#
|
public
|
getSuspendedFilters(): SQLFilter[]
Gets all the suspended filters.
Gets all the suspended filters.
Returns
|
#
|
public
|
enable(string $name): SQLFilter
Enables a filter from the collection.
Enables a filter from the collection.
Parameters
| $name |
Name of the filter.
|
Returns
Throws
|
#
|
public
|
disable(string $name): SQLFilter
Disables a filter.
Parameters
| $name |
Name of the filter.
|
Returns
Throws
|
#
|
public
|
suspend(string $name): SQLFilter
Suspend a filter.
Parameters
| $name |
Name of the filter.
|
Returns
Throws
|
#
|
public
|
restore(string $name): SQLFilter
Restore a disabled filter from the collection.
Restore a disabled filter from the collection.
Parameters
| $name |
Name of the filter.
|
Returns
Throws
|
#
|
public
|
getFilter(string $name): SQLFilter
Gets an enabled filter from the collection.
Gets an enabled filter from the collection.
Parameters
| $name |
Name of the filter.
|
Returns
Throws
|
#
|
public
|
has(string $name): bool
Checks whether filter with given name is defined.
Checks whether filter with given name is defined.
Parameters
| $name |
Name of the filter.
|
Returns
true if the filter exists, false if not.
|
#
|
public
|
isEnabled(string $name): bool
Checks if a filter is enabled.
Checks if a filter is enabled.
Parameters
| $name |
Name of the filter.
|
Returns
True if the filter is enabled, false otherwise.
|
#
|
public
|
isSuspended(string $name): bool
Checks if a filter is suspended.
Checks if a filter is suspended.
Parameters
| $name |
Name of the filter.
|
Returns
True if the filter is suspended, false otherwise.
|
#
|
public
|
isClean(): bool
Checks if the filter collection is clean.
Checks if the filter collection is clean.
|
#
|
public
|
getHash(): string
Generates a string of currently enabled filters to use for the cache id.
Generates a string of currently enabled filters to use for the cache id.
|
#
|
public
|
setFiltersStateDirty(): void
Sets the filter state to dirty.
Sets the filter state to dirty.
|
#
|