[FEATURE] Allow adding additional query restrictions 41/56341/20
authorHelmut Hummel <typo3@helhum.io>
Fri, 11 May 2018 22:33:04 +0000 (00:33 +0200)
committerHelmut Hummel <typo3@helhum.io>
Sun, 13 May 2018 21:16:55 +0000 (23:16 +0200)
commit1c2866edd34c7d9c203c5db6afefe4245884363d
tree5b4a5483997603811a2d60d661da3170561daa08
parentd44856e53aa3f7d72566616b89b6ef49395d4158
[FEATURE] Allow adding additional query restrictions

Make it possible to add additional query restrictions,
that will be applied to every query.

Resolves: #84244
Releases: master, 8.7
Change-Id: I0d0a5546629587306e537da51d8a2557d7e95fce
Reviewed-on: https://review.typo3.org/56341
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
16 files changed:
typo3/sysext/core/Classes/Database/Query/QueryBuilder.php
typo3/sysext/core/Classes/Database/Query/Restriction/AbstractRestrictionContainer.php
typo3/sysext/core/Classes/Database/Query/Restriction/EnforceableQueryRestrictionInterface.php [new file with mode: 0644]
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Documentation/Changelog/master/Feature-84244-AllowAddingAdditionalQueryrestrictions.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Mocks/InstantiatableAbstractRestrictionContainer.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionContainerTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/BackendWorkspaceRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/DefaultRestrictionContainerTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/DeletedRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/EndTimeRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendGroupRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/HiddenRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/StartTimeRestrictionTest.php