Alternative to getuserstatefromrequest

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
fizznotch
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Sat Oct 25, 2008 7:50 pm

Alternative to getuserstatefromrequest

Post by fizznotch » Tue May 15, 2018 3:39 pm

I just noticed that getUserStateFromRequest() is deprecated and wondered what I should use instead

mbabker
Joomla! Hero
Joomla! Hero
Posts: 2176
Joined: Sun Feb 28, 2010 8:26 pm

Re: Alternative to getuserstatefromrequest

Post by mbabker » Tue May 15, 2018 3:50 pm

Umm, no it's not.

You might be seeing it as deprecated in the context of the deprecated JApplication class, but in the current Joomla\CMS\Application\CMSApplication class it definitely is not. https://api.joomla.org/cms-3/classes/Jo ... romRequest is the current class, https://api.joomla.org/cms-3/classes/JA ... romRequest is the deprecated class.
So long and thanks for all the fish.

Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e ... 3607f89281

fizznotch
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Sat Oct 25, 2008 7:50 pm

Re: Alternative to getuserstatefromrequest

Post by fizznotch » Tue May 15, 2018 4:32 pm

ah! thanks for the quick explanation - I had been looking in the api docs and didn't realize that it was the parent class that was causing it to be deprecated.


Post Reply

Return to “Joomla! 3.x Coding”