Class: SmsEngine
Source Location: /myphp-1.9/myphp-1.9-sms/html/controller/SmsEngine.php
Class SmsEngine
Class Overview
|
The SMS Engine for a sms messages
- Usage:
- $html = new SmsEngine($phone,$action,$width,$class,$border,$cellPadding,$cellSpacing);
- print $html->getHtml();
- Or
- SmsEngine::display($phone,$action,$width,$class,$border,$cellPadding,$cellSpacing);
Located in /myphp-1.9/myphp-1.9-sms/html/controller/SmsEngine.php [line 41]
Object
|
--Html
|
--SmsEngine
|
Properties
|
Methods
|
Inherited Properties, Constants, and Methods
Method Summary
| String |
getErrorHtml() |
Get the html, and return it as an error page |
| String |
getFormHtml() |
Get the html, and return it as a SMS Form page |
| String |
getHtml() |
Builds the html for a SMS form |
| String |
getThanksHtml() |
Get the html, and return it as a SMS Thanks page |
| boolean |
send() |
Send the SMS message |
Methods
SmsEngine SmsEngine(
[String
$phone = ''], [String
$action = ''], [String
$width = ''], [String
$class = ''], [String
$border = ''], [String
$cellPadding = ''], [String
$cellSpacing = '']
)
|
|
Constructor
Parameters:
|
String |
$phone: |
The mobile phone to send a SMS |
|
String |
$action: |
The url to go to |
|
String |
$width: |
The width of the table |
|
String |
$class: |
The css class to use |
|
String |
$border: |
The table border |
|
String |
$cellPadding: |
|
|
String |
$cellSpacing: |
|
void display(
[String
$phone = ''], [String
$action = ''], [String
$width = ''], [String
$class = ''], [String
$border = ''], [String
$cellPadding = ''], [String
$cellSpacing = '']
)
|
|
Display the html
- Usage:
- SmsEngine::display($phone,$action,$width,$class,$border,$cellPadding,$cellSpacing);
Parameters:
|
String |
$phone: |
The mobile phone to send a SMS |
|
String |
$action: |
The url to go to |
|
String |
$width: |
The width of the table |
|
String |
$class: |
The css class to use |
|
String |
$border: |
The table border |
|
String |
$cellPadding: |
|
|
String |
$cellSpacing: |
|
API Tags:
Redefinition of:
- Html::display()
- Display the html
Get the html, and return it as an error page
API Tags:
Get the html, and return it as a SMS Form page
API Tags:
Builds the html for a SMS form
API Tags:
| Return: | The result as html |
Redefinition of:
- Html::getHtml()
- Get Html
Get the html, and return it as a SMS Thanks page
API Tags:
boolean send(
[mixed
$about = ''], [String
$content = ''], String
$about,
)
|
|
Send the SMS message
Parameters:
|
String |
$about,: |
The SMS subject, if any |
|
String |
$content: |
The SMS information, if any |
API Tags:
| Return: | The result, true if success, else false |
|
|