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

Public Member Functions

 __construct (string $folderIdentifier)
 
 buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 

Private Attributes

string $folderIdentifier
 

Detailed Description

Assumes identifiers carrying hierarchical information and filters files with identifiers starting with given identifier.

Definition at line 30 of file FolderIdentifierRestriction.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderIdentifierRestriction::__construct ( string  $folderIdentifier)

Member Function Documentation

◆ buildExpression()

TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderIdentifierRestriction::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 41 of file FolderIdentifierRestriction.php.

References TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderIdentifierRestriction\$folderIdentifier, TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder\like(), and TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder\or().

Member Data Documentation

◆ $folderIdentifier

string TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderIdentifierRestriction::$folderIdentifier
private