Feature PR-6.1-dev Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
4 Dec 2025

Pull Request for Issue # .

Summary of Changes

This pull request introduces a new utility method to the Joomla\CMS\Table\Table class:

  • getData() – returns the data of the current table record as an associative array. It is needed because developers currently lack a simple and consistent way to retrieve all field values from a Table object. They have to use workarounds such as ArrayHelper::fromObject, get_object_vars or CMSHelper getRowData, CMSHelper getDataObject. Having this method will make make it easier to receive the data from Table object.

Testing Instructions

As this is a new method, I do not really know how to give testing instructions. Maybe it would require maintainer code review?

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomdonation joomdonation - open - 4 Dec 2025
avatar joomdonation joomdonation - change - 4 Dec 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Dec 2025
Category Libraries
avatar joomdonation joomdonation - change - 5 Dec 2025
Labels Added: Feature PR-6.1-dev
avatar joomdonation joomdonation - change - 5 Dec 2025
The description was changed
avatar joomdonation joomdonation - edited - 5 Dec 2025
avatar ThomasFinnern
ThomasFinnern - comment - 9 Jan 2026

@joomdonation
To keep the form, the testing instructions may include a example how to use the code and check the expected result. Then someone may follow it up ...


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46534.

avatar joomdonation joomdonation - change - 30 Jan 2026
Title
[6.1] Add getData and supportCheckin methods to Table class
[6.1] Add getData method to Table class
avatar joomdonation joomdonation - edited - 30 Jan 2026
avatar ThomasFinnern ThomasFinnern - test_item - 30 Jan 2026 - Tested successfully
avatar ThomasFinnern
ThomasFinnern - comment - 30 Jan 2026

I have tested this item ✅ successfully on 4c71726

Using a known component i added a second line with getData and compared the result with get_object_vars. See below.

Result:

  • All Items in the sql definition of the table were the same (all items there, all values same)

Note

Attention: Manually added table items were missing. So 'getData' and 'get_object_vars' may differ in results

    // Convert to \stdClass before adding other data
    $properties = get_object_vars($table);
    $propertiesB = $table->getData();

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46534.
avatar jikubiswal jikubiswal - test_item - 31 Jan 2026 - Tested successfully
avatar jikubiswal
jikubiswal - comment - 31 Jan 2026

I have tested this item ✅ successfully on 4c71726

I have test this Applied Commit SHA: 4c71726
The getData() method has been correctly implemented in libraries/src/Table/Table.php and its behavior matches the requirements.

One small observation: the method is currently not part of TableInterface.php, which might be a good addition for complete consistency. Otherwise, the implementation is solid.

You can review the details in the


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46534.

avatar vijayholve vijayholve - test_item - 31 Jan 2026 - Tested successfully
avatar vijayholve
vijayholve - comment - 31 Jan 2026

I have tested this item ✅ successfully on 4c71726


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46534.

avatar alikon alikon - change - 31 Jan 2026
Status Pending Ready to Commit
avatar alikon
alikon - comment - 31 Jan 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46534.

Add a Comment

Login with GitHub to post a comment