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

Class: Net_SMS

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

Class Overview


Net_SMS Class


Author(s):

Methods


Child classes:

Net_SMS_sms2email_http
Net_SMS_sms2email_http Class implements the HTTP API for accessing the sms2email (www.sms2email.com) SMS gateway.
Net_SMS_win_http
Net_SMS_win_http Class implements the HTTP API for accessing the WIN (www.winplc.com) SMS gateway.
Net_SMS_generic_smtp
Generic e-mail based SMS driver
Net_SMS_vodafoneitaly_smtp
Net_SMS_vodafoneitaly_smtp Class implements the SMTP API for accessing the Vodafone Italy SMS gateway. Use of this gateway requires an email account with Vodafone Italy (www.190.it).
Net_SMS_textmagic_http
Net_SMS_textmagic_http Class implements the HTTP API for accessing the TextMagic (api.textmagic.com) SMS gateway.
Net_SMS_generic_smpp
SMPP based SMS driver.
Net_SMS_clickatell_http
Net_SMS_clickatell_http Class implements the HTTP API for accessing the Clickatell (www.clickatell.com) SMS gateway.

Inherited Variables

Inherited Methods


Class Details

[line 19]
Net_SMS Class

Copyright 2003-2009 The Horde Project (http://www.horde.org/)

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

$Horde: framework/Net_SMS/SMS.php,v 1.25 2009/01/06 17:49:34 jan Exp $



[ Top ]


Method Detail

__construct (Constructor)   [line 35]

Net_SMS __construct( array $params)

Constructor
  • Access: public

Overridden in child classes as:

Net_SMS_sms2email_http::__construct()
Net_SMS_win_http::__construct()
Net_SMS_generic_smtp::__construct()
Constructor.
Net_SMS_vodafoneitaly_smtp::__construct()
Constructor.
Net_SMS_textmagic_http::__construct()
Net_SMS_generic_smpp::__construct()
Constructor.
Net_SMS_clickatell_http::__construct()

Parameters:

array   $params   —  Any parameters needed for this gateway driver.

[ Top ]

authenticate   [line 67]

mixed authenticate( )

Authenticates against the gateway if required.
  • Return: True on success or PEAR Error on failure.

[ Top ]

getBalance   [line 190]

integer getBalance( )

If the current driver has a credit capability, queries the gateway for a credit balance and returns the value.
  • Return: Value indicating available credit or null if not supported.

[ Top ]

getError   [line 232]

mixed getError( integer $error, [ $error_text = ''], string $text)

Returns a string representation of an error code.
  • Return: A textual message corresponding to the error code or a PEAR Error if passed an existing error text.
  • Todo: Check which of these are actually required and trim down the list.
  • Access: public

Overridden in child classes as:

Net_SMS_sms2email_http::getError()
Returns a string representation of an error code.
Net_SMS_win_http::getError()
Returns a string representation of an error code.
Net_SMS_textmagic_http::getError()
Returns a string representation of an error code.
Net_SMS_clickatell_http::getError()
Returns a string representation of an error code.

Parameters:

integer   $error   —  The error code to look up.
string   $text   —  An existing error text to use to raise a PEAR Error.
   $error_text   — 

[ Top ]

hasCapability   [line 54]

mixed hasCapability( string $capability)

Query the current Gateway object to find out if it supports the given capability.
  • Return: Whether or not the capability is supported or any other value that the capability wishes to report.

Parameters:

string   $capability   —  The capability to test for.

[ Top ]

send   [line 91]

mixed send( array $message)

Sends a message to one or more recipients. Hands off the actual sending to the gateway driver.
  • Return: True on success or PEAR Error on failure.
  • Access: public

Parameters:

array   $message   —  The message to be sent, which is composed of:
                          id   - A unique ID for the message;
                          to   - An array of recipients;
                          text - The text of the message;

[ Top ]

_send   [line 215]

array _send( array $message, array $to)

This function does the actual sending of the message.
  • Return: An array with the success status and additional information.
  • Access: protected

Overridden in child classes as:

Net_SMS_win_http::_send()
This function does the actual sending of the message.
Net_SMS_vodafoneitaly_smtp::_send()
This function does the actual sending of the message.

Parameters:

array   $message   —  The array containing the message and its send parameters.
array   $to   —  The recipients.

[ Top ]


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