Update and standardize code

This commit is contained in:
Philippe GRAND 2018-08-22 11:06:34 +02:00
parent 29f15b4ae6
commit d91b1fd895
51 changed files with 231 additions and 59 deletions

View File

@ -41,7 +41,11 @@ class AntiVir
public $errors = array();
var $output;
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* Constructor

View File

@ -28,7 +28,10 @@
*/
class Canvas
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -32,7 +32,10 @@
*/
class Ccountry // extends CommonObject
{
var $db; //!< To store db handler
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -35,8 +35,12 @@ class Conf
/** \public */
//! To store properties found in conf file
var $file;
//! Object with database handler
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
//! To store properties found into database
var $global;
//! To store browser info

View File

@ -32,7 +32,10 @@
*/
class Cstate // extends CommonObject
{
var $db; //!< To store db handler
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -27,7 +27,10 @@
*/
class Ctypent // extends CommonObject
{
var $db; //!< To store db handler
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -105,7 +105,12 @@ class dolReceiptPrinter extends Escpos
const CONNECTOR_NETWORK_PRINT = 3;
const CONNECTOR_WINDOWS_PRINT = 4;
//const CONNECTOR_JAVA = 5;
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $tags;
var $printer;
var $template;

View File

@ -38,7 +38,11 @@ class Events // extends CommonObject
public $table_element='events'; //!< Name of table without prefix where object is stored
var $id;
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -37,7 +37,10 @@
*/
class ExtraFields
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
// type of element (for what object is the extrafield)
// @deprecated

View File

@ -26,7 +26,10 @@
*/
class GoogleAPI
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -29,7 +29,10 @@
*/
class HookManager
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -47,7 +47,10 @@
*/
class Form
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -35,14 +35,17 @@ class FormAccounting extends Form
private $options_cache = array();
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)
*/
public $error='';
/**
/**
* Constructor
*
* @param DoliDB $db Database handler

View File

@ -29,7 +29,10 @@
*/
class FormActions
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -29,7 +29,10 @@
*/
class FormAdmin
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -29,7 +29,10 @@
*/
class FormBank
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -28,7 +28,10 @@
*/
class FormBarCode
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -31,7 +31,10 @@
*/
class FormCompany
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)
@ -39,7 +42,6 @@ class FormCompany
public $error='';
/**
* Constructor
*

View File

@ -27,7 +27,10 @@
*/
class FormContract
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -28,7 +28,10 @@
*/
class FormCron extends Form
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -27,7 +27,10 @@
*/
class FormIntervention
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -35,7 +35,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/html.form.class.php';
*/
class FormMail extends Form
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $withform; // 1=Include HTML form tag and show submit button, 0=Do not include form tag and submit button, -1=Do not include form tag but include submit button

View File

@ -28,7 +28,10 @@
*/
class FormMargin
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -29,7 +29,10 @@
*/
class FormProjets
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -27,7 +27,10 @@
*/
class FormPropal
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -32,7 +32,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/html.form.class.php';
*/
class FormSms
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $fromname;
var $fromsms;

View File

@ -27,7 +27,10 @@
*/
class FormSocialContrib
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -31,13 +31,17 @@ require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php';
*/
class Interfaces
{
var $db;
var $dir; // Directory with all core and external triggers files
/**
*
* @var DoliDB Database handler.
*/
public $db;
var $dir; // Directory with all core and external triggers files
/**
* @var string[] Error codes (or messages)
*/
public $errors = array ();
public $errors = array();
/**
* Constructor

View File

@ -31,7 +31,11 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/CMailFile.class.php';
class Notify
{
var $id;
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -26,7 +26,10 @@
*/
class RssParser
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -27,7 +27,10 @@
*/
class Utils
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $output; // Used by Cron method to return message
var $result; // Used by Cron method to return data

View File

@ -28,7 +28,11 @@
*/
class MenuManager
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $type_user; // Put 0 for internal users, 1 for external users
var $atarget=""; // To store default target to use onto links
var $name="auguria";

View File

@ -27,7 +27,11 @@
*/
class MenuManager
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $type_user; // Put 0 for internal users, 1 for external users
var $atarget=""; // To store default target to use onto links
var $name="eldy";

View File

@ -25,7 +25,11 @@
*/
class MenuManager
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $type_user=0; // Put 0 for internal users, 1 for external users
var $atarget=""; // To store default target to use onto links

View File

@ -35,7 +35,11 @@ require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
*/
class CommActionRapport
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $description;
var $date_edition;
var $year;

View File

@ -33,7 +33,11 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/import/modules_import.php';
*/
class ImportCsv extends ModeleImports
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $datatoimport;
/**

View File

@ -33,7 +33,11 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/import/modules_import.php';
*/
class ImportXlsx extends ModeleImports
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $datatoimport;
/**
@ -42,10 +46,9 @@ class ImportXlsx extends ModeleImports
public $error='';
/**
*
* @var string[] Error codes (or messages)
*/
public $errors = array ();
public $errors = array();
var $id; // Id of driver
var $label; // Label of driver

View File

@ -32,7 +32,11 @@ class mailing_advthirdparties extends MailingTargets
var $require_module=array("none"); // This module should not be displayed as Selector in mailling
var $picto='company';
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**

View File

@ -39,7 +39,10 @@ class mailing_contacts1 extends MailingTargets
var $require_admin=0; // Module mailing actif pour user admin ou non
var $picto='contact';
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**

View File

@ -37,7 +37,11 @@ class mailing_example extends MailingTargets
var $require_module=array();
var $picto='';
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
// CHANGE THIS: Constructor name must be called mailing_xxx with xxx=name of your selector

View File

@ -41,7 +41,10 @@ class mailing_fraise extends MailingTargets
var $require_module=array('adherent');
var $picto='user';
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* Constructor

View File

@ -31,7 +31,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions.lib.php';
*/
class MailingTargets // This can't be abstract as it is used for some method
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -37,7 +37,10 @@ class mailing_pomme extends MailingTargets
var $require_admin=1; // Module mailing actif pour user admin ou non
var $picto='user';
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**

View File

@ -31,7 +31,11 @@ class mailing_thirdparties extends MailingTargets
var $require_module=array("societe"); // This module allows to select by categories must be also enabled if category module is not activated
var $picto='company';
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**

View File

@ -29,7 +29,12 @@ class mailing_thirdparties_services_expired extends MailingTargets
var $require_module=array('contrat');
var $picto='company';
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $arrayofproducts=array();

View File

@ -31,7 +31,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
*/
class PrintingDriver
{
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**
* @var string Error code (or message)

View File

@ -53,7 +53,10 @@ class printing_printgcp extends PrintingDriver
*/
public $errors = array();
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
private $OAUTH_SERVICENAME_GOOGLE = 'Google';

View File

@ -51,7 +51,10 @@ class printing_printipp extends PrintingDriver
*/
public $errors = array();
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
/**

View File

@ -34,7 +34,11 @@ class modGeneratePassNone extends ModeleGenPassword
var $id;
var $length;
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $conf;
var $lang;
var $user;

View File

@ -42,7 +42,11 @@ class modGeneratePassPerso extends ModeleGenPassword
var $NbRepeat;
var $WithoutAmbi;
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $conf;
var $lang;
var $user;

View File

@ -34,7 +34,11 @@ class modGeneratePassStandard extends ModeleGenPassword
var $id;
var $length;
var $db;
/**
* @var DoliDB Database handler.
*/
public $db;
var $conf;
var $lang;
var $user;