FileSearchQuery
Represents an SQL query to search for files.
Acts as facade to a QueryBuilder and comes with factory methods to preconfigure the query for a search demand.
Table of Contents
Methods
- __construct() : mixed
- additionalRestriction() : void
- Limit the result set of identifiers, by adding further SQL restrictions.
- createCountForSearchDemand() : FileSearchQuery
- Prepares a query based on a search demand to be used to count rows.
- createForSearchDemand() : FileSearchQuery
- Prepares a query based on a search demand to be used to fetch rows.
- execute() : Result
Methods
__construct()
public
__construct([QueryBuilder|null $queryBuilder = null ]) : mixed
Parameters
- $queryBuilder : QueryBuilder|null = null
additionalRestriction()
Limit the result set of identifiers, by adding further SQL restrictions.
public
additionalRestriction(QueryRestrictionInterface $additionalRestriction) : void
Note that no further restrictions can be added once result is initialized, by starting the iteration over the result. Can be accessed by subclasses to add further restrictions to the query.
Parameters
- $additionalRestriction : QueryRestrictionInterface
Tags
createCountForSearchDemand()
Prepares a query based on a search demand to be used to count rows.
public
static createCountForSearchDemand(FileSearchDemand $searchDemand[, QueryBuilder|null $queryBuilder = null ]) : FileSearchQuery
Parameters
- $searchDemand : FileSearchDemand
- $queryBuilder : QueryBuilder|null = null
Return values
FileSearchQuerycreateForSearchDemand()
Prepares a query based on a search demand to be used to fetch rows.
public
static createForSearchDemand(FileSearchDemand $searchDemand[, QueryBuilder|null $queryBuilder = null ]) : FileSearchQuery
Parameters
- $searchDemand : FileSearchDemand
- $queryBuilder : QueryBuilder|null = null
Return values
FileSearchQueryexecute()
public
execute() : Result