Class Net_SMS_generic_smpp

Description

SMPP based SMS driver.

This driver interfaces with the email-to-sms gateways provided by many carriers, particularly those based in the U.S.

$Horde: framework/Net_SMS/SMS/generic_smpp.php,v 1.2.2.1 2007/12/20 13:49:23 jan Exp $

Copyright 2005-2007 WebSprockets, LLC

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /Net_SMS/SMS/generic_smpp.php (line 25)

Net_SMS
   |
   --Net_SMS_generic_smpp
Variable Summary
Method Summary
 Net_SMS_generic_smpp Net_SMS_generic_smpp ([array $params = null])
 mixed accept ( &$obj)
 array getInfo ()
 array getParams ()
 void _authenticate ()
Variables
array $capabilities = array(
'auth' => true,
'batch' => false,
'multi' => false,
'receive' => false,
'credit' => false,
'addressbook' => false,
'lists' => false
)
(line 32)

Capabilities of this driver

Inherited Variables

Inherited from Net_SMS

Net_SMS::$_auth
Methods
Constructor Net_SMS_generic_smpp (line 69)

Constructor.

Net_SMS_generic_smpp Net_SMS_generic_smpp ([array $params = null])
  • array $params: Parameters.
accept (line 188)

Accepts an object.

  • return: Net_SMPP_Client::accept()'s return value
  • see: Net_SMPP_Client::accept()
mixed accept ( &$obj)
  • &$obj
getDefaultSendParams (line 198)

Returns a list of parameters specific for this driver.

  • return: Default sending parameters.
array getDefaultSendParams ()

Redefinition of:
Net_SMS::getDefaultSendParams()
Returns send parameters for a gateway from the driver subclass getDefaultSendParams()function. These are parameters which are available to the user during sending, such as setting a time for delivery, or type of SMS (normal text or flash), or source address, etc.
getInfo (line 83)

Identifies this driver.

  • return: Driver info.
array getInfo ()
getParams (line 96)

Get required paramaters

  • return: Array of required parameters.
array getParams ()
_authenticate (line 162)

Authenticates with the SMSC.

This method connects to the SMSC (if not already connected) and authenticates with the bind_transmitter command (if not already bound).

  • access: protected
void _authenticate ()

Inherited Methods

Inherited From Net_SMS

 Net_SMS::Net_SMS()
 Net_SMS::authenticate()
 Net_SMS::factory()
 Net_SMS::getBalance()
 Net_SMS::getDefaultSendParams()
 Net_SMS::getDrivers()
 Net_SMS::getGatewayInfo()
 Net_SMS::getGatewayParams()
 Net_SMS::hasCapability()
 Net_SMS::send()
 Net_SMS::singleton()

Documentation generated on Sun, 30 Jan 2011 05:17:49 +0000 by phpDocumentor 1.4.3