Initial commit
This commit is contained in:
commit
aa70a9583a
31
class.php
Normal file
31
class.php
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
class CellSynt
|
||||||
|
{
|
||||||
|
public $username;
|
||||||
|
public $password;
|
||||||
|
public $origType;
|
||||||
|
public $originator;
|
||||||
|
public $msg;
|
||||||
|
|
||||||
|
public function __construct($username, $password, $origType = "alpha",
|
||||||
|
$originator = "Cellsynt")
|
||||||
|
{
|
||||||
|
$this->username = $username;
|
||||||
|
$this->password = $password;
|
||||||
|
$this->origType = $origType;
|
||||||
|
$this->originator = $originator;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function sendMsg($msg)
|
||||||
|
{
|
||||||
|
$this->msg = $msg;
|
||||||
|
return "User: $this->username, Password: $this->password" .
|
||||||
|
", OrigType: $this->origType, Originator: " .
|
||||||
|
"$this->originator, MSG: $this->msg";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$SMS = new CellSynt("jake", "testpw", "numeric", "123456666");
|
||||||
|
print $SMS->sendMsg("Detta är mitt SMS!") . "\n";
|
||||||
|
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user