From 45d3bd473fb084d9c93a40a95c7280d03081f408 Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Tue, 7 Nov 2023 16:45:28 +0100 Subject: [PATCH] TASK: Add sortNames and priority to flowQuery operations --- .../BackReferenceNodesOperation.php | 13 +++++++++++++ .../BackReferencesOperation.php | 13 +++++++++++++ .../FlowQueryOperations/NextAllOperation.php | 2 +- .../FlowQueryOperations/NextUntilOperation.php | 2 +- .../FlowQueryOperations/ParentsOperation.php | 2 +- .../FlowQueryOperations/ParentsUntilOperation.php | 2 +- .../ReferenceNodesOperation.php | 13 +++++++++++++ .../ReferencePropertyOperation.php | 13 +++++++++++++ .../FlowQueryOperations/ReferencesOperation.php | 13 +++++++++++++ .../FlowQueryOperations/RemoveOperation.php | 14 ++++++++++++++ .../FlowQueryOperations/UniqueOperation.php | 14 ++++++++++++++ 11 files changed, 97 insertions(+), 4 deletions(-) diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/BackReferenceNodesOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/BackReferenceNodesOperation.php index d6c137d01af..2f8d2a456b8 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/BackReferenceNodesOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/BackReferenceNodesOperation.php @@ -36,6 +36,19 @@ */ final class BackReferenceNodesOperation implements OperationInterface { + /** + * {@inheritdoc} + * + * @var string + */ + protected static $shortName = 'backReferenceNodes'; + + /** + * {@inheritdoc} + * + * @var integer + */ + protected static $priority = 0; /** * @Flow\Inject diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/BackReferencesOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/BackReferencesOperation.php index 4330d0902d8..f6b159b570e 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/BackReferencesOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/BackReferencesOperation.php @@ -42,6 +42,19 @@ */ final class BackReferencesOperation implements OperationInterface { + /** + * {@inheritdoc} + * + * @var string + */ + protected static $shortName = 'backReferences'; + + /** + * {@inheritdoc} + * + * @var integer + */ + protected static $priority = 0; /** * @Flow\Inject diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/NextAllOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/NextAllOperation.php index 98c6d8afbdd..6f8944289fe 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/NextAllOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/NextAllOperation.php @@ -39,7 +39,7 @@ class NextAllOperation extends AbstractOperation * * @var integer */ - protected static $priority = 100; + protected static $priority = 0; /** * @Flow\Inject diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/NextUntilOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/NextUntilOperation.php index f017780a129..54d5df9b017 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/NextUntilOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/NextUntilOperation.php @@ -40,7 +40,7 @@ class NextUntilOperation extends AbstractOperation * * @var integer */ - protected static $priority = 100; + protected static $priority = 0; /** * @Flow\Inject diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ParentsOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ParentsOperation.php index e6689095212..45ec64ed6ea 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ParentsOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ParentsOperation.php @@ -40,7 +40,7 @@ class ParentsOperation extends AbstractOperation * * @var integer */ - protected static $priority = 100; + protected static $priority = 0; /** * @Flow\Inject diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ParentsUntilOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ParentsUntilOperation.php index 726215ccabb..1a830b86130 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ParentsUntilOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ParentsUntilOperation.php @@ -42,7 +42,7 @@ class ParentsUntilOperation extends AbstractOperation * * @var integer */ - protected static $priority = 100; + protected static $priority = 0; /** * @Flow\Inject diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferenceNodesOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferenceNodesOperation.php index 249a28ca21d..fe8e1890b50 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferenceNodesOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferenceNodesOperation.php @@ -35,6 +35,19 @@ */ final class ReferenceNodesOperation implements OperationInterface { + /** + * {@inheritdoc} + * + * @var string + */ + protected static $shortName = 'referenceNodes'; + + /** + * {@inheritdoc} + * + * @var integer + */ + protected static $priority = 0; /** * @Flow\Inject diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferencePropertyOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferencePropertyOperation.php index 6acc86ec061..94dcf618ac5 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferencePropertyOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferencePropertyOperation.php @@ -28,6 +28,19 @@ */ final class ReferencePropertyOperation implements OperationInterface { + /** + * {@inheritdoc} + * + * @var string + */ + protected static $shortName = 'referenceProperty'; + + /** + * {@inheritdoc} + * + * @var integer + */ + protected static $priority = 0; /** @param array $context */ public function canEvaluate($context): bool diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferencesOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferencesOperation.php index e4de83ce9e0..60737ce46d4 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferencesOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/ReferencesOperation.php @@ -40,6 +40,19 @@ */ final class ReferencesOperation implements OperationInterface { + /** + * {@inheritdoc} + * + * @var string + */ + protected static $shortName = 'references'; + + /** + * {@inheritdoc} + * + * @var integer + */ + protected static $priority = 0; /** * @Flow\Inject diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/RemoveOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/RemoveOperation.php index 1b189ddd1e5..639ff6b6ba5 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/RemoveOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/RemoveOperation.php @@ -34,6 +34,20 @@ final class RemoveOperation implements OperationInterface { use CreateNodeHashTrait; + /** + * {@inheritdoc} + * + * @var string + */ + protected static $shortName = 'remove'; + + /** + * {@inheritdoc} + * + * @var integer + */ + protected static $priority = 100; + /** @param array $context */ public function canEvaluate($context): bool { diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/UniqueOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/UniqueOperation.php index 113d6bfd7e9..5384fbd5e61 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/UniqueOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/UniqueOperation.php @@ -35,6 +35,20 @@ final class UniqueOperation implements OperationInterface { use CreateNodeHashTrait; + /** + * {@inheritdoc} + * + * @var string + */ + protected static $shortName = 'unique'; + + /** + * {@inheritdoc} + * + * @var integer + */ + protected static $priority = 100; + /** @param array $context */ public function canEvaluate($context): bool {