Where do you find the replacement functions for deprecated ones?

Open to all! Ask other shopowners for help.
Post Reply
gsmiley007
Member
Posts: 82
Joined: Sun Mar 14, 2021 9:28 pm
Phoenix Version:
Has thanked: 9 times
Been thanked: 2 times

Where do you find the replacement functions for deprecated ones?

Post by gsmiley007 »

This is Raiwa's list, but there are still a lot not listed there.
https://docs.google.com/spreadsheets/d/ ... edit#gid=0

Example: tep_get_country_list

Thanks


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Where do you find the replacement functions for deprecated ones?

Post by ecartz »

Start at GitHub and do a search for the function name in that repository. That takes you to the search results page. On that page, you should be able to see the

Code: Select all

    trigger_error('The tep_get_country_list function has been deprecated.', E_USER_DEPRECATED);
Click in to see it in the file. There you can see that the very next line is

Code: Select all

    return Country::draw_menu($name, $selected, phoenix_normalize($parameters));
Often, but not in this case, you will then be able to click on the replacement (draw_menu here) and it will show you places where it is used. You can then use Blame to find when the change was made and see what changed.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Where do you find the replacement functions for deprecated ones?

Post by raiwa »

ecartz wrote: Sat Aug 07, 2021 5:16 amand it will show you places where it is used. You can then use Blame to find when the change was made and see what changed.
… and add the missing function to the cheat set. :D
Don’t forget to add your user name.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
gsmiley007
Member
Posts: 82
Joined: Sun Mar 14, 2021 9:28 pm
Phoenix Version:
Has thanked: 9 times
Been thanked: 2 times

Re: Where do you find the replacement functions for deprecated ones?

Post by gsmiley007 »

thanks
GdNico
Member
Posts: 18
Joined: Tue Jul 20, 2021 8:43 pm
Phoenix Version: v1.1.0.1
Has thanked: 2 times
Been thanked: 4 times

Re: Where do you find the replacement functions for deprecated ones?

Post by GdNico »

Hi

Could you explain why some functions are deprecated?
(It's just to understand...)

Thanks
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Where do you find the replacement functions for deprecated ones?

Post by burt »

GdNico wrote: Tue Aug 31, 2021 3:15 pm Hi

Could you explain why some functions are deprecated?
(It's just to understand...)

Thanks
Modernisation of Codebase would be one of the main reasons.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply