Zen Cart Logo
Forums / Code Collaboration / Wrappers

Wrappers

Views: 2,547

Results 1 to 7 of 7
25 Jun 2013, 2:12 PM
#1
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Wrappers

Is there anywhere I can get a list of wrapper functions for zencart without having to dig through all the files? Many times, I do not even realize there is one available so I don't even know to look.

25 Jun 2013, 4:52 PM
#3
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Wrappers

dbltoe:

Perhaps you'll find what you are looking for here http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials

Been all over it...in general unless I have seen a wrapper used...then I do not know its there. There are so many things I have changed that should use the wrappers and do not at this point.

25 Jun 2013, 5:19 PM
#4
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Wrappers

While not the friendliest (would love to see this landing page contain all the functions found in the files), have you taken a look at: Zen Cart 1.5.0 functions? You can click on one of the files in the "functions" package and quickly see a list of available functions it supplies.

25 Jun 2013, 5:21 PM
#5
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Wrappers

lhungil:

While not the friendliest (would love to see this landing page contain all the functions found in the files), have you taken a look at: Zen Cart 1.5.0 functions? You can click on one of the files in the "functions" package and quickly see a list of available functions it supplies.

yes...but those files are found everywhere. Remember the question is not about "looking for one" its more about "not knowing one exists" so how would I know to look! lol

25 Jun 2013, 6:28 PM
#6
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Wrappers

g2ktcf:

yes...but those files are found everywhere. Remember the question is not about "looking for one" its more about "not knowing one exists" so how would I know to look! lol
I sent a link to the online Zen Cart 1.5.0 API (PHP docs) - not files. Yes I know they are organized by file (most generated API documentation will be organized by file or class). Yes I know they are not what exactly what you are looking for... But they should be a good starting point (as should the URL sent by dbltoe)!

API documentation is one of the fastest way for a developer to learn about what classes, functions, etc are available when developing 3rd party code to interact with an application (without digging through all the code in all the files).

And the answer to "not knowing one exists" is to learn about what is available! :D


P.S. I'd like to see the API updated someday (as I alluded to in the last post). But I also understand there are other higher priority tasks... Such as refactoring the Zen Cart codebase... Bug Fixes... Security Patches... New features... and of course working on new releases!

P.P.S. As the core team work on this project without charge... Maybe you would like to help by forking Zen Cart on github and donate your time to improve the documentation? Or donate some time to write a few articles on Zen Cart functions (organized how you would like)? I'm sure it would be appreciated :)

NOTE: I am not part of the core Zen Cart team. I just donate some of my time to: 1) Try helping people here on the forums and 2) Write some hopefully helpful modifications (plugins) for Zen Cart.

25 Jun 2013, 7:05 PM
#7
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Wrappers

Actually the list may have to come one way or another as I am frankly getting lost...the API is organized by FILES not by functions...heck, if I know what I am looking for...then I use the Developer's Tool (FANTASTIC ITEM BTW) to locate the functions.