FolderMountsRestriction

class \TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderMountsRestriction

Extends
AbstractRestrictionContainer

Restricts the result to available file mounts.

No restriction is added if the user is admin.

Table of Contents

Properties

$enforcedRestrictions  : QueryRestrictionInterface[]
$restrictions  : QueryRestrictionInterface[]

Methods

__construct()  : mixed
add()  : QueryRestrictionContainerInterface
Add a new restriction instance to this collection
buildExpression()  : CompositeExpression
Same as parent method, but using OR composite, as files in either mounted folder should be found.
removeAll()  : QueryRestrictionContainerInterface
Removes all restrictions stored within this container
removeByType()  : QueryRestrictionContainerInterface
Remove restriction of a given type
createRestriction()  : QueryRestrictionInterface
Factory method for restrictions.

Properties

Methods

buildExpression()

Same as parent method, but using OR composite, as files in either mounted folder should be found.

public buildExpression(array $queriedTables, ExpressionBuilder $expressionBuilder) : CompositeExpression

Parameters

$queriedTables : array

Array of tables, where array key is table alias and value is a table name

$expressionBuilder : ExpressionBuilder

Expression builder instance to add restrictions with

Return values

CompositeExpression —

The result of query builder expression(s)

On this page