diff --git a/htdocs/accountancy/class/accountingaccount.class.php b/htdocs/accountancy/class/accountingaccount.class.php index 257c2af0111..d8ad61dc7f1 100644 --- a/htdocs/accountancy/class/accountingaccount.class.php +++ b/htdocs/accountancy/class/accountingaccount.class.php @@ -46,8 +46,18 @@ class AccountingAccount extends CommonObject public $restrictiononfksoc = 1; var $db; - var $error; - var $errors; + + /** + * @var string Error code (or message) + */ + public $error=''; + + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + var $id; var $rowid; var $datec; // Creation date diff --git a/htdocs/adherents/canvas/actions_adherentcard_common.class.php b/htdocs/adherents/canvas/actions_adherentcard_common.class.php index f49d1cecb99..c452ef90665 100644 --- a/htdocs/adherents/canvas/actions_adherentcard_common.class.php +++ b/htdocs/adherents/canvas/actions_adherentcard_common.class.php @@ -43,8 +43,12 @@ abstract class ActionsAdherentCardCommon var $object; //! Error string var $error; - //! Error array - var $errors=array(); + + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); /** diff --git a/htdocs/comm/mailing/class/advtargetemailing.class.php b/htdocs/comm/mailing/class/advtargetemailing.class.php index 50d9faf0637..05052b724f0 100644 --- a/htdocs/comm/mailing/class/advtargetemailing.class.php +++ b/htdocs/comm/mailing/class/advtargetemailing.class.php @@ -31,7 +31,12 @@ class AdvanceTargetingMailing extends CommonObject var $db; //!< To store db handler var $error; //!< To return error code (or message) - var $errors = array(); //!< To return several error codes (or messages) + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + var $element='advtargetemailing'; //!< Id that identify managed objects var $table_element='advtargetemailing'; //!< Name of table without prefix where object is stored diff --git a/htdocs/compta/facture/class/paymentterm.class.php b/htdocs/compta/facture/class/paymentterm.class.php index 3697a61672b..7e9524ad9af 100644 --- a/htdocs/compta/facture/class/paymentterm.class.php +++ b/htdocs/compta/facture/class/paymentterm.class.php @@ -30,7 +30,12 @@ class PaymentTerm // extends CommonObject { var $db; //!< To store db handler var $error; //!< To return error code (or message) - var $errors=array(); //!< To return several error codes (or messages) + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + //public $element='c_payment_term'; //!< Id that identify managed objects //public $table_element='c_payment_term'; //!< Name of table without prefix where object is stored var $context =array(); diff --git a/htdocs/contact/canvas/actions_contactcard_common.class.php b/htdocs/contact/canvas/actions_contactcard_common.class.php index ba96c865d1a..c8ef79bc72e 100644 --- a/htdocs/contact/canvas/actions_contactcard_common.class.php +++ b/htdocs/contact/canvas/actions_contactcard_common.class.php @@ -39,8 +39,12 @@ abstract class ActionsContactCardCommon var $object; //! Error string var $error; - //! Error array - var $errors=array(); + + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); /** diff --git a/htdocs/core/class/antivir.class.php b/htdocs/core/class/antivir.class.php index b5f4f0e5539..ad31c60e664 100644 --- a/htdocs/core/class/antivir.class.php +++ b/htdocs/core/class/antivir.class.php @@ -32,7 +32,12 @@ class AntiVir { var $error; - var $errors; + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array ();; + var $output; var $db; diff --git a/htdocs/core/class/canvas.class.php b/htdocs/core/class/canvas.class.php index d9c496add4f..e5b984a255d 100644 --- a/htdocs/core/class/canvas.class.php +++ b/htdocs/core/class/canvas.class.php @@ -30,7 +30,11 @@ class Canvas { var $db; var $error; - var $errors=array(); + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); var $actiontype; diff --git a/htdocs/core/class/ccountry.class.php b/htdocs/core/class/ccountry.class.php index 7964510c91c..96d8ab69826 100644 --- a/htdocs/core/class/ccountry.class.php +++ b/htdocs/core/class/ccountry.class.php @@ -34,7 +34,12 @@ class Ccountry // extends CommonObject { var $db; //!< To store db handler var $error; //!< To return error code (or message) - var $errors=array(); //!< To return several error codes (or messages) + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + //var $element='ccountry'; //!< Id that identify managed objects //var $table_element='ccountry'; //!< Name of table without prefix where object is stored diff --git a/htdocs/core/class/cstate.class.php b/htdocs/core/class/cstate.class.php index ae2adde87d4..592962edf65 100644 --- a/htdocs/core/class/cstate.class.php +++ b/htdocs/core/class/cstate.class.php @@ -34,7 +34,12 @@ class Cstate // extends CommonObject { var $db; //!< To store db handler var $error; //!< To return error code (or message) - var $errors=array(); //!< To return several error codes (or messages) + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + //var $element='cstate'; //!< Id that identify managed objects //var $table_element='cstate'; //!< Name of table without prefix where object is stored diff --git a/htdocs/core/class/ctypent.class.php b/htdocs/core/class/ctypent.class.php index b3bb750bd80..9b36ec470b4 100644 --- a/htdocs/core/class/ctypent.class.php +++ b/htdocs/core/class/ctypent.class.php @@ -29,7 +29,12 @@ class Ctypent // extends CommonObject { var $db; //!< To store db handler var $error; //!< To return error code (or message) - var $errors=array(); //!< To return several error codes (or messages) + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + //var $element='ctypent'; //!< Id that identify managed objects //var $table_element='ctypent'; //!< Name of table without prefix where object is stored diff --git a/htdocs/core/class/dolreceiptprinter.class.php b/htdocs/core/class/dolreceiptprinter.class.php index 2499176b58b..fbf05c99358 100644 --- a/htdocs/core/class/dolreceiptprinter.class.php +++ b/htdocs/core/class/dolreceiptprinter.class.php @@ -110,7 +110,11 @@ class dolReceiptPrinter extends Escpos var $printer; var $template; var $error; - var $errors; + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); diff --git a/htdocs/core/class/hookmanager.class.php b/htdocs/core/class/hookmanager.class.php index 439e31caae1..11d29b7a7ad 100644 --- a/htdocs/core/class/hookmanager.class.php +++ b/htdocs/core/class/hookmanager.class.php @@ -31,7 +31,11 @@ class HookManager { var $db; var $error; - var $errors=array(); + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); // Context hookmanager was created for ('thirdpartycard', 'thirdpartydao', ...) var $contextarray=array(); diff --git a/htdocs/core/class/interfaces.class.php b/htdocs/core/class/interfaces.class.php index 655969d73f6..e6325df8836 100644 --- a/htdocs/core/class/interfaces.class.php +++ b/htdocs/core/class/interfaces.class.php @@ -33,7 +33,11 @@ class Interfaces { var $db; var $dir; // Directory with all core and external triggers files - var $errors = array(); // Array for errors + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); /** * Constructor diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php index 1cd676fe70b..c9d04b93dde 100644 --- a/htdocs/core/class/notify.class.php +++ b/htdocs/core/class/notify.class.php @@ -33,7 +33,11 @@ class Notify var $id; var $db; var $error; - var $errors=array(); + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); var $author; var $ref; diff --git a/htdocs/core/modules/import/import_csv.modules.php b/htdocs/core/modules/import/import_csv.modules.php index da94f7e72f9..aeaa6e58db2 100644 --- a/htdocs/core/modules/import/import_csv.modules.php +++ b/htdocs/core/modules/import/import_csv.modules.php @@ -40,7 +40,12 @@ class ImportCsv extends ModeleImports * @var string Error code (or message) */ public $error=''; - var $errors=array(); + + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); var $id; // Id of driver var $label; // Label of driver diff --git a/htdocs/core/modules/import/import_xlsx.modules.php b/htdocs/core/modules/import/import_xlsx.modules.php index 80158466103..0c610f469b0 100644 --- a/htdocs/core/modules/import/import_xlsx.modules.php +++ b/htdocs/core/modules/import/import_xlsx.modules.php @@ -40,7 +40,12 @@ class ImportXlsx extends ModeleImports * @var string Error code (or message) */ public $error=''; - var $errors=array(); + + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); var $id; // Id of driver var $label; // Label of driver diff --git a/htdocs/core/modules/printing/printgcp.modules.php b/htdocs/core/modules/printing/printgcp.modules.php index 7cda95174c2..8e4eafeb7b8 100644 --- a/htdocs/core/modules/printing/printgcp.modules.php +++ b/htdocs/core/modules/printing/printgcp.modules.php @@ -43,7 +43,12 @@ class printing_printgcp extends PrintingDriver var $google_id = ''; var $google_secret = ''; var $error; - var $errors = array(); + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + var $db; private $OAUTH_SERVICENAME_GOOGLE = 'Google'; diff --git a/htdocs/core/modules/printing/printipp.modules.php b/htdocs/core/modules/printing/printipp.modules.php index 94d14426b55..168c411ec29 100644 --- a/htdocs/core/modules/printing/printipp.modules.php +++ b/htdocs/core/modules/printing/printipp.modules.php @@ -41,7 +41,12 @@ class printing_printipp extends PrintingDriver var $user; var $password; var $error; - var $errors = array(); + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + var $db; diff --git a/htdocs/imports/class/import.class.php b/htdocs/imports/class/import.class.php index f8754193515..bc4873770fd 100644 --- a/htdocs/imports/class/import.class.php +++ b/htdocs/imports/class/import.class.php @@ -44,7 +44,11 @@ class Import var $array_import_run_sql_after; var $error; - var $errors; + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); /** diff --git a/htdocs/product/dynamic_price/class/price_expression.class.php b/htdocs/product/dynamic_price/class/price_expression.class.php index 5ce3068c144..c5bf6808fac 100644 --- a/htdocs/product/dynamic_price/class/price_expression.class.php +++ b/htdocs/product/dynamic_price/class/price_expression.class.php @@ -31,7 +31,12 @@ class PriceExpression { var $db; //!< To store db handler var $error; //!< To return error code (or message) - var $errors=array(); //!< To return several error codes (or messages) + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + var $id; var $title; var $expression; diff --git a/htdocs/product/dynamic_price/class/price_global_variable.class.php b/htdocs/product/dynamic_price/class/price_global_variable.class.php index 97a3ee1f4e6..1432afcfdeb 100644 --- a/htdocs/product/dynamic_price/class/price_global_variable.class.php +++ b/htdocs/product/dynamic_price/class/price_global_variable.class.php @@ -31,7 +31,12 @@ class PriceGlobalVariable { var $db; //!< To store db handler var $error; //!< To return error code (or message) - var $errors=array(); //!< To return several error codes (or messages) + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + var $id; var $code; var $description; diff --git a/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php b/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php index f4595062098..37a3e116683 100644 --- a/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php +++ b/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php @@ -31,7 +31,12 @@ class PriceGlobalVariableUpdater { var $db; //!< To store db handler var $error; //!< To return error code (or message) - var $errors=array(); //!< To return several error codes (or messages) + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); + var $types=array(0, 1); //!< Updater types var $update_min = 5; //!< Minimal update rate var $id; diff --git a/htdocs/societe/canvas/actions_card_common.class.php b/htdocs/societe/canvas/actions_card_common.class.php index 37082f4140b..da51ebc03d9 100644 --- a/htdocs/societe/canvas/actions_card_common.class.php +++ b/htdocs/societe/canvas/actions_card_common.class.php @@ -39,8 +39,11 @@ abstract class ActionsCardCommon var $object; //! Error string var $error; - //! Error array - var $errors=array(); + /** + * + * @var string[] Error codes (or messages) + */ + public $errors = array (); /**