‪TYPO3CMS  9.5
TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface:
TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionInterface TYPO3\CMS\Core\Database\Query\Restriction\AbstractRestrictionContainer TYPO3\CMS\Core\Database\Query\Restriction\DefaultRestrictionContainer TYPO3\CMS\Core\Database\Query\Restriction\FrontendRestrictionContainer TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderMountsRestriction TYPO3\CMS\Core\Resource\Search\QueryRestrictions\FolderRestriction TYPO3\CMS\Core\Tests\Unit\Database\Mocks\InstantiatableAbstractRestrictionContainer

Public Member Functions

QueryRestrictionContainerInterface removeAll ()
 
QueryRestrictionContainerInterface removeByType (string $restrictionType)
 
QueryRestrictionContainerInterface add (QueryRestrictionInterface $restriction)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionInterface
CompositeExpression buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 

Detailed Description

Interface that all restriction collections must implement. It is an extension of the QueryRestrictionInterface, so collections can be treated as single restriction

Definition at line 22 of file QueryRestrictionContainerInterface.php.

Member Function Documentation

◆ add()

◆ removeAll()

◆ removeByType()

QueryRestrictionContainerInterface TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface::removeByType ( string  $restrictionType)

Remove restriction of a given type

Parameters
string$restrictionType‪Class name of the restriction to be removed
Returns
QueryRestrictionContainerInterface

Implemented in TYPO3\CMS\Core\Database\Query\Restriction\AbstractRestrictionContainer.