Update and standardize code
This commit is contained in:
parent
edb566501d
commit
c48211ad70
@ -46,8 +46,18 @@ class AccountingAccount extends CommonObject
|
|||||||
public $restrictiononfksoc = 1;
|
public $restrictiononfksoc = 1;
|
||||||
|
|
||||||
var $db;
|
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 $id;
|
||||||
var $rowid;
|
var $rowid;
|
||||||
var $datec; // Creation date
|
var $datec; // Creation date
|
||||||
|
|||||||
@ -43,8 +43,12 @@ abstract class ActionsAdherentCardCommon
|
|||||||
var $object;
|
var $object;
|
||||||
//! Error string
|
//! Error string
|
||||||
var $error;
|
var $error;
|
||||||
//! Error array
|
|
||||||
var $errors=array();
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -31,7 +31,12 @@ class AdvanceTargetingMailing extends CommonObject
|
|||||||
|
|
||||||
var $db; //!< To store db handler
|
var $db; //!< To store db handler
|
||||||
var $error; //!< To return error code (or message)
|
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 $element='advtargetemailing'; //!< Id that identify managed objects
|
||||||
var $table_element='advtargetemailing'; //!< Name of table without prefix where object is stored
|
var $table_element='advtargetemailing'; //!< Name of table without prefix where object is stored
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,12 @@ class PaymentTerm // extends CommonObject
|
|||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
var $db; //!< To store db handler
|
||||||
var $error; //!< To return error code (or message)
|
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 $element='c_payment_term'; //!< Id that identify managed objects
|
||||||
//public $table_element='c_payment_term'; //!< Name of table without prefix where object is stored
|
//public $table_element='c_payment_term'; //!< Name of table without prefix where object is stored
|
||||||
var $context =array();
|
var $context =array();
|
||||||
|
|||||||
@ -39,8 +39,12 @@ abstract class ActionsContactCardCommon
|
|||||||
var $object;
|
var $object;
|
||||||
//! Error string
|
//! Error string
|
||||||
var $error;
|
var $error;
|
||||||
//! Error array
|
|
||||||
var $errors=array();
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -32,7 +32,12 @@
|
|||||||
class AntiVir
|
class AntiVir
|
||||||
{
|
{
|
||||||
var $error;
|
var $error;
|
||||||
var $errors;
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();;
|
||||||
|
|
||||||
var $output;
|
var $output;
|
||||||
var $db;
|
var $db;
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,11 @@ class Canvas
|
|||||||
{
|
{
|
||||||
var $db;
|
var $db;
|
||||||
var $error;
|
var $error;
|
||||||
var $errors=array();
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
var $actiontype;
|
var $actiontype;
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,12 @@ class Ccountry // extends CommonObject
|
|||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
var $db; //!< To store db handler
|
||||||
var $error; //!< To return error code (or message)
|
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 $element='ccountry'; //!< Id that identify managed objects
|
||||||
//var $table_element='ccountry'; //!< Name of table without prefix where object is stored
|
//var $table_element='ccountry'; //!< Name of table without prefix where object is stored
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,12 @@ class Cstate // extends CommonObject
|
|||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
var $db; //!< To store db handler
|
||||||
var $error; //!< To return error code (or message)
|
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 $element='cstate'; //!< Id that identify managed objects
|
||||||
//var $table_element='cstate'; //!< Name of table without prefix where object is stored
|
//var $table_element='cstate'; //!< Name of table without prefix where object is stored
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,12 @@ class Ctypent // extends CommonObject
|
|||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
var $db; //!< To store db handler
|
||||||
var $error; //!< To return error code (or message)
|
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 $element='ctypent'; //!< Id that identify managed objects
|
||||||
//var $table_element='ctypent'; //!< Name of table without prefix where object is stored
|
//var $table_element='ctypent'; //!< Name of table without prefix where object is stored
|
||||||
|
|
||||||
|
|||||||
@ -110,7 +110,11 @@ class dolReceiptPrinter extends Escpos
|
|||||||
var $printer;
|
var $printer;
|
||||||
var $template;
|
var $template;
|
||||||
var $error;
|
var $error;
|
||||||
var $errors;
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,11 @@ class HookManager
|
|||||||
{
|
{
|
||||||
var $db;
|
var $db;
|
||||||
var $error;
|
var $error;
|
||||||
var $errors=array();
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
// Context hookmanager was created for ('thirdpartycard', 'thirdpartydao', ...)
|
// Context hookmanager was created for ('thirdpartycard', 'thirdpartydao', ...)
|
||||||
var $contextarray=array();
|
var $contextarray=array();
|
||||||
|
|||||||
@ -33,7 +33,11 @@ class Interfaces
|
|||||||
{
|
{
|
||||||
var $db;
|
var $db;
|
||||||
var $dir; // Directory with all core and external triggers files
|
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
|
* Constructor
|
||||||
|
|||||||
@ -33,7 +33,11 @@ class Notify
|
|||||||
var $id;
|
var $id;
|
||||||
var $db;
|
var $db;
|
||||||
var $error;
|
var $error;
|
||||||
var $errors=array();
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
var $author;
|
var $author;
|
||||||
var $ref;
|
var $ref;
|
||||||
|
|||||||
@ -40,7 +40,12 @@ class ImportCsv extends ModeleImports
|
|||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
public $error='';
|
public $error='';
|
||||||
var $errors=array();
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
var $id; // Id of driver
|
var $id; // Id of driver
|
||||||
var $label; // Label of driver
|
var $label; // Label of driver
|
||||||
|
|||||||
@ -40,7 +40,12 @@ class ImportXlsx extends ModeleImports
|
|||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
public $error='';
|
public $error='';
|
||||||
var $errors=array();
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
var $id; // Id of driver
|
var $id; // Id of driver
|
||||||
var $label; // Label of driver
|
var $label; // Label of driver
|
||||||
|
|||||||
@ -43,7 +43,12 @@ class printing_printgcp extends PrintingDriver
|
|||||||
var $google_id = '';
|
var $google_id = '';
|
||||||
var $google_secret = '';
|
var $google_secret = '';
|
||||||
var $error;
|
var $error;
|
||||||
var $errors = array();
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
var $db;
|
var $db;
|
||||||
|
|
||||||
private $OAUTH_SERVICENAME_GOOGLE = 'Google';
|
private $OAUTH_SERVICENAME_GOOGLE = 'Google';
|
||||||
|
|||||||
@ -41,7 +41,12 @@ class printing_printipp extends PrintingDriver
|
|||||||
var $user;
|
var $user;
|
||||||
var $password;
|
var $password;
|
||||||
var $error;
|
var $error;
|
||||||
var $errors = array();
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
var $db;
|
var $db;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,11 @@ class Import
|
|||||||
var $array_import_run_sql_after;
|
var $array_import_run_sql_after;
|
||||||
|
|
||||||
var $error;
|
var $error;
|
||||||
var $errors;
|
/**
|
||||||
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -31,7 +31,12 @@ class PriceExpression
|
|||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
var $db; //!< To store db handler
|
||||||
var $error; //!< To return error code (or message)
|
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 $id;
|
||||||
var $title;
|
var $title;
|
||||||
var $expression;
|
var $expression;
|
||||||
|
|||||||
@ -31,7 +31,12 @@ class PriceGlobalVariable
|
|||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
var $db; //!< To store db handler
|
||||||
var $error; //!< To return error code (or message)
|
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 $id;
|
||||||
var $code;
|
var $code;
|
||||||
var $description;
|
var $description;
|
||||||
|
|||||||
@ -31,7 +31,12 @@ class PriceGlobalVariableUpdater
|
|||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
var $db; //!< To store db handler
|
||||||
var $error; //!< To return error code (or message)
|
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 $types=array(0, 1); //!< Updater types
|
||||||
var $update_min = 5; //!< Minimal update rate
|
var $update_min = 5; //!< Minimal update rate
|
||||||
var $id;
|
var $id;
|
||||||
|
|||||||
@ -39,8 +39,11 @@ abstract class ActionsCardCommon
|
|||||||
var $object;
|
var $object;
|
||||||
//! Error string
|
//! Error string
|
||||||
var $error;
|
var $error;
|
||||||
//! Error array
|
/**
|
||||||
var $errors=array();
|
*
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array ();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user