joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[6.1] Add getData and supportCheckin methods to Table class

Open joomdonation opened this issue 1 month ago • 0 comments

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

joomdonation avatar Dec 04 '25 10:12 joomdonation