‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderHashesRestriction Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderHashesRestriction:
TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionInterface

Public Member Functions

 __construct (array $folderHashes)
 
 buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 

Private Attributes

array $folderHashes
 

Detailed Description

Limits search result to files with given folder hashes

Definition at line 29 of file FolderHashesRestriction.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderHashesRestriction::__construct ( array  $folderHashes)

Member Function Documentation

◆ buildExpression()

TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderHashesRestriction::buildExpression ( array  $queriedTables,
ExpressionBuilder  $expressionBuilder 
)

Main method to build expressions for given tables

Parameters
array$queriedTables‪Array of tables, where array key is table alias and value is a table name
ExpressionBuilder$expressionBuilder‪Expression builder instance to add restrictions with
Returns
‪CompositeExpression The result of query builder expression(s)

Implements TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionInterface.

Definition at line 40 of file FolderHashesRestriction.php.

References TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder\in(), and TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder\or().

Member Data Documentation

◆ $folderHashes

array TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderHashesRestriction::$folderHashes
private