Re: [PHP] class structure.

2005-01-20 Thread Richard Lynch
Dustin Krysak wrote: > var $local; > var $query_rs_biz; > var $rs_biz; You never actually use these as properties on the object, only as variables within a single function. So don't put them here. Only put stuff here that you pass between functions or which you want other scripts to be able to a

[PHP] class structure.

2005-01-19 Thread Dustin Krysak
Hi there, I am pretty new to writing classes (and pretty new to PHP itself), but I was wondering what was the best format for constructing classes. Now for example, i have written 2 versions of a class that accomplish the exact same thing. And I was just wondering if there are any advantages to