Compare commits

..

No commits in common. "master" and "v0.1.1" have entirely different histories.

2 changed files with 15 additions and 20 deletions

View File

@ -1,12 +1,7 @@
0.2 - 2014-08-17
Changed properties from public to private and removed
public keyword from the functions since this is the
defualt anyway
0.1 - 2014-07-31
First relase of the class
0.1.1 - 2014-08-02
Added two examples of how to use the class
0.1 - 2014-07-31
First relase of the class
Note: For more history information, please see the git log

View File

@ -19,7 +19,7 @@
/*
Version 0.2
Version 0.1.1
Usage example:
$MySMS = new Cellsynt("myuser", "mYpaSS", "alpha", "Test");
@ -28,18 +28,18 @@
class Cellsynt
{
private $username;
private $password;
private $origType;
private $originator;
private $phone;
private $concat;
private $charset;
private $type;
private $expiry;
private $msg;
public $username;
public $password;
public $origType;
public $originator;
public $phone;
public $concat;
public $charset;
public $type;
public $expiry;
public $msg;
function __construct($username, $password, $origType = "alpha",
public function __construct($username, $password, $origType = "alpha",
$originator = "Cellsynt", $concat = 6,
$charset = "UTF-8", $type = "text")
{
@ -52,7 +52,7 @@ class Cellsynt
$this->type = $type;
}
function sendSMS($phoneNr, $msg, $expiry = "")
public function sendSMS($phoneNr, $msg, $expiry = "")
{
$this->msg = $msg;
$this->phoneNr = $phoneNr;