You are here:  » About Classes in Price Tapestry...

Support Forum



About Classes in Price Tapestry...

Submitted by exsolo on Sun, 2008-05-04 13:14 in

Can somebody help me to build a class diagram for Price Tapestry? Is everything from 'includes' folder is classes? How about attributes and functions?

Submitted by support on Sun, 2008-05-04 13:21

Hi,

The script isn't object oriented as such (where classes are typically used); but I have used a standard naming convention so you can see instantly what include file a function is in.

For example, every function in includes/tapestry.php begins "tapestry_", such as tapestry_normalise(). In terms of attributes; like the functions any global variables required by functions within each of the includes will also being with the filename and then an underscore. This way, you can safely add variables within a single file and be sure that it won't conflict with anything else!

Hope this helps,

Cheers,
David.