I'm trying to wrap my head around the Search class so thank you in advance for any pointers you may send my way.
I'm updating an old add-on that uses the deprecated parse string function: tep_parse_search_string($search_str = '', &$objects)
Of course, that has since been replaced by the Search class but I don't see many examples of this class being used.
Would anyone have an idea how to insert the "objects" parameter in the new Search class....or if I even need to? Within the old add-on, I'm updating, both the search_str and objects parameters have a variable in place.
How To Use the Search class
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: How To Use the Search class
https://github.com/CE-PhoenixCart/Phoen ... dbb882ce63
$keywords passed in => out come $search_keywords
Code: Select all
$search_keywords = Search::build($keywords)-
levelup
- Member
- Posts: 15
- Joined: Tue Mar 30, 2021 6:16 pm
- Phoenix Version:
- Has thanked: 7 times
- Been thanked: 1 time
Re: How To Use the Search class
Yes, I saw this! I appreciate your confirmation that I was on the right track.ecartz wrote: ↑Thu Feb 13, 2025 5:13 am https://github.com/CE-PhoenixCart/Phoen ... dbb882ce63
$keywords passed in => out come $search_keywordsCode: Select all
$search_keywords = Search::build($keywords)
Take care and thank you!