Standardize and update code

This commit is contained in:
Philippe GRAND 2018-08-23 16:54:24 +02:00
parent 80b7229174
commit 74ce0bfea6
10 changed files with 38 additions and 11 deletions

View File

@ -41,7 +41,11 @@ class AccountancyCategory // extends CommonObject
*/
public $error;
public $errors=array(); //!< To return several error codes (or messages)
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
public $element='c_accounting_category'; //!< Id that identify managed objects
/**

View File

@ -46,6 +46,10 @@ class BlockedLog
public $entity;
public $error = '';
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
/**

View File

@ -119,11 +119,11 @@ class dolReceiptPrinter extends Escpos
* @var string Error code (or message)
*/
public $error='';
/**
*
* @var string[] Error codes (or messages)
*/
public $errors = array ();
public $errors = array();

View File

@ -27,7 +27,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/html.form.class.php';
*/
class FormMailing extends Form
{
public $errors=array();
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
/**
* Output a select with destinaries status

View File

@ -38,7 +38,10 @@ class Menubase
*/
public $error;
public $errors=array(); // To return several error codes (or messages)
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
public $id;

View File

@ -46,10 +46,9 @@ class ImportCsv extends ModeleImports
public $error='';
/**
*
* @var string[] Error codes (or messages)
*/
public $errors = array ();
public $errors = array();
/**
* @var int ID

View File

@ -68,7 +68,10 @@ class EcmDirectory // extends CommonObject
*/
public $error;
public $errors;
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
/**

View File

@ -44,7 +44,11 @@ class CommandeFournisseurDispatch extends CommonObject
*/
public $error;
public $errors=array(); //!< To return several error codes (or messages)
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
public $element='commandefournisseurdispatch'; //!< Id that identify managed objects
/**

View File

@ -49,7 +49,11 @@ class ActionsTicket
*/
public $error;
public $errors = array();
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
//! Numero de l'erreur
public $errno = 0;

View File

@ -42,7 +42,10 @@ class Ticketlogs// extends CommonObject
*/
public $error;
public $errors = array(); //!< To return several error codes (or messages)
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
public $element = 'ticketlogs'; //!< Id that identify managed objects
/**