‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Database\Query\Restriction\EnforceableQueryRestrictionInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Database\Query\Restriction\EnforceableQueryRestrictionInterface:
TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockEnforceableQueryRestriction

Public Member Functions

 isEnforced ()
 

Detailed Description

Can be added to QueryRestrictionInterface implementations. Restrictions implementing this interface will not be removed when removeAll() is called on the container and isEnforced() returns true. It can be removed though, when explicitly calling removeByType()

Definition at line 26 of file EnforceableQueryRestrictionInterface.php.

Member Function Documentation

◆ isEnforced()

TYPO3\CMS\Core\Database\Query\Restriction\EnforceableQueryRestrictionInterface::isEnforced ( )

When returning false, restriction will be removed when removeAll() is called on the container

Implemented in TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockEnforceableQueryRestriction.