Re: Properly handling multiple constructors.
| From: | Richard Quadling | Date: | Wed, 24 Mar 2010 16:06:54 +0000 |
| Subject: | Re: Properly handling multiple constructors. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303331@lists.php.net to get a copy of this message | ||
On 24 March 2010 15:51, Robert Cummings <robert@interjinn.com> wrote:
> Yes you can do that also, you seemed to want constructors though :) As for
> misused... variable parameters with mixed types is common enough that I
> wouldn't call it misuse. It's succinct and solves a problem. Look at the
> printf() family of functions.
As multiple constructors were a no-go, I wanted an alternative. As I'm
working on this, I'm getting feedback from other people. The connector
needs to be a singleton - this is currently missing from the original
app. Something I wasn't told! (Well, maybe someone may have mentioned
it once). The static "constructors" (for that is what they end up
doing) along with the appropriate singleton logic would seem to
suffice and be a perfect match.
Thanks for all your help.
I'm trying to learn ZF as well as port this unfinished app.
Regards,
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling