QuerySearchHelper¶
-
class
OC\Files\Cache\
QuerySearchHelper
¶ - Tools for transforming search queries into database queries
Source: lib/private/Files/Cache/QuerySearchHelper.php#39
Constants¶
-
TAG_FAVORITE = _$!<Favorite>!$_
Source: lib/private/Files/Cache/QuerySearchHelper.php#58
Properties¶
-
protected property
OC\Files\Cache\QuerySearchHelper::$
searchOperatorMap
¶ Source: lib/private/Files/Cache/QuerySearchHelper.php#40
-
protected property
OC\Files\Cache\QuerySearchHelper::$
searchOperatorNegativeMap
¶ Source: lib/private/Files/Cache/QuerySearchHelper.php#49
Methods¶
-
public
OC\Files\Cache\QuerySearchHelper::
__construct
($mimetypeLoader)¶ - QuerySearchUtil constructor.
Source: Parameters: - $mimetypeLoader (
OCP\Files\IMimeTypeLoader
)
- $mimetypeLoader (
-
public
OC\Files\Cache\QuerySearchHelper::
shouldJoinTags
($operator)¶ - Whether or not the tag tables should be joined to complete the search
Source: Parameters: - $operator (
OCP\Files\Search\ISearchOperator
)
Returns: bool
- $operator (
-
public
OC\Files\Cache\QuerySearchHelper::
searchOperatorArrayToDBExprArray
($builder, $operators)¶ Source: Parameters: - $builder (
OCP\DB\QueryBuilder\IQueryBuilder
)
- $builder (
-
public
OC\Files\Cache\QuerySearchHelper::
searchOperatorToDBExpr
($builder, $operator)¶ Source: lib/private/Files/Cache/QuerySearchHelper.php#99
-
public
OC\Files\Cache\QuerySearchHelper::
addSearchOrdersToQuery
($query, $orders)¶ Source: Parameters: - $query (
OCP\DB\QueryBuilder\IQueryBuilder
) - $orders (
OCP\Files\Search\ISearchOrder[]
)
- $query (