dolibarr 19.0.4
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->socid=...; $smsfile->contact_id=...; $smsfile->member_id=...; $smsfile->fk_project=...; $smsfile->sendfile();. More...

Public Member Functions

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

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

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 86 of file CSMSFile.class.php.

References dol_syslog(), and getDolGlobalString().

Member Function Documentation

◆ dump_sms()

CSMSFile::dump_sms ( )

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

Returns
void

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

References dolChmod().

Referenced by sendfile().

◆ dump_sms_result()

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 249 of file CSMSFile.class.php.

References dolChmod().

Referenced by sendfile().

◆ sendfile()

CSMSFile::sendfile ( )

Send sms that was prepared by constructor.

Returns
boolean True if sms sent, false otherwise

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

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


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