Re: [PROPOSAL] Package: SMS (send and recieve SMS throughconnected cellular device)
| From: | Tobias Schlitt | Date: | Thu, 23 Oct 2003 07:14:45 +0000 |
| Subject: | Re: [PROPOSAL] Package: SMS (send and recieve SMS throughconnected cellular device) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22928@lists.php.net to get a copy of this message | ||
<zitiere wer="Alan Knowles">
> make the base class an abstract/factory - and just return
> PEAR::raiseError('Not supported'); by default..
> from what I remember most of them do:
> = construct 'driver', options
> username/password/callcenter/from_number
> - send sms
> - send multimedia sms????
> - get sms messages
Right. Thats the intial design. But eg. Gammu supports many many many
options to set for sending SMS (flashing, silent, sendernumber,...). I think
to do this in a parameter array is ok, but then the APIs of the sub classes
is not really unique.
Do you agree, that this doesn't really matter in this case?
For multimedia SMS I'll then introduce types (ringtone, picture sms, logo,...).
> of the top of my head.. I cant think of what else you would do with it
Correct. In my head, too! ;)
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);');} ?>