From 9133d97e337bc2a44cb53295144e94a7025ab02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 15 Oct 2018 21:40:27 +0200 Subject: [PATCH] add errors def in htmlformsms --- htdocs/core/class/html.formsms.class.php | 74 +++++++++++++----------- 1 file changed, 40 insertions(+), 34 deletions(-) diff --git a/htdocs/core/class/html.formsms.class.php b/htdocs/core/class/html.formsms.class.php index a04da7caf08..4ef6208723d 100644 --- a/htdocs/core/class/html.formsms.class.php +++ b/htdocs/core/class/html.formsms.class.php @@ -1,20 +1,21 @@ - * Copyright (C) 2010 Juanjo Menent -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -*/ +/* Copyright (C) 2005-2011 Laurent Destailleur + * Copyright (C) 2010 Juanjo Menent + * Copyright (C) 2018 Frédéric France + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ /** * \file htdocs/core/class/html.formsms.class.php @@ -37,33 +38,38 @@ class FormSms */ public $db; - var $fromname; - var $fromsms; - var $replytoname; - var $replytomail; - var $toname; - var $tomail; + public $fromname; + public $fromsms; + public $replytoname; + public $replytomail; + public $toname; + public $tomail; - var $withsubstit; // Show substitution array - var $withfrom; - var $withto; - var $withtopic; - var $withbody; + public $withsubstit; // Show substitution array + public $withfrom; + public $withto; + public $withtopic; + public $withbody; - var $withfromreadonly; - var $withreplytoreadonly; - var $withtoreadonly; - var $withtopicreadonly; - var $withcancel; + public $withfromreadonly; + public $withreplytoreadonly; + public $withtoreadonly; + public $withtopicreadonly; + public $withcancel; - var $substit=array(); - var $param=array(); + public $substit=array(); + public $param=array(); /** * @var string Error code (or message) */ public $error=''; + /** + * @var string[] Array of error strings + */ + public $errors=array(); + /** * Constructor