From 686155a6395ce4195e89d7e14713f9c17c2d350e Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Mon, 17 May 2021 23:25:11 +0300 Subject: [PATCH] Set ordering for new rules --- .../components/com_jedchecker/libraries/rules/language.php | 7 +++++++ .../components/com_jedchecker/libraries/rules/xmlfiles.php | 7 +++++++ .../com_jedchecker/libraries/rules/xmlmanifest.php | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/administrator/components/com_jedchecker/libraries/rules/language.php b/administrator/components/com_jedchecker/libraries/rules/language.php index 242821d..8001ffe 100644 --- a/administrator/components/com_jedchecker/libraries/rules/language.php +++ b/administrator/components/com_jedchecker/libraries/rules/language.php @@ -44,6 +44,13 @@ class JedcheckerRulesLanguage extends JEDcheckerRule */ protected $description = 'COM_JEDCHECKER_LANG_DESC'; + /** + * The ordering value to sort rules in the menu. + * + * @var integer + */ + public static $ordering = 1100; + /** * Initiates the search and check * diff --git a/administrator/components/com_jedchecker/libraries/rules/xmlfiles.php b/administrator/components/com_jedchecker/libraries/rules/xmlfiles.php index 6564804..a85a600 100644 --- a/administrator/components/com_jedchecker/libraries/rules/xmlfiles.php +++ b/administrator/components/com_jedchecker/libraries/rules/xmlfiles.php @@ -44,6 +44,13 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule */ protected $description = 'COM_JEDCHECKER_XML_FILES_DESC'; + /** + * The ordering value to sort rules in the menu. + * + * @var integer + */ + public static $ordering = 300; + /** * List of errors. * diff --git a/administrator/components/com_jedchecker/libraries/rules/xmlmanifest.php b/administrator/components/com_jedchecker/libraries/rules/xmlmanifest.php index 5d4f119..3ba0aad 100644 --- a/administrator/components/com_jedchecker/libraries/rules/xmlmanifest.php +++ b/administrator/components/com_jedchecker/libraries/rules/xmlmanifest.php @@ -44,6 +44,13 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule */ protected $description = 'COM_JEDCHECKER_MANIFEST_DESC'; + /** + * The ordering value to sort rules in the menu. + * + * @var integer + */ + public static $ordering = 200; + /** * List of errors. *