Service/DeveloperGarden/Request/SendSms/SendSmsAbstract.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- DeveloperGarden
- Version
- $Id: SendSmsAbstract.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
- Parent(s)
- \Zend_Service_DeveloperGarden_Request_RequestAbstract
- Children
- \Zend_Service_DeveloperGarden_Request_SendSms_SendFlashSMS
- \Zend_Service_DeveloperGarden_Request_SendSms_SendSMS
- \Zend_Service_DeveloperGarden_Request_SmsValidation_SendValidationKeyword
- Author
- Marco Kaiser
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

integer $_smsLength = 153the counter for increasing message count if more than this 160 chars we send a 2nd or counting sms message
153Details- Type
- integer

array $_specialChars = array('|', '^', '{', '}', '[', ']', '~', '\\', "\n")array of special chars that are used for counting message length
array('|', '^', '{', '}', '[', ']', '~', '\\', "\n")Details- Type
- array

integer $environment = nullenvironment value
Inherited from: \Zend_Service_DeveloperGarden_Request_RequestAbstract::$$environmentnullDetails- Type
- integer
- Inherited_from
- \Zend_Service_DeveloperGarden_Request_RequestAbstract::$$environment

string $number = nullthe number or numbers to receive this sms
nullDetails- Type
- string
Methods

__construct(integer $environment) : \Zend_Service_DeveloperGarden_Request_RequestAbstractconstructor give them the environment
Inherited from: \Zend_Service_DeveloperGarden_Request_RequestAbstract::__construct()| Name | Type | Description |
|---|---|---|
| $environment | integer |
| Type | Description |
|---|---|
| \Zend_Service_DeveloperGarden_Request_RequestAbstract |

getEnvironment() : integerthe current configured environment value
Inherited from: \Zend_Service_DeveloperGarden_Request_RequestAbstract::getEnvironment()| Type | Description |
|---|---|
| integer |

getMessageCount() : integerreturns the count of sms messages that would be send
| Type | Description |
|---|---|
| integer |

getSmsType() : integerreturns the sms type currently we have 1 = Sms 2 = FlashSms
| Type | Description |
|---|---|
| integer |

setAccount(int $account) : \Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstractsets a new accounts
| Name | Type | Description |
|---|---|---|
| $account | int | the $account to set |
| Type | Description |
|---|---|
| \Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract |

setEnvironment(integer $environment) : \Zend_Service_DeveloperGarden_Request_RequestAbstractsets a new moduleId
Inherited from: \Zend_Service_DeveloperGarden_Request_RequestAbstract::setEnvironment()| Name | Type | Description |
|---|---|---|
| $environment | integer |
| Type | Description |
|---|---|
| \Zend_Service_DeveloperGarden_Request_RequestAbstract |

setMessage(string $message) : \Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstractsets a new message
| Name | Type | Description |
|---|---|---|
| $message | string |
| Type | Description |
|---|---|
| \Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract |
| Exception | Description |
|---|---|
| \Zend_Service_DeveloperGarden_Request_Exception |

setNumber(string $number) : \Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstractset a new number(s)
| Name | Type | Description |
|---|---|---|
| $number | string |
| Type | Description |
|---|---|
| \Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract |
| Exception | Description |
|---|---|
| \Zend_Service_DeveloperGarden_Request_Exception |

setOriginator(string $originator) : \Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstractthe originator name
| Name | Type | Description |
|---|---|---|
| $originator | string |
| Type | Description |
|---|---|
| \Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract |