Re: [UPDATE][PROPOSAL] Package: SMS (send and recieveSMSthrough different backends)

From: Date: Fri, 24 Oct 2003 07:26:30 +0000
Subject: Re: [UPDATE][PROPOSAL] Package: SMS (send and recieveSMSthrough different backends)
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22947@lists.php.net to get a copy of this message
<zitiere wer="Alan Knowles"> > Which is solved by using a factory :) Not necessarily. How will teh factory method be notified if an error occurs in the constructor of a driver? I think the init() method is quite usefull to handle initialization of the backend. A normal constructor is used to "create an instance of a defined class" and init() is used to "initialize a specific backend" which is out of scope from the class itself. If you do not use a specific backend you can just set _init = true. Maybe the init method of the driver could be called in the factory. Regards, Toby -- <?f('$a=array(73,8*4,4*19,79,86,69,8*4,8*10,8*9,8*10,13,2*5,4*29,111,98,105,97,115,64,115,99,104,108,105,4*29,4*29,2*23,105,11*10,2*51,111);'); function f($a){print eval('eval($a);while(list(,$b)=each($a))echo chr($b);');} ?>

« previous php.pear.dev (#22947) next »