How to use my own library multiple times |
Hi,
for an price calculator i want to create my own library. The calculator gets 2 parameters, an product-object and an rate-object. For multiple products (e.g. in a list) i have to call this lib multiple times. what is the right way in order to use the library or is there a better way for doing that? Normally i would use $a = new PriceCalculator(Product1,Rate1); $b = new PriceCalculator(Product2,Rate1); |
Messages In This Thread |
How to use my own library multiple times - by groovebird - 11-02-2015, 09:46 AM
RE: How to use my own library multiple times - by PaulD - 11-02-2015, 11:45 AM
RE: How to use my own library multiple times - by groovebird - 11-02-2015, 12:22 PM
RE: How to use my own library multiple times - by PaulD - 11-02-2015, 12:34 PM
RE: How to use my own library multiple times - by groovebird - 11-02-2015, 12:43 PM
RE: How to use my own library multiple times - by ciadmin - 11-02-2015, 01:49 PM
RE: How to use my own library multiple times - by groovebird - 11-02-2015, 02:05 PM
RE: How to use my own library multiple times - by cartalot - 11-02-2015, 03:19 PM
RE: How to use my own library multiple times - by groovebird - 11-02-2015, 03:37 PM
|