From 79ecb68033507be4d8679082a260734e3fe22939 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Fri, 5 Feb 2021 15:57:13 +0100 Subject: [PATCH] We split Database in DatabaseCore and Database --- include/database/attr_def_sql.class.php | 2 +- include/database/contact_option_ref_sql.class.php | 2 +- include/database/document_state_sql.class.php | 2 +- include/database/document_type_sql.class.php | 2 +- include/database/fiche_def_ref_sql.class.php | 2 +- include/database/jrn_def_sql.class.php | 2 +- include/database/jrn_periode_sql.class.php | 2 +- include/database/menu_ref_sql.class.php | 2 +- include/database/op_predef_sql.class.php | 2 +- include/database/parm_periode_sql.class.php | 2 +- include/database/payment_method_sql.class.php | 2 +- include/database/poste_analytique_sql.class.php | 2 +- include/database/tag_group_sql.class.php | 2 +- include/database/tva_rate_sql.class.php | 2 +- include/database/user_filter_sql.class.php | 2 +- include/database/v_tva_rate_sql.class.php | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/database/attr_def_sql.class.php b/include/database/attr_def_sql.class.php index 450a1203a..c4160b6c7 100644 --- a/include/database/attr_def_sql.class.php +++ b/include/database/attr_def_sql.class.php @@ -29,7 +29,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Attr_def_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.attr_def"; $this->primary_key="ad_id"; diff --git a/include/database/contact_option_ref_sql.class.php b/include/database/contact_option_ref_sql.class.php index 5e3906094..969235f08 100644 --- a/include/database/contact_option_ref_sql.class.php +++ b/include/database/contact_option_ref_sql.class.php @@ -31,7 +31,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Contact_option_ref_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.contact_option_ref"; $this->primary_key="cor_id"; diff --git a/include/database/document_state_sql.class.php b/include/database/document_state_sql.class.php index 8b6ae7fc2..a4fbef988 100644 --- a/include/database/document_state_sql.class.php +++ b/include/database/document_state_sql.class.php @@ -29,7 +29,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Document_State_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.document_state"; $this->primary_key="s_id"; diff --git a/include/database/document_type_sql.class.php b/include/database/document_type_sql.class.php index cd493e3aa..36e2d5b36 100644 --- a/include/database/document_type_sql.class.php +++ b/include/database/document_type_sql.class.php @@ -35,7 +35,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Document_type_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.document_type"; $this->primary_key="dt_id"; diff --git a/include/database/fiche_def_ref_sql.class.php b/include/database/fiche_def_ref_sql.class.php index c952648c4..c895dde4a 100644 --- a/include/database/fiche_def_ref_sql.class.php +++ b/include/database/fiche_def_ref_sql.class.php @@ -34,7 +34,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Fiche_def_ref_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.fiche_def_ref"; $this->primary_key="frd_id"; diff --git a/include/database/jrn_def_sql.class.php b/include/database/jrn_def_sql.class.php index 413e4d267..e1dd8a493 100644 --- a/include/database/jrn_def_sql.class.php +++ b/include/database/jrn_def_sql.class.php @@ -29,7 +29,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Jrn_def_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.jrn_def"; $this->primary_key="jrn_def_id"; diff --git a/include/database/jrn_periode_sql.class.php b/include/database/jrn_periode_sql.class.php index 9f440455f..4dfe90546 100644 --- a/include/database/jrn_periode_sql.class.php +++ b/include/database/jrn_periode_sql.class.php @@ -34,7 +34,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Jrn_periode_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.jrn_periode"; $this->primary_key="id"; diff --git a/include/database/menu_ref_sql.class.php b/include/database/menu_ref_sql.class.php index 5fa6982f5..c597c9c71 100644 --- a/include/database/menu_ref_sql.class.php +++ b/include/database/menu_ref_sql.class.php @@ -35,7 +35,7 @@ require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php'; class Menu_Ref_SQL extends Noalyss_SQL { - function __construct(Database &$p_cn, $p_id=-1) + function __construct(DatabaseCore &$p_cn, $p_id=-1) { $this->table="public.menu_ref"; $this->primary_key="me_code"; diff --git a/include/database/op_predef_sql.class.php b/include/database/op_predef_sql.class.php index 8ae979c52..3bf2c80ed 100644 --- a/include/database/op_predef_sql.class.php +++ b/include/database/op_predef_sql.class.php @@ -29,7 +29,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Op_predef_SQL extends Noalyss_SQL { - function __construct(Database $p_cn,$p_id=-1) + function __construct(DatabaseCore $p_cn,$p_id=-1) { $this->table = "public.op_predef"; $this->primary_key = "od_id"; diff --git a/include/database/parm_periode_sql.class.php b/include/database/parm_periode_sql.class.php index 18991e97a..c9fc7ac98 100644 --- a/include/database/parm_periode_sql.class.php +++ b/include/database/parm_periode_sql.class.php @@ -35,7 +35,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Parm_periode_SQL extends Noalyss_SQL { -function __construct(Database $p_cn,$p_id=-1) +function __construct(DatabaseCore $p_cn,$p_id=-1) { $this->table = "public.parm_periode"; $this->primary_key = "p_id"; diff --git a/include/database/payment_method_sql.class.php b/include/database/payment_method_sql.class.php index 2154e9509..52adfa770 100644 --- a/include/database/payment_method_sql.class.php +++ b/include/database/payment_method_sql.class.php @@ -32,7 +32,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Payment_method_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.payment_method"; $this->primary_key="mp_id"; diff --git a/include/database/poste_analytique_sql.class.php b/include/database/poste_analytique_sql.class.php index a99b8a250..ed17f4d9b 100644 --- a/include/database/poste_analytique_sql.class.php +++ b/include/database/poste_analytique_sql.class.php @@ -35,7 +35,7 @@ require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php'; class Poste_analytique_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.poste_analytique"; $this->primary_key="po_id"; diff --git a/include/database/tag_group_sql.class.php b/include/database/tag_group_sql.class.php index 279232377..ec82dedb8 100644 --- a/include/database/tag_group_sql.class.php +++ b/include/database/tag_group_sql.class.php @@ -30,7 +30,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Tag_group_SQL extends Noalyss_SQL { -function __construct(Database $p_cn,$p_id=-1) +function __construct(DatabaseCore $p_cn,$p_id=-1) { $this->table = "public.tag_group"; $this->primary_key = "tg_id"; diff --git a/include/database/tva_rate_sql.class.php b/include/database/tva_rate_sql.class.php index f23d98b52..9ad5d693f 100644 --- a/include/database/tva_rate_sql.class.php +++ b/include/database/tva_rate_sql.class.php @@ -31,7 +31,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class Tva_rate_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.tva_rate"; $this->primary_key="tva_id"; diff --git a/include/database/user_filter_sql.class.php b/include/database/user_filter_sql.class.php index 55b59beab..3a1557da3 100644 --- a/include/database/user_filter_sql.class.php +++ b/include/database/user_filter_sql.class.php @@ -31,7 +31,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class User_filter_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.user_filter"; $this->primary_key="id"; diff --git a/include/database/v_tva_rate_sql.class.php b/include/database/v_tva_rate_sql.class.php index 19c63fe3c..0b3de4c30 100644 --- a/include/database/v_tva_rate_sql.class.php +++ b/include/database/v_tva_rate_sql.class.php @@ -31,7 +31,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php'; class V_Tva_Rate_SQL extends Noalyss_SQL { - function __construct(Database $p_cn, $p_id=-1) + function __construct(DatabaseCore $p_cn, $p_id=-1) { $this->table="public.v_tva_rate"; $this->primary_key="tva_id";