PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
30 Sep 2024

Summary of Changes

In a time far far away, someone thought it might be a good idea to introduce an indirection in the view to get the data from the model by adding AbstractView::get(), which retrieves the model and then runs get<Parameter>() on the model. This removes any chance of typehinting, etc. and makes everything unnecessarily complex, so we are deprecating this method with this PR.

The new way hence forth shall be for example:

    public function display($tpl = null)
    {
        $model = $this->getModel();
        $this->items = $model->getItems();

        parent::display($tpl);
    }

Testing Instructions

Codereview

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: joomla/Manual#318

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 30 Sep 2024
avatar Hackwar Hackwar - change - 30 Sep 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2024
Category Libraries
avatar laoneo
laoneo - comment - 2 Oct 2024

Can you make here the manual entry as well?

avatar Hackwar Hackwar - change - 3 Oct 2024
The description was changed
avatar Hackwar Hackwar - edited - 3 Oct 2024
avatar Hackwar
Hackwar - comment - 3 Oct 2024

The PR for manual.joomla.org has been created and linked. The question is how to get all the occurences of this in docs.joomla.org removed? Since there are plans on changing docs.joomla.org, should we change it there now?

avatar Hackwar Hackwar - change - 3 Oct 2024
Labels Added: PR-5.3-dev
avatar Hackwar
Hackwar - comment - 3 Oct 2024

I added a deprecation trigger to the method.

avatar laoneo laoneo - change - 5 Oct 2024
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-10-05 11:23:07
Closed_By laoneo
avatar laoneo laoneo - close - 5 Oct 2024
avatar laoneo laoneo - merge - 5 Oct 2024
avatar laoneo
laoneo - comment - 5 Oct 2024

Thanks!

Add a Comment

Login with GitHub to post a comment