dolibarr  7.0.0-beta
Public Member Functions | List of all members
CSMSFile Class Reference

Class to send SMS Usage: $smsfile = new CSMSFile($subject,$sendto,$replyto,$message,$filepath,$mimetype,$filename,$cc,$ccc,$deliveryreceipt,$msgishtml,$errors_to); $smsfile->sendfile();. More...

Public Member Functions

 __construct ($to, $from, $msg, $deliveryreceipt=0, $deferred=0, $priority=3, $class=1)
 CSMSFile. More...
 
 sendfile ()
 Send sms that was prepared by constructor. More...
 
 dump_sms ()
 Write content of a SendSms request into a dump file (mode = all) Used for debugging. More...
 
 dump_sms_result ($result)
 Write content of a SendSms result into a dump file (mode = all) Used for debugging. More...
 

Detailed Description

Class to send SMS Usage: $smsfile = new CSMSFile($subject,$sendto,$replyto,$message,$filepath,$mimetype,$filename,$cc,$ccc,$deliveryreceipt,$msgishtml,$errors_to); $smsfile->sendfile();.

Definition at line 35 of file CSMSFile.class.php.

Constructor & Destructor Documentation

CSMSFile::__construct (   $to,
  $from,
  $msg,
  $deliveryreceipt = 0,
  $deferred = 0,
  $priority = 3,
  $class = 1 
)

CSMSFile.

Parameters
string$toRecipients SMS
string$fromSender SMS
string$msgMessage
int$deliveryreceiptNot used
int$deferredDeferred or not
int$priorityPriority
int$classClass

Definition at line 59 of file CSMSFile.class.php.

References dol_syslog().

Member Function Documentation

CSMSFile::dump_sms ( )

Write content of a SendSms request into a dump file (mode = all) Used for debugging.

Returns
void

Definition at line 201 of file CSMSFile.class.php.

Referenced by sendfile().

CSMSFile::dump_sms_result (   $result)

Write content of a SendSms result into a dump file (mode = all) Used for debugging.

Parameters
int$resultResult of sms sending
Returns
void

Definition at line 231 of file CSMSFile.class.php.

Referenced by sendfile().

CSMSFile::sendfile ( )

Send sms that was prepared by constructor.

Returns
boolean True if sms sent, false otherwise

Definition at line 94 of file CSMSFile.class.php.

References dol_include_once(), dol_print_error(), dol_syslog(), dump_sms(), and dump_sms_result().


The documentation for this class was generated from the following file: