diff --git a/administrator/modules/mod_feed/src/Helper/FeedHelper.php b/administrator/modules/mod_feed/src/Helper/FeedHelper.php index 6aeb39f618417..df4e499b44f1e 100644 --- a/administrator/modules/mod_feed/src/Helper/FeedHelper.php +++ b/administrator/modules/mod_feed/src/Helper/FeedHelper.php @@ -53,24 +53,4 @@ public function getFeedData(Registry $params, FeedFactory $feed): \Joomla\CMS\Fe return $rssDoc; } - - /** - * Method to load a feed. - * - * @param \Joomla\Registry\Registry $params The parameters object. - * - * @return \Joomla\CMS\Feed\Feed|string Return a Feed object or a string message if error. - * - * @since 1.5 - * - * @deprecated 5.3.0 will be removed in 7.0 - * Use the non-static method getFeedData - * Example: Factory::getApplication()->bootModule('mod_feed', 'administrator') - * ->getHelper('FeedHelper') - * ->getFeedData($params, new FeedFactory()) - */ - public static function getFeed($params) - { - return (new self())->getFeedData($params, new FeedFactory()); - } } diff --git a/administrator/modules/mod_latest/src/Helper/LatestHelper.php b/administrator/modules/mod_latest/src/Helper/LatestHelper.php index 52eae354b319f..2d3bc7d924260 100644 --- a/administrator/modules/mod_latest/src/Helper/LatestHelper.php +++ b/administrator/modules/mod_latest/src/Helper/LatestHelper.php @@ -11,7 +11,6 @@ namespace Joomla\Module\Latest\Administrator\Helper; use Joomla\CMS\Application\CMSApplicationInterface; -use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\Component\Content\Administrator\Model\ArticlesModel; @@ -139,41 +138,4 @@ public function getModuleTitle(Registry $params, CMSApplicationInterface $app): $title ); } - - /** - * Get a list of articles. - * - * @param Registry $params The module parameters. - * @param ArticlesModel $model The model. - * - * @return mixed An array of articles, or false on error. - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getArticles - * Example: Factory::getApplication()->bootModule('mod_latest', 'administrator') - * ->getHelper('LatestHelper') - * ->getArticles($params, $model, Factory::getApplication()) - */ - public static function getList(Registry $params, ArticlesModel $model) - { - return (new self())->getArticles($params, $model, Factory::getApplication()); - } - - /** - * Get the alternate title for the module. - * - * @param Registry $params The module parameters. - * - * @return string The alternate title for the module. - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getModuleTitle - * Example: Factory::getApplication()->bootModule('mod_latest', 'administrator') - * ->getHelper('LatestHelper') - * ->getModuleTitle($params, Factory::getApplication()) - */ - public static function getTitle($params) - { - return (new self())->getModuleTitle($params, Factory::getApplication()); - } } diff --git a/administrator/modules/mod_latestactions/src/Helper/LatestActionsHelper.php b/administrator/modules/mod_latestactions/src/Helper/LatestActionsHelper.php index b9dda8a7928dc..e7f80ffedf394 100644 --- a/administrator/modules/mod_latestactions/src/Helper/LatestActionsHelper.php +++ b/administrator/modules/mod_latestactions/src/Helper/LatestActionsHelper.php @@ -76,46 +76,4 @@ public function getModuleTitle($params) { return Text::plural('MOD_LATESTACTIONS_TITLE', $params->get('count', 5)); } - - /** - * Get the alternate title for the module - * - * @param Registry $params The module parameters. - * - * @return string The alternate title for the module. - * - * @since 3.9.1 - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getModuleTitle - * Example: Factory::getApplication()->bootModule('mod_latestactions', 'administrator') - * ->getHelper('LatestActionsHelper') - * ->getModuleTitle($params) - */ - public static function getTitle($params) - { - return (new self())->getModuleTitle($params); - } - - /** - * Get a list of logged actions. - * - * @param Registry &$params The module parameters. - * - * @return mixed An array of action logs, or false on error. - * - * @since 3.9.1 - * - * @throws \Exception - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getActions - * Example: Factory::getApplication()->bootModule('mod_latestactions', 'administrator') - * ->getHelper('LatestActionsHelper') - * ->getActions($params) - */ - public static function getList(&$params) - { - return (new self())->getActions($params); - } } diff --git a/administrator/modules/mod_logged/src/Helper/LoggedHelper.php b/administrator/modules/mod_logged/src/Helper/LoggedHelper.php index e7cf40b87333a..ab4d3f7c67ad4 100644 --- a/administrator/modules/mod_logged/src/Helper/LoggedHelper.php +++ b/administrator/modules/mod_logged/src/Helper/LoggedHelper.php @@ -91,44 +91,4 @@ public function getModuleTitle($params): string { return Text::plural('MOD_LOGGED_TITLE', $params->get('count', 5)); } - - /** - * Get a list of logged users. - * - * @param Registry $params The module parameters - * @param CMSApplication $app The application - * @param DatabaseInterface $db The database - * - * @return mixed An array of users, or false on error. - * - * @throws \RuntimeException - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getUsers - * Example: Factory::getApplication()->bootModule('mod_logged', 'administrator') - * ->getHelper('LoggedHelper') - * ->getUsers($params, Factory::getApplication(), $db) - */ - public static function getList(Registry $params, CMSApplication $app, DatabaseInterface $db) - { - return (new self())->getUsers($params, $app, $db); - } - - /** - * Get the alternate title for the module - * - * @param Registry $params The module parameters. - * - * @return string The alternate title for the module. - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getModuleTitle - * Example: Factory::getApplication()->bootModule('mod_logged', 'administrator') - * ->getHelper('LoggedHelper') - * ->getModuleTitle($params) - */ - public static function getTitle($params) - { - return (new self())->getModuleTitle($params); - } } diff --git a/administrator/modules/mod_login/src/Helper/LoginHelper.php b/administrator/modules/mod_login/src/Helper/LoginHelper.php index 81c1b04cfa622..cce4f55538115 100644 --- a/administrator/modules/mod_login/src/Helper/LoginHelper.php +++ b/administrator/modules/mod_login/src/Helper/LoginHelper.php @@ -11,7 +11,6 @@ namespace Joomla\Module\Login\Administrator\Helper; use Joomla\CMS\Application\CMSApplicationInterface; -use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\LanguageHelper; use Joomla\CMS\Language\Text; @@ -82,36 +81,4 @@ public function getReturnUriString() return base64_encode('index.php'); } - - /** - * Get an HTML select list of the available languages. - * - * @return string - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getLanguages - * Example: Factory::getApplication()->bootModule('mod_login', 'administrator') - * ->getHelper('LoginHelper') - * ->getLanguages(Factory::getApplication()) - */ - public static function getLanguageList() - { - return (new self())->getLanguages(Factory::getApplication()); - } - - /** - * Get the redirect URI after login. - * - * @return string - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getReturnUriString - * Example: Factory::getApplication()->bootModule('mod_login', 'administrator') - * ->getHelper('LoginHelper') - * ->getReturnUriString() - */ - public static function getReturnUri() - { - return (new self())->getReturnUriString(); - } } diff --git a/administrator/modules/mod_privacy_dashboard/src/Helper/PrivacyDashboardHelper.php b/administrator/modules/mod_privacy_dashboard/src/Helper/PrivacyDashboardHelper.php index 121455ad14658..bc8cc74bdf7ef 100644 --- a/administrator/modules/mod_privacy_dashboard/src/Helper/PrivacyDashboardHelper.php +++ b/administrator/modules/mod_privacy_dashboard/src/Helper/PrivacyDashboardHelper.php @@ -10,7 +10,6 @@ namespace Joomla\Module\PrivacyDashboard\Administrator\Helper; -use Joomla\CMS\Factory; use Joomla\Database\DatabaseAwareInterface; use Joomla\Database\DatabaseAwareTrait; use Joomla\Database\Exception\ExecutionFailureException; @@ -58,24 +57,4 @@ public function getPrivacyRequests(): array return []; } } - - /** - * Method to retrieve information about the site privacy requests - * - * @return array Array containing site privacy requests - * - * @since 3.9.0 - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getPrivacyRequests - * Example: Factory::getApplication()->bootModule('mod_privacy_dashboard', 'administrator') - * ->getHelper('PrivacyDashboardHelper') - * ->getPrivacyRequests() - */ - public static function getData() - { - return Factory::getApplication()->bootModule('mod_privacy_dashboard', 'administrator') - ->getHelper('PrivacyDashboardHelper') - ->getPrivacyRequests(); - } } diff --git a/administrator/modules/mod_privacy_status/src/Helper/PrivacyStatusHelper.php b/administrator/modules/mod_privacy_status/src/Helper/PrivacyStatusHelper.php index 2d0e75331100b..828d1c0691883 100644 --- a/administrator/modules/mod_privacy_status/src/Helper/PrivacyStatusHelper.php +++ b/administrator/modules/mod_privacy_status/src/Helper/PrivacyStatusHelper.php @@ -198,68 +198,4 @@ public function getDatabaseConnectionEncryption() { return $this->getDatabase()->getConnectionEncryption(); } - - /** - * Get the information about the published privacy policy - * - * @return array Array containing a status of whether a privacy policy is set and a link to the policy document for editing - * - * @since 4.0.0 - * - * @deprecated 5.3.0 will be removed in 7.0 - * Use the non-static method getPrivacyPolicyInformation - * Example: Factory::getApplication()->bootModule('mod_privacy_status', 'administrator') - * ->getHelper('PrivacyStatusHelper') - * ->getPrivacyPolicyInformation(Factory::getApplication()) - */ - public static function getPrivacyPolicyInfo() - { - $app = Factory::getApplication(); - - return $app->bootModule('mod_privacy_status', 'administrator') - ->getHelper('PrivacyStatusHelper') - ->getPrivacyPolicyInformation($app); - } - - /** - * Check whether there is a menu item for the request form - * - * @return array Array containing a status of whether a menu is published for the request form and its current link - * - * @since 4.0.0 - * - * @deprecated 5.3.0 will be removed in 7.0 - * Use the non-static method getRequestFormMenuStatus - * Example: Factory::getApplication()->bootModule('mod_privacy_status', 'administrator') - * ->getHelper('PrivacyStatusHelper') - * ->getRequestFormMenuStatus(Factory::getApplication()) - */ - public static function getRequestFormPublished() - { - $app = Factory::getApplication(); - - return $app->bootModule('mod_privacy_status', 'administrator') - ->getHelper('PrivacyStatusHelper') - ->getRequestFormMenuStatus($app); - } - - /** - * Method to return number privacy requests older than X days. - * - * @return integer - * - * @since 4.0.0 - * - * @deprecated 5.3.0 will be removed in 7.0 - * Use the non-static method getNumberOfUrgentRequests - * Example: Factory::getApplication()->bootModule('mod_privacy_status', 'administrator') - * ->getHelper('PrivacyStatusHelper') - * ->getNumberOfUrgentRequests() - */ - public static function getNumberUrgentRequests() - { - return Factory::getApplication()->bootModule('mod_privacy_status', 'administrator') - ->getHelper('PrivacyStatusHelper') - ->getNumberOfUrgentRequests(); - } } diff --git a/administrator/modules/mod_sampledata/src/Helper/SampledataHelper.php b/administrator/modules/mod_sampledata/src/Helper/SampledataHelper.php index f4310aa703c3b..34b46b3e5e11c 100644 --- a/administrator/modules/mod_sampledata/src/Helper/SampledataHelper.php +++ b/administrator/modules/mod_sampledata/src/Helper/SampledataHelper.php @@ -49,22 +49,4 @@ public function getSampledataList() ) ->getArgument('result') ?? []; } - - /** - * Get a list of sampledata. - * - * @return mixed An array of sampledata, or false on error. - * - * @since 3.8.0 - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getSampledataList - * Example: Factory::getApplication()->bootModule('mod_sampledata', 'administrator') - * ->getHelper('SampledataHelper') - * ->getSampledataList() - */ - public static function getList() - { - return (new self())->getSampledataList(); - } } diff --git a/administrator/modules/mod_stats_admin/src/Helper/StatsAdminHelper.php b/administrator/modules/mod_stats_admin/src/Helper/StatsAdminHelper.php index 3df2cc3f1585c..3bf92af463307 100644 --- a/administrator/modules/mod_stats_admin/src/Helper/StatsAdminHelper.php +++ b/administrator/modules/mod_stats_admin/src/Helper/StatsAdminHelper.php @@ -144,26 +144,4 @@ public function getStatsData(Registry $params, CMSApplication $app, DatabaseInte return $rows; } - - /** - * Method to retrieve information about the site - * - * @param Registry $params The module parameters - * @param CMSApplication $app The application - * @param DatabaseInterface $db The database - * - * @return array Array containing site information - * - * @since 3.0 - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getStatsData - * Example: Factory::getApplication()->bootModule('mod_stats_admin', 'administrator') - * ->getHelper('StatsAdminHelper') - * ->getStatsData($params, Factory::getApplication(), Factory::getContainer()->get(DatabaseInterface::class)) - */ - public static function getStats(Registry $params, CMSApplication $app, DatabaseInterface $db) - { - return (new self())->getStatsData($params, $app, $db); - } } diff --git a/administrator/modules/mod_version/src/Helper/VersionHelper.php b/administrator/modules/mod_version/src/Helper/VersionHelper.php index d8194bd50f026..30960acd2de1b 100644 --- a/administrator/modules/mod_version/src/Helper/VersionHelper.php +++ b/administrator/modules/mod_version/src/Helper/VersionHelper.php @@ -36,20 +36,4 @@ public function getVersionString() return '‎' . $version->getShortVersion(); } - - /** - * Get the Joomla version number. - * - * @return string String containing the current Joomla version. - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getVersionString - * Example: Factory::getApplication()->bootModule('mod_version', 'administrator') - * ->getHelper('VersionHelper') - * ->getVersionString() - */ - public static function getVersion() - { - return (new self())->getVersionString(); - } } diff --git a/modules/mod_banners/src/Helper/BannersHelper.php b/modules/mod_banners/src/Helper/BannersHelper.php index fd34cfe1cae9c..fb907be73adbc 100644 --- a/modules/mod_banners/src/Helper/BannersHelper.php +++ b/modules/mod_banners/src/Helper/BannersHelper.php @@ -64,26 +64,4 @@ public function getBanners(Registry $params, CMSApplication $app) return $banners; } - - /** - * Retrieve list of banners - * - * @param Registry $params The module parameters - * @param BannersModel $model The model - * @param CMSApplication $app The application - * - * @return mixed - * - * @since 1.5 - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getBanners - * Example: Factory::getApplication()->bootModule('mod_banners', 'site') - * ->getHelper('BannersHelper') - * ->getBanners($params, Factory::getApplication()) - */ - public static function getList(Registry $params, BannersModel $model, CMSApplication $app) - { - return (new self())->getBanners($params, $app); - } } diff --git a/modules/mod_breadcrumbs/src/Helper/BreadcrumbsHelper.php b/modules/mod_breadcrumbs/src/Helper/BreadcrumbsHelper.php index 7cd4037ebe4a7..914086db5a237 100644 --- a/modules/mod_breadcrumbs/src/Helper/BreadcrumbsHelper.php +++ b/modules/mod_breadcrumbs/src/Helper/BreadcrumbsHelper.php @@ -10,9 +10,7 @@ namespace Joomla\Module\Breadcrumbs\Site\Helper; -use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Application\SiteApplication; -use Joomla\CMS\Factory; use Joomla\CMS\Language\Multilanguage; use Joomla\Registry\Registry; @@ -86,46 +84,4 @@ public function getHomeItem(Registry $params, SiteApplication $app): object return $item; } - - /** - * Retrieve breadcrumb items - * - * @param Registry $params The module parameters - * @param CMSApplication $app The application - * - * @return array - * - * @since 1.5 - * - * @deprecated 4.4.0 will be removed in 7.0 - * Use the non-static method getBreadcrumbs - * Example: Factory::getApplication()->bootModule('mod_breadcrumbs', 'site') - * ->getHelper('BreadcrumbsHelper') - * ->getBreadcrumbs($params, Factory::getApplication()) - */ - public static function getList(Registry $params, CMSApplication $app) - { - return (new self())->getBreadcrumbs($params, Factory::getApplication()); - } - - /** - * Retrieve home item (start page) - * - * @param Registry $params The module parameters - * @param CMSApplication $app The application - * - * @return object - * - * @since 4.2.0 - * - * @deprecated 4.4.0 will be removed in 7.0 - * Use the non-static method getHomeItem - * Example: Factory::getApplication()->bootModule('mod_breadcrumbs', 'site') - * ->getHelper('BreadcrumbsHelper') - * ->getHomeItem($params, Factory::getApplication()) - */ - public static function getHome(Registry $params, CMSApplication $app) - { - return (new self())->getHomeItem($params, Factory::getApplication()); - } } diff --git a/modules/mod_feed/src/Helper/FeedHelper.php b/modules/mod_feed/src/Helper/FeedHelper.php index a716ab862962a..391fda251c2cc 100644 --- a/modules/mod_feed/src/Helper/FeedHelper.php +++ b/modules/mod_feed/src/Helper/FeedHelper.php @@ -54,23 +54,4 @@ public function getFeedInformation($params) return $rssDoc; } } - - /** - * Retrieve feed information - * - * @param \Joomla\Registry\Registry $params module parameters - * - * @return \Joomla\CMS\Feed\Feed|string - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getFeedInformation - * Example: Factory::getApplication()->bootModule('mod_feed', 'site') - * ->getHelper('FeedHelper') - * ->getFeedInformation($params, Factory::getApplication()) - * - */ - public static function getFeed($params) - { - return (new self())->getFeedInformation($params); - } } diff --git a/modules/mod_finder/src/Helper/FinderHelper.php b/modules/mod_finder/src/Helper/FinderHelper.php index 5fb1d860cc1d0..65c141f3f7e39 100644 --- a/modules/mod_finder/src/Helper/FinderHelper.php +++ b/modules/mod_finder/src/Helper/FinderHelper.php @@ -11,7 +11,6 @@ namespace Joomla\Module\Finder\Site\Helper; use Joomla\CMS\Application\CMSApplicationInterface; -use Joomla\CMS\Factory; use Joomla\CMS\Filter\InputFilter; use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; @@ -86,50 +85,4 @@ public function getSearchQuery(Registry $params, CMSApplicationInterface $app): // Instantiate a query object. return new Query($options, $this->getDatabase()); } - - /** - * Method to get hidden input fields for a get form so that control variables - * are not lost upon form submission. - * - * @param string $route The route to the page. [optional] - * @param integer $paramItem The menu item ID. (@since 3.1) [optional] - * - * @return string A string of hidden input form fields - * - * @since 2.5 - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getFields - * Example: Factory::getApplication()->bootModule('mod_finder', 'site') - * ->getHelper('FinderHelper') - * ->getHiddenFields($route, $paramItem) - */ - public static function getGetFields($route = null, $paramItem = 0) - { - return (new self())->getHiddenFields($route); - } - - /** - * Get Smart Search query object. - * - * @param \Joomla\Registry\Registry $params Module parameters. - * - * @return Query object - * - * @since 2.5 - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getSearchQuery - * Example: Factory::getApplication()->bootModule('mod_finder', 'site') - * ->getHelper('FinderHelper') - * ->getSearchQuery($params, Factory::getApplication()) - */ - public static function getQuery($params) - { - $app = Factory::getApplication(); - - return $app->bootModule('mod_finder', 'site') - ->getHelper('FinderHelper') - ->getSearchQuery($params, $app); - } } diff --git a/modules/mod_languages/src/Helper/LanguagesHelper.php b/modules/mod_languages/src/Helper/LanguagesHelper.php index 3b3563ed04889..fe7ee99d8b5de 100644 --- a/modules/mod_languages/src/Helper/LanguagesHelper.php +++ b/modules/mod_languages/src/Helper/LanguagesHelper.php @@ -138,22 +138,4 @@ public function getLanguages(&$params) return $languages; } - - /** - * Gets a list of available languages - * - * @param \Joomla\Registry\Registry &$params module params - * - * @return array - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getLanguages - * Example: Factory::getApplication()->bootModule('mod_languages', 'site') - * ->getHelper('LanguagesHelper') - * ->getLanguages($params) - */ - public static function getList(&$params) - { - return (new self())->getLanguages($params); - } } diff --git a/modules/mod_login/src/Helper/LoginHelper.php b/modules/mod_login/src/Helper/LoginHelper.php index 7a713f7a9cc90..21b71675c3d25 100644 --- a/modules/mod_login/src/Helper/LoginHelper.php +++ b/modules/mod_login/src/Helper/LoginHelper.php @@ -11,7 +11,6 @@ namespace Joomla\Module\Login\Site\Helper; use Joomla\CMS\Application\CMSApplicationInterface; -use Joomla\CMS\Factory; use Joomla\CMS\Language\Multilanguage; use Joomla\CMS\Uri\Uri; use Joomla\CMS\User\User; @@ -106,59 +105,4 @@ public function getRegistrationUrlString(Registry $params, CMSApplicationInterfa return $regLink; } - - /** - * Retrieve the URL where the user should be returned after logging in - * - * @param Registry $params module parameters - * @param string $type return type - * - * @return string - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getReturnUrlString - * Example: Factory::getApplication()->bootModule('mod_login', 'site') - * ->getHelper('LoginHelper') - * ->getReturnUrlString($params, $type, Factory::getApplication()) - */ - public static function getReturnUrl($params, $type) - { - return (new self())->getReturnUrlString($params, $type, Factory::getApplication()); - } - - /** - * Returns the current users type - * - * @return string - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getUserType - * Example: Factory::getApplication()->bootModule('mod_login', 'site') - * ->getHelper('LoginHelper') - * ->getUserType(Factory::getApplication()) - */ - public static function getType() - { - $user = Factory::getApplication()->getIdentity(); - - return (new self())->getUserType($user); - } - - /** - * Retrieve the URL for the registration page - * - * @param Registry $params module parameters - * - * @return string - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getRegistrationUrlString - * Example: Factory::getApplication()->bootModule('mod_login', 'site') - * ->getHelper('LoginHelper') - * ->getRegistrationUrlString($params, Factory::getApplication()) - */ - public static function getRegistrationUrl($params) - { - return (new self())->getRegistrationUrlString($params, Factory::getApplication()); - } } diff --git a/modules/mod_menu/src/Helper/MenuHelper.php b/modules/mod_menu/src/Helper/MenuHelper.php index 706acf4d6562f..80f890eb0a129 100644 --- a/modules/mod_menu/src/Helper/MenuHelper.php +++ b/modules/mod_menu/src/Helper/MenuHelper.php @@ -245,81 +245,4 @@ public function getDefaultItem(CMSApplicationInterface $app): object return $menu->getDefault(); } - - - /** - * Get a list of the menu items. - * - * @param Registry &$params The module options. - * - * @return array - * - * @since 1.5 - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getItems - * Example: Factory::getApplication()->bootModule('mod_menu', 'site') - * ->getHelper('MenuHelper') - * ->getItems($params, $app) - */ - public static function getList(&$params) - { - return (new self())->getItems($params, Factory::getApplication()); - } - - /** - * Get base menu item. - * - * @param Registry &$params The module options. - * - * @return object - * - * @since 3.0.2 - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getBaseItem - * Example: Factory::getApplication()->bootModule('mod_menu', 'site') - * ->getHelper('MenuHelper') - * ->getBaseItem($params, $app) - */ - public static function getBase(&$params) - { - return (new self())->getBaseItem($params, Factory::getApplication()); - } - - /** - * Get active menu item. - * - * @param Registry &$params The module options. - * - * @return object - * - * @since 3.0.2 - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getActiveItem - * Example: Factory::getApplication()->bootModule('mod_menu', 'site') - * ->getHelper('MenuHelper') - * ->getActiveItem($app) - */ - public static function getActive(&$params) - { - return (new self())->getActiveItem(Factory::getApplication()); - } - - /** - * Get default menu item (home page) for current language. - * - * @return object - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getDefaultItem - * Example: Factory::getApplication()->bootModule('mod_menu', 'site') - * ->getHelper('MenuHelper') - * ->getDefaultItem($app) - */ - public static function getDefault() - { - return (new self())->getDefaultItem(Factory::getApplication()); - } } diff --git a/modules/mod_random_image/src/Helper/RandomImageHelper.php b/modules/mod_random_image/src/Helper/RandomImageHelper.php index aa05e1c5f9e8a..4817c1c6e959e 100644 --- a/modules/mod_random_image/src/Helper/RandomImageHelper.php +++ b/modules/mod_random_image/src/Helper/RandomImageHelper.php @@ -159,60 +159,4 @@ public function getSanitizedFolder(Registry &$params): mixed return str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $folder); } - - /** - * Retrieves a random image - * - * @param Registry &$params module parameters object - * @param array $images list of images - * - * @return mixed - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getImage - * Example: Factory::getApplication()->bootModule('mod_random_image', 'site') - * ->getHelper('RandomImageHelper') - * ->getImage($params, $images) - */ - public static function getRandomImage(&$params, $images) - { - return (new self())->getImage($params, $images); - } - - /** - * Retrieves images from a specific folder - * - * @param Registry &$params module params - * @param string $folder folder to get the images from - * - * @return array - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getImagesFromFolder - * Example: Factory::getApplication()->bootModule('mod_random_image', 'site') - * ->getHelper('RandomImageHelper') - * ->getImagesFromFolder($params, $folder) - */ - public static function getImages(&$params, $folder) - { - return (new self())->getImagesFromFolder($params, $folder); - } - - /** - * Get sanitized folder - * - * @param Registry &$params module params objects - * - * @return mixed - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getSanitizedFolder - * Example: Factory::getApplication()->bootModule('mod_random_image', 'site') - * ->getHelper('RandomImageHelper') - * ->getSanitizedFolder($params) - */ - public static function getFolder(&$params) - { - return (new self())->getSanitizedFolder($params); - } } diff --git a/modules/mod_related_items/src/Helper/RelatedItemsHelper.php b/modules/mod_related_items/src/Helper/RelatedItemsHelper.php index eee9140db6300..9f5209949ec48 100644 --- a/modules/mod_related_items/src/Helper/RelatedItemsHelper.php +++ b/modules/mod_related_items/src/Helper/RelatedItemsHelper.php @@ -176,27 +176,4 @@ public function getRelatedArticles(Registry $params, SiteApplication $app): arra return $related; } - - /** - * Get a list of related articles - * - * @param Registry &$params module parameters - * - * @return array - * - * @since 1.6 - * - * @deprecated 4.4.0 will be removed in 7.0 - * Use the non-static method getRelatedArticles - * Example: Factory::getApplication()->bootModule('mod_related_items', 'site') - * ->getHelper('RelatedItemsHelper') - * ->getRelatedArticles($params, Factory::getApplication()) - */ - public static function getList(&$params) - { - /** @var SiteApplication $app */ - $app = Factory::getApplication(); - - return (new self())->getRelatedArticles($params, $app); - } } diff --git a/modules/mod_stats/src/Helper/StatsHelper.php b/modules/mod_stats/src/Helper/StatsHelper.php index 93a9d0782860b..f91e8eb87fe0f 100644 --- a/modules/mod_stats/src/Helper/StatsHelper.php +++ b/modules/mod_stats/src/Helper/StatsHelper.php @@ -11,7 +11,6 @@ namespace Joomla\Module\Stats\Site\Helper; use Joomla\CMS\Application\CMSApplicationInterface; -use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\PluginHelper; @@ -166,22 +165,4 @@ public function getStats(Registry &$params, CMSApplicationInterface $app) return $rows; } - - /** - * Get list of stats - * - * @param Registry &$params module parameters - * - * @return array - * - * @deprecated 5.2.0 will be removed in 7.0 - * Use the non-static method getStats - * Example: Factory::getApplication()->bootModule('mod_stats', 'site') - * ->getHelper('StatsHelper') - * ->getStats($params, Factory::getApplication()) - */ - public static function &getList(Registry &$params) - { - return (new self())->getStats($params, Factory::getApplication()); - } } diff --git a/modules/mod_syndicate/src/Helper/SyndicateHelper.php b/modules/mod_syndicate/src/Helper/SyndicateHelper.php index 3748afc1b9f06..3adba029d7108 100644 --- a/modules/mod_syndicate/src/Helper/SyndicateHelper.php +++ b/modules/mod_syndicate/src/Helper/SyndicateHelper.php @@ -47,25 +47,4 @@ public function getSyndicateLink(Registry $params, HtmlDocument $document) return null; } - - /** - * Gets the link - * - * @param Registry $params The module parameters - * @param HtmlDocument $document The document - * - * @return string|null The link as a string, if found - * - * @since 1.5 - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getSyndicateLink - * Example: Factory::getApplication()->bootModule('mod_syndicate', 'site') - * ->getHelper('SyndicateHelper') - * ->getSyndicateLink($params, Factory::getApplication()->getDocument()) - */ - public static function getLink(Registry $params, HtmlDocument $document) - { - return (new self())->getSyndicateLink($params, $document); - } } diff --git a/modules/mod_tags_popular/src/Helper/TagsPopularHelper.php b/modules/mod_tags_popular/src/Helper/TagsPopularHelper.php index 3930bb1b0cca9..4260128c80189 100644 --- a/modules/mod_tags_popular/src/Helper/TagsPopularHelper.php +++ b/modules/mod_tags_popular/src/Helper/TagsPopularHelper.php @@ -193,24 +193,4 @@ public function getTags(&$params) return $results; } - - /** - * Get list of popular tags - * - * @param \Joomla\Registry\Registry &$params module parameters - * - * @return mixed - * - * @since 3.1 - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getTags - * Example: Factory::getApplication()->bootModule('mod_tags_popular', 'site') - * ->getHelper('TagsPopularHelper') - * ->getTags($params) - */ - public static function getList(&$params) - { - return (new self())->getTags($params); - } } diff --git a/modules/mod_tags_similar/src/Helper/TagsSimilarHelper.php b/modules/mod_tags_similar/src/Helper/TagsSimilarHelper.php index 6c38d0fc293e8..2b965fc28f419 100644 --- a/modules/mod_tags_similar/src/Helper/TagsSimilarHelper.php +++ b/modules/mod_tags_similar/src/Helper/TagsSimilarHelper.php @@ -224,22 +224,4 @@ public function getItems(&$params) return $results; } - - /** - * Get a list of items with similar tags - * - * @param Registry &$params Module parameters - * - * @return array - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getItems - * Example: Factory::getApplication()->bootModule('mod_tags_similar', 'site') - * ->getHelper('TagsSimilarHelper') - * ->getItems($params) - */ - public static function getList(&$params) - { - return (new self())->getItems($params); - } } diff --git a/modules/mod_users_latest/src/Helper/UsersLatestHelper.php b/modules/mod_users_latest/src/Helper/UsersLatestHelper.php index 81120ba3ebb4c..b33252a198f56 100644 --- a/modules/mod_users_latest/src/Helper/UsersLatestHelper.php +++ b/modules/mod_users_latest/src/Helper/UsersLatestHelper.php @@ -11,7 +11,6 @@ namespace Joomla\Module\UsersLatest\Site\Helper; use Joomla\CMS\Application\SiteApplication; -use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\Database\DatabaseAwareInterface; use Joomla\Database\DatabaseAwareTrait; @@ -75,24 +74,4 @@ public function getLatestUsers(Registry $params, SiteApplication $app): array return []; } } - - /** - * Get users sorted by activation date - * - * @param \Joomla\Registry\Registry $params module parameters - * - * @return array The array of users - * - * @since 1.6 - * - * @deprecated 4.4.0 will be removed in 7.0 - * Use the non-static method getLatestUsers - * Example: Factory::getApplication()->bootModule('mod_users_latest', 'site') - * ->getHelper('UsersLatestHelper') - * ->getLatestUsers($params, Factory::getApplication()) - */ - public static function getUsers($params) - { - return (new self())->getLatestUsers($params, Factory::getApplication()); - } } diff --git a/modules/mod_whosonline/src/Helper/WhosonlineHelper.php b/modules/mod_whosonline/src/Helper/WhosonlineHelper.php index 03133eb2c57e1..8f21597f88443 100644 --- a/modules/mod_whosonline/src/Helper/WhosonlineHelper.php +++ b/modules/mod_whosonline/src/Helper/WhosonlineHelper.php @@ -11,7 +11,6 @@ namespace Joomla\Module\Whosonline\Site\Helper; use Joomla\CMS\Application\CMSApplicationInterface; -use Joomla\CMS\Factory; use Joomla\Database\DatabaseAwareInterface; use Joomla\Database\DatabaseAwareTrait; use Joomla\Registry\Registry; @@ -126,48 +125,4 @@ public function fetchOnlineUserNames(CMSApplicationInterface $app, Registry $par return []; } } - - /** - * Show online count - * - * @return array The number of Users and Guests online. - * - * @since 1.5 - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method getOnlineUsersCount - * Example: Factory::getApplication()->bootModule('mod_whosonline', 'site') - * ->getHelper('WhosonlineHelper') - * ->getOnlineUsersCount(Factory::getApplication()) - **/ - public static function getOnlineCount() - { - $app = Factory::getApplication(); - return $app->bootModule('mod_whosonline', 'site') - ->getHelper('WhosonlineHelper') - ->getOnlineUsersCount($app); - } - - /** - * Show online member names - * - * @param mixed $params The parameters - * - * @return array (array) $db->loadObjectList() The names of the online users. - * - * @since 1.5 - * - * @deprecated 5.4.0 will be removed in 7.0 - * Use the non-static method fetchOnlineUserNames - * Example: Factory::getApplication()->bootModule('mod_whosonline', 'site') - * ->getHelper('WhosonlineHelper') - * ->fetchOnlineUserNames(Factory::getApplication(), $params) - **/ - public static function getOnlineUserNames($params) - { - $app = Factory::getApplication(); - return $app->bootModule('mod_whosonline', 'site') - ->getHelper('WhosonlineHelper') - ->fetchOnlineUserNames($app, $params); - } } diff --git a/modules/mod_wrapper/src/Helper/WrapperHelper.php b/modules/mod_wrapper/src/Helper/WrapperHelper.php index ef57b64d7567b..71cce22ea49c6 100644 --- a/modules/mod_wrapper/src/Helper/WrapperHelper.php +++ b/modules/mod_wrapper/src/Helper/WrapperHelper.php @@ -11,7 +11,6 @@ namespace Joomla\Module\Wrapper\Site\Helper; use Joomla\CMS\Application\SiteApplication; -use Joomla\CMS\Factory; use Joomla\Registry\Registry; // phpcs:disable PSR1.Files.SideEffects @@ -69,24 +68,4 @@ public function getParamsWrapper(Registry $params, SiteApplication $app) return $params; } - - /** - * Gets the parameters for the wrapper - * - * @param mixed &$params The parameters set in the administrator section - * - * @return mixed &$params The modified parameters - * - * @since 1.5 - * - * @deprecated 5.1.0 will be removed in 7.0 - * Use the non-static method getParamsWrapper - * Example: Factory::getApplication()->bootModule('mod_wrapper', 'site') - * ->getHelper('WrapperHelper') - * ->getParamsWrapper($params, Factory::getApplication()) - */ - public static function getParams(&$params) - { - return (new self())->getParamsWrapper($params, Factory::getApplication()); - } }