Net_SMS
[ class tree: Net_SMS ] [ index: Net_SMS ] [ all elements ]

Class: Net_SMS_generic_smpp

Source Location: /Net_SMS-0.2.1/Net/SMS/generic_smpp.php

Class Overview

Net_SMS
   |
   --Net_SMS_generic_smpp

SMPP based SMS driver.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Net_SMS

Net_SMS::__construct()
Constructor
Net_SMS::authenticate()
Authenticates against the gateway if required.
Net_SMS::getBalance()
If the current driver has a credit capability, queries the gateway for a credit balance and returns the value.
Net_SMS::getError()
Returns a string representation of an error code.
Net_SMS::hasCapability()
Query the current Gateway object to find out if it supports the given capability.
Net_SMS::send()
Sends a message to one or more recipients. Hands off the actual sending to the gateway driver.
Net_SMS::_send()
This function does the actual sending of the message.

Class Details

[line 24]
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.1 2006/08/28 09:52:10 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.



[ Top ]


Class Variables

$capabilities = array(
        'auth'        => true,
        'batch'       => false,
        'multi'       => false,
        'receive'     => false,
        'credit'      => false,
        'addressbook' => false,
        'lists'       => false
    )

[line 31]

Capabilities of this driver

Type:   array


[ Top ]



Method Detail

__construct (Constructor)   [line 68]

Net_SMS_generic_smpp __construct( array $params, Net_SMPP_Client $client)

Constructor.
  • Access: public

Overrides Net_SMS::__construct() (Constructor)

Parameters:

array   $params   —  Parameters.
Net_SMPP_Client   $client   — 

[ Top ]

accept   [line 184]

mixed accept( &$obj)

Accepts an object.
  • Return: Net_SMPP_Client::accept()'s return value
  • See: Net_SMPP_Client::accept()

Parameters:

   &$obj   — 

[ Top ]

getDefaultSendParams   [line 194]

array getDefaultSendParams( )

Returns a list of parameters specific for this driver.
  • Return: Default sending parameters.

[ Top ]

getInfo   [line 79]

array getInfo( )

Identifies this driver.
  • Return: Driver info.

[ Top ]

getParams   [line 92]

array getParams( )

Get required paramaters
  • Return: Array of required parameters.

[ Top ]

_authenticate   [line 158]

void _authenticate( )

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

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:57:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.