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()  : self
Prepares a query based on a search demand to be used to count rows.
createForSearchDemand()  : self
Prepares a query based on a search demand to be used to fetch rows.
execute()  : Result

Methods

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
throws
RuntimeException

createCountForSearchDemand()

Prepares a query based on a search demand to be used to count rows.

public static createCountForSearchDemand(FileSearchDemand $searchDemand[, QueryBuilder|null $queryBuilder = null ]) : self
Parameters
$searchDemand : FileSearchDemand
$queryBuilder : QueryBuilder|null = null
Return values
self

execute()

public execute() : Result
Return values
Result

        
On this page

Search results