[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Net/SMS/ -> generic_smtp.php (sommaire)

(pas de description)

Poids: 200 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Net_SMS_generic_smtp:: (7 méthodes):
  getInfo()
  getParams()
  _send()
  _getDest()
  getAddressTemplate()
  addCarrier()
  getDefaultSendParams()


Classe: Net_SMS_generic_smtp  - X-Ref

Generic e-mail based SMS driver

Copyright 2005-2006 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.

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_smtp.php,v 1.8.2.4 2006/07/13 08:57:45 jan Exp $

getInfo()   X-Ref
Identifies this driver.

return: array  Driver info.

getParams()   X-Ref
Returns required parameters.

return: array  Array of required parameters.

_send(&$message, $to)   X-Ref
Sends the message.

You may also specify the carrier with the 'carrier' key of the message
to avoid creating a new instance for each carrier, or fiddling with the
parameters.

param: array $message  Message to send.
param: string $to      Destination phone number.
return: array  An array with the success status and additional

_getDest($phone, $carrier = null)   X-Ref
Returns destination e-mail address.

param: string $phone  Phone number to send to.
return: string  Destination address.

getAddressTemplate($carrier)   X-Ref
Returns the address template for a carrier.

param: string $carrier  Carrier name.
return: mixed  Address template or false.

addCarrier($name, $addr)   X-Ref
Adds a carrier to the list.

Address templates need to be in the form of an email address, with a
'%s' representing the place where the destination phone number goes.

param: string $name  Carrier name.
param: string $addr  Address template.

getDefaultSendParams()   X-Ref
Returns a list of parameters specific for this driver.

return: array Default sending parameters.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7