Hello,
Can anyone give me a link to where the tep functions are defined?
OsC seem to have deleted a LOT of old data and contributions, can't find it..
Iain
tep functions defined
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: tep functions defined
I'm not sure that I understand your question. The tep_ functions are in includes/functions and admin/includes/functions -- that's where I would say that they are "defined". They are mostly included/required from application_top.php, which in the current version means that they are system hooks in the database: https://github.com/CE-PhoenixCart/Phoen ... 114..L1142
Look for the entries with function_surface as the hooks_class. E.g. line 1117 is the first one and 1138, the last.
If you are looking for 2.3.4: https://github.com/osCommerce/oscommerc ... /functions
Or Frozen: https://github.com/CE-PhoenixCart/Phoen ... /functions
If you are looking for old add-ons/contributions/whatever, try https://old.oscommerce.com/
If none of those answer the question, please explain more about what you want to know.
Look for the entries with function_surface as the hooks_class. E.g. line 1117 is the first one and 1138, the last.
If you are looking for 2.3.4: https://github.com/osCommerce/oscommerc ... /functions
Or Frozen: https://github.com/CE-PhoenixCart/Phoen ... /functions
If you are looking for old add-ons/contributions/whatever, try https://old.oscommerce.com/
If none of those answer the question, please explain more about what you want to know.
-
Yahalimu
- Member
- Posts: 29
- Joined: Mon Oct 26, 2020 1:27 pm
- Phoenix Version: v1.0.5.0
- Has thanked: 4 times
- Been thanked: 1 time
Re: tep functions defined
Thanks ecartz.
On looking at the definitions in includes/functions I realised it was more of an mysql question.
ie. a SELECT query returns an object that needs converting, even to obtain a single value. I had assumed it returned a normal array, now I know better.
Judicial use of $SQL_RESULT->fetch_row()[0] has fixed it.
All good now thanks.
Iain
On looking at the definitions in includes/functions I realised it was more of an mysql question.
ie. a SELECT query returns an object that needs converting, even to obtain a single value. I had assumed it returned a normal array, now I know better.
Judicial use of $SQL_RESULT->fetch_row()[0] has fixed it.
All good now thanks.
Iain