[FEATURE] Allow adding additional query restrictions 56/56956/3
authorHelmut Hummel <typo3@helhum.io>
Fri, 11 May 2018 22:33:04 +0000 (00:33 +0200)
committerHelmut Hummel <typo3@helhum.io>
Tue, 22 May 2018 10:07:29 +0000 (12:07 +0200)
commitc4fa03788b3cc259cbeadd59f4f8b90caf5e89d3
treec189402944c916b732ebbfd63a15aefeb8a43710
parenta49d5c52592914e118f86319219f3617cd58a250
[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/56956
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
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