just another orm...
View the Project on GitHub tflori/orm
» API Reference » ORM\EntityFetcher\AppliesFilters
public function filter(
string|\ORM\EntityFetcher\FilterInterface|callable $filter,
): $this
Returns | $this |
Parameter | Type | Description | ||
---|---|---|---|---|
$filter |
**string | ORM\EntityFetcher\FilterInterface | callable** |
ORM\EntityFetcher\AppliesFilters::filter
public static function getGlobalFilters(string $class): array
A filter can be registered for the super class too.
Static | This method is static. | |
Returns | array |
Parameter | Type | Description |
---|---|---|
$class |
string |
ORM\EntityFetcher\AppliesFilters::getGlobalFilters
public static function registerGlobalFilter(
mixed $class,
string|\ORM\EntityFetcher\FilterInterface|callable $filter,
): mixed
A registered filter will be applied in all entity fetchers for the class if not excluded by
$fetcher->withoutFilter(Filter::class)
.
Static | This method is static. | |
Returns | mixed |
Parameter | Type | Description | ||
---|---|---|---|---|
$class |
mixed | |||
$filter |
**string | ORM\EntityFetcher\FilterInterface | callable** |
ORM\EntityFetcher\AppliesFilters::registerGlobalFilter
public function withoutFilter(string $filterClass): $this
Returns | $this |
Parameter | Type | Description |
---|---|---|
$filterClass |
string |
ORM\EntityFetcher\AppliesFilters::withoutFilter