TYPO3 CMS  TYPO3_8-7
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\Tests\Unit\Database\Mocks\InstantiatableAbstractRestrictionContainer

Public Member Functions

 removeAll ()
 
 removeByType (string $restrictionType)
 
 add (QueryRestrictionInterface $restriction)
 
- Public Member Functions inherited from TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionInterface
 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()

TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface::add ( QueryRestrictionInterface  $restriction)

◆ removeAll()

TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface::removeAll ( )

Removes all restrictions stored within this container

Returns
QueryRestrictionContainerInterface

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

◆ removeByType()

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

Remove restriction of a given type

Parameters
string$restrictionTypeClass name of the restriction to be removed
Returns
QueryRestrictionContainerInterface

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