FormSms
class FormSms (View source)
Class permettant la generation du formulaire d'envoi de Sms Usage: $formsms = new FormSms($db) $formsms->proprietes=1 ou chaine ou tableau de valeurs $formsms->show_form() affiche le formulaire
Properties
| DoliDB | $db | ||
| int | $fromid | ||
| string | $fromname | ||
| string | $fromsms | ||
| string | $fromtype | ||
| string | $replytoname | ||
| string | $replytomail | ||
| string | $toname | ||
| string | $tomail | ||
| int<0, 1> | $withsubstit | ||
| int<0, 1> | $withfrom | ||
| int<0, 1>|string[] | $withto | ||
| int<0, 1> | $withtopic | ||
| int<0, 1> | $withbody | ||
| int | $withtosocid | ||
| int<0, 1> | $withfromreadonly | ||
| int<0, 1> | $withreplytoreadonly | ||
| int<0, 1> | $withtoreadonly | ||
| int<0, 1> | $withtopicreadonly | ||
| int<0, 1> | $withbodyreadonly | ||
| int<0, 1> | $withcancel | ||
| array<string, string> | $substit | ||
| array{}|array{action: string, models: string, smsid: int, returnurl: string} | $param | ||
| string | $error | ||
| string[] | $errors |
Methods
__construct($db)
Constructor
void
show_form(string $morecss = 'titlefield', $showform = 1)
Show the form to input an sms.
Details
__construct($db)
Constructor
@param DoliDB $db Database handler
void
show_form(string $morecss = 'titlefield', $showform = 1)
Show the form to input an sms.