Skip to content

Commit

Permalink
Release Joomla! 5.3.0 Beta 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bembelimen committed Feb 17, 2025
1 parent c4c8380 commit 6676f74
Show file tree
Hide file tree
Showing 54 changed files with 131 additions and 80 deletions.
55 changes: 53 additions & 2 deletions administrator/components/com_scheduler/src/Model/TasksModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
*/
class TasksModel extends ListModel
{
protected $listForbiddenList = ['select', 'multi_ordering'];

/**
* Constructor.
*
Expand Down Expand Up @@ -343,8 +345,19 @@ static function (TaskOption $taskOption): string {
}
}
} else {
// @todo Should add quoting here
$query->order($multiOrdering);
$orderClauses = [];

// Loop through provided clauses
foreach ($multiOrdering as $ordering) {
[$column, $direction] = explode(' ', $ordering);

$orderClauses[] = $db->quoteName($column) . ' ' . $direction;
}

// At least one correct order clause
if (\count($orderClauses) > 0) {
$query->order($orderClauses);
}
}

return $query;
Expand Down Expand Up @@ -435,6 +448,44 @@ private function attachTaskOptions(array $items): void
*/
protected function populateState($ordering = 'a.next_execution', $direction = 'ASC'): void
{
$app = Factory::getApplication();

// Clean the multiorder values
if ($list = $app->getUserStateFromRequest($this->context . '.list', 'list', [], 'array')) {
if (!empty($list['multi_ordering']) && \is_array($list['multi_ordering'])) {
$orderClauses = [];

// Loop through provided clauses
foreach ($list['multi_ordering'] as $multiOrdering) {
// Split the combined string into individual variables
$multiOrderingParts = explode(' ', $multiOrdering, 2);

// Check that at least the column is present
if (\count($multiOrderingParts) < 1) {
continue;
}

// Assign variables
$multiOrderingColumn = $multiOrderingParts[0];
$multiOrderingDir = \count($multiOrderingParts) === 2 ? $multiOrderingParts[1] : 'asc';

// Validate provided column
if (!\in_array($multiOrderingColumn, $this->filter_fields)) {
continue;
}

// Validate order dir
if (strtolower($multiOrderingDir) !== 'asc' && strtolower($multiOrderingDir) !== 'desc') {
continue;
}

$orderClauses[] = $multiOrderingColumn . ' ' . $multiOrderingDir;
}

$this->setState('list.multi_ordering', $orderClauses);
}
}

// Call the parent method
parent::populateState($ordering, $direction);
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>English (en-GB)</name>
<tag>en-GB</tag>
<version>5.3.0</version>
<creationDate>2025-01</creationDate>
<creationDate>2025-02</creationDate>
<author>Joomla! Project</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<metafile client="administrator">
<name>English (en-GB)</name>
<version>5.3.0</version>
<creationDate>2025-01</creationDate>
<creationDate>2025-02</creationDate>
<author>Joomla! Project</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions administrator/manifests/files/joomla.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<authorUrl>www.joomla.org</authorUrl>
<copyright>(C) 2019 Open Source Matters, Inc.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>5.3.0-alpha4-dev</version>
<creationDate>2025-01</creationDate>
<version>5.3.0-beta1</version>
<creationDate>2025-02</creationDate>
<description>FILES_JOOMLA_XML_DESCRIPTION</description>

<scriptfile>administrator/components/com_admin/script.php</scriptfile>
Expand Down
2 changes: 1 addition & 1 deletion administrator/manifests/packages/pkg_en-GB.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>English (en-GB) Language Pack</name>
<packagename>en-GB</packagename>
<version>5.3.0.1</version>
<creationDate>2025-01</creationDate>
<creationDate>2025-02</creationDate>
<author>Joomla! Project</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions administrator/modules/mod_feed/services/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* The feed module service provider.
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
return new class () implements ServiceProviderInterface {
/**
Expand All @@ -29,7 +29,7 @@
*
* @return void
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function register(Container $container)
{
Expand Down
4 changes: 2 additions & 2 deletions administrator/modules/mod_feed/src/Dispatcher/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Dispatcher class for mod_feed
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
class Dispatcher extends AbstractModuleDispatcher implements HelperFactoryAwareInterface
{
Expand All @@ -33,7 +33,7 @@ class Dispatcher extends AbstractModuleDispatcher implements HelperFactoryAwareI
*
* @return array
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
protected function getLayoutData()
{
Expand Down
4 changes: 2 additions & 2 deletions administrator/modules/mod_feed/src/Helper/FeedHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class FeedHelper
*
* @return \Joomla\CMS\Feed\Feed|string Return a Feed object or a string message if error.
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function getFeedData(Registry $params, FeedFactory $feed): \Joomla\CMS\Feed\Feed|string
{
Expand Down Expand Up @@ -63,7 +63,7 @@ public function getFeedData(Registry $params, FeedFactory $feed): \Joomla\CMS\Fe
*
* @since 1.5
*
* @deprecated __DEPLOY_VERSION__ will be removed in 7.0
* @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')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* The privacy status module service provider.
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
return new class () implements ServiceProviderInterface {
/**
Expand All @@ -29,7 +29,7 @@
*
* @return void
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function register(Container $container)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* Dispatcher class for mod_privacy_status
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
class Dispatcher extends AbstractModuleDispatcher implements HelperFactoryAwareInterface
{
Expand All @@ -34,7 +34,7 @@ class Dispatcher extends AbstractModuleDispatcher implements HelperFactoryAwareI
*
* @return void
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function dispatch()
{
Expand All @@ -61,7 +61,7 @@ public function dispatch()
*
* @return array
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
protected function getLayoutData()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class PrivacyStatusHelper implements DatabaseAwareInterface
*
* @return array Array containing a status of whether a privacy policy is set and a link to the policy document for editing
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function getPrivacyPolicyInformation(CMSApplicationInterface $app)
{
Expand Down Expand Up @@ -73,7 +73,7 @@ public function getPrivacyPolicyInformation(CMSApplicationInterface $app)
*
* @return array Array containing a status of whether a menu is published for the request form and its current link
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*
*/
public function getRequestFormMenuStatus(CMSApplicationInterface $app)
Expand Down Expand Up @@ -162,7 +162,7 @@ public function getRequestFormMenuStatus(CMSApplicationInterface $app)
*
* @return integer
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function getNumberOfUrgentRequests()
{
Expand Down Expand Up @@ -192,7 +192,7 @@ public function getNumberOfUrgentRequests()
*
* @return string The database encryption details
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function getDatabaseConnectionEncryption()
{
Expand All @@ -206,7 +206,7 @@ public function getDatabaseConnectionEncryption()
*
* @since 4.0.0
*
* @deprecated __DEPLOY_VERSION__ will be removed in 7.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')
Expand All @@ -228,7 +228,7 @@ public static function getPrivacyPolicyInfo()
*
* @since 4.0.0
*
* @deprecated __DEPLOY_VERSION__ will be removed in 7.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')
Expand All @@ -250,7 +250,7 @@ public static function getRequestFormPublished()
*
* @since 4.0.0
*
* @deprecated __DEPLOY_VERSION__ will be removed in 7.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')
Expand Down
2 changes: 1 addition & 1 deletion api/language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>English (en-GB)</name>
<tag>en-GB</tag>
<version>5.3.0</version>
<creationDate>2025-01</creationDate>
<creationDate>2025-02</creationDate>
<author>Joomla! Project</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
2 changes: 1 addition & 1 deletion api/language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<metafile client="api">
<name>English (en-GB)</name>
<version>5.3.0</version>
<creationDate>2025-01</creationDate>
<creationDate>2025-02</creationDate>
<author>Joomla! Project</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
2 changes: 1 addition & 1 deletion installation/language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<metafile client="installation">
<name>English (United Kingdom)</name>
<version>5.3.0</version>
<creationDate>2025-01</creationDate>
<creationDate>2025-02</creationDate>
<author>Joomla! Project</author>
<copyright>(C) 2005 Open Source Matters, Inc.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
Expand Down
2 changes: 1 addition & 1 deletion language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>English (en-GB)</name>
<tag>en-GB</tag>
<version>5.3.0</version>
<creationDate>2025-01</creationDate>
<creationDate>2025-02</creationDate>
<author>Joomla! Project</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
2 changes: 1 addition & 1 deletion language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<metafile client="site">
<name>English (en-GB)</name>
<version>5.3.0</version>
<creationDate>2025-01</creationDate>
<creationDate>2025-02</creationDate>
<author>Joomla! Project</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Component/ComponentRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ComponentRecord
* @var string
* @since 4.0.0
*
* @deprecated __DEPLOY_VERSION__ will be removed in 7.0 as it was never used
* @deprecated 5.3.0 will be removed in 7.0 as it was never used
*/
public $namespace;

Expand Down
12 changes: 6 additions & 6 deletions libraries/src/Event/Plugin/System/Stats/GetStatsDataEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Example:
* new GetStatsDataEvent('onEventName', ['context' => 'com_example.example']);
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
class GetStatsDataEvent extends AbstractImmutableEvent implements ResultAwareInterface
{
Expand All @@ -37,8 +37,8 @@ class GetStatsDataEvent extends AbstractImmutableEvent implements ResultAwareInt
*
* @var array
*
* @since __DEPLOY_VERSION__
* @deprecated __DEPLOY_VERSION__ will be removed in 6.0
* @since 5.3.0
* @deprecated 5.3.0 will be removed in 6.0
*/
protected $legacyArgumentsOrder = ['context'];

Expand All @@ -50,7 +50,7 @@ class GetStatsDataEvent extends AbstractImmutableEvent implements ResultAwareInt
*
* @throws \BadMethodCallException
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function __construct($name, array $arguments = [])
{
Expand All @@ -73,7 +73,7 @@ public function __construct($name, array $arguments = [])
*
* @return string
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
protected function onSetContext(string $value): string
{
Expand All @@ -85,7 +85,7 @@ protected function onSetContext(string $value): string
*
* @return string
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
public function getContext(): string
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Event/SampleData/GetOverviewEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Cass for Sample data events
*
* @since __DEPLOY_VERSION__
* @since 5.3.0
*/
class GetOverviewEvent extends SampleDataEvent implements ResultAwareInterface
{
Expand Down
Loading

0 comments on commit 6676f74

Please sign in to comment.