Update and standardize code

This commit is contained in:
Philippe GRAND 2018-08-17 19:31:22 +02:00
parent edb566501d
commit c48211ad70
23 changed files with 137 additions and 27 deletions

View File

@ -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

View File

@ -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 ();
/**

View File

@ -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

View File

@ -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();

View File

@ -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 ();
/**

View File

@ -32,7 +32,12 @@
class AntiVir
{
var $error;
var $errors;
/**
*
* @var string[] Error codes (or messages)
*/
public $errors = array ();;
var $output;
var $db;

View File

@ -30,7 +30,11 @@ class Canvas
{
var $db;
var $error;
var $errors=array();
/**
*
* @var string[] Error codes (or messages)
*/
public $errors = array ();
var $actiontype;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 ();

View File

@ -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();

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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';

View File

@ -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;

View File

@ -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 ();
/**

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 ();
/**