Passing values to class
Brought to you by:
mikikg
I was wondering if a future version would allow you to
pass the parameters for API from within our own code.
For example, I modify your class by renaming the
function "SMS" to "Init_SMS", then code as follows:
$mysms = new sms();
$mysms->api_id = "nnnnnnnnn";
$mysms->user = "XXXXXX";
$mysms->password = "YYYYYYY";
$mysms->use_ssl = true;
$mysms->sending_method = "curl";
$mysms->init_sms();
This allows me to code several applications using the
same copy of your class.
Logged In: YES
user_id=896574
Would it be better to use 'get' and 'set' methods instead of
accessing the variables directly?