From 72080af45d44e0809d85a3d352bfb3e3705f3735 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 4 Sep 2025 17:16:53 +0300 Subject: [PATCH] dummy primary filter all --- .../Espo/Core/Select/Primary/Filters/All.php | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 application/Espo/Core/Select/Primary/Filters/All.php diff --git a/application/Espo/Core/Select/Primary/Filters/All.php b/application/Espo/Core/Select/Primary/Filters/All.php new file mode 100644 index 0000000000..e8d862a30c --- /dev/null +++ b/application/Espo/Core/Select/Primary/Filters/All.php @@ -0,0 +1,48 @@ +. + * + * The interactive user interfaces in modified source and object code versions + * of this program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU Affero General Public License version 3. + * + * In accordance with Section 7(b) of the GNU Affero General Public License version 3, + * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. + ************************************************************************/ + +namespace Espo\Core\Select\Primary\Filters; + +use Espo\Core\Select\Primary\Filter; +use Espo\ORM\Query\SelectBuilder as QueryBuilder; + +/** + * A dummy filter 'all'. Can be detected in a custom AdditionalApplier to instruct that the filter needs to be + * bypassed. Use this filter for special cases from code. Users can pass this filter too. Do not relly on this filter + * when dealing with access control logic. + * + * @since 9.2.0 + */ +class All implements Filter +{ + public const NAME = 'all'; + + public function apply(QueryBuilder $queryBuilder): void + {} +}