diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index 5895ce23576..9cd52189991 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -1,7 +1,7 @@
- * Copyright (C) 2005-2012 Regis Houssin
- * Copyright (C) 2010-2011 Juanjo Menent
+ * Copyright (C) 2005-2012 Regis Houssin
+ * Copyright (C) 2010-2011 Juanjo Menent
* Copyright (C) 2015-2017 Marcos GarcĂa
* Copyright (C) 2015-2017 Nicolas ZABOURI
*
@@ -36,54 +36,57 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/html.form.class.php';
class FormMail extends Form
{
/**
- * @var DoliDB Database handler.
- */
- public $db;
+ * @var DoliDB Database handler.
+ */
+ public $db;
- var $withform; // 1=Include HTML form tag and show submit button, 0=Do not include form tag and submit button, -1=Do not include form tag but include submit button
+ public $withform; // 1=Include HTML form tag and show submit button, 0=Do not include form tag and submit button, -1=Do not include form tag but include submit button
- var $fromname;
- var $frommail;
- var $replytoname;
- var $replytomail;
- var $toname;
- var $tomail;
- var $trackid;
+ public $fromname;
+ public $frommail;
+ public $replytoname;
+ public $replytomail;
+ public $toname;
+ public $tomail;
+ public $trackid;
+
+ public $withsubstit; // Show substitution array
+ public $withfrom;
- var $withsubstit; // Show substitution array
- var $withfrom;
/**
* @var int
* @deprecated Fill withto with array before calling method.
* @see withto
*/
public $withtosocid;
+
/**
* @var int|int[]
*/
public $withto; // Show recipient emails
- var $withtofree; // Show free text for recipient emails
- var $withtocc;
- var $withtoccc;
- var $withtopic;
- var $withfile; // 0=No attaches files, 1=Show attached files, 2=Can add new attached files
- var $withmaindocfile; // 1=Add a checkbox "Attach also main document" for mass actions (checked by default), -1=Add checkbox (not checked by default)
- var $withbody;
- var $withfromreadonly;
- var $withreplytoreadonly;
- var $withtoreadonly;
- var $withtoccreadonly;
- var $withtocccreadonly;
- var $withtopicreadonly;
- var $withfilereadonly;
- var $withdeliveryreceipt;
- var $withcancel;
- var $withfckeditor;
+ public $withtofree; // Show free text for recipient emails
+ public $withtocc;
+ public $withtoccc;
+ public $withtopic;
+ public $withfile; // 0=No attaches files, 1=Show attached files, 2=Can add new attached files
+ public $withmaindocfile; // 1=Add a checkbox "Attach also main document" for mass actions (checked by default), -1=Add checkbox (not checked by default)
+ public $withbody;
- var $substit=array();
- var $substit_lines=array();
- var $param=array();
+ public $withfromreadonly;
+ public $withreplytoreadonly;
+ public $withtoreadonly;
+ public $withtoccreadonly;
+ public $withtocccreadonly;
+ public $withtopicreadonly;
+ public $withfilereadonly;
+ public $withdeliveryreceipt;
+ public $withcancel;
+ public $withfckeditor;
+
+ public $substit=array();
+ public $substit_lines=array();
+ public $param=array();
public $withtouser=array();
public $withtoccuser=array();
@@ -1395,12 +1398,12 @@ class FormMail extends Form
class ModelMail
{
public $id;
-
+
/**
- * @var string proper name for given parameter
- */
- public $label;
-
+ * @var string proper name for given parameter
+ */
+ public $label;
+
public $topic;
public $content;
public $content_lines;