Code Rewriting : rename Noalyss_SQL class by Table_Data_SQL

This commit is contained in:
sparkyx 2021-05-07 15:43:37 +02:00
parent 86f50943fd
commit 769634cf9d
39 changed files with 410 additions and 979 deletions

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -26,7 +26,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
* @file
* @brief abstract of the table public.action_gestion_comment */
class Action_Gestion_Comment_SQL extends Noalyss_SQL
class Action_Gestion_Comment_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -26,7 +26,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
* @file
* @brief abstract of the table public.action_gestion */
class Action_gestion_SQL extends Noalyss_SQL
class Action_gestion_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -23,13 +23,13 @@
* @brief Class to manage distribution keys for SQL.
*
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
/**
* @brief Manage the table key_distribution.
*/
class Anc_Key_SQL extends Noalyss_SQL
class Anc_Key_SQL extends Table_Data_SQL
{
function __construct($p_cn, $p_id = -1)
@ -62,7 +62,7 @@ class Anc_Key_SQL extends Noalyss_SQL
/**
* @brief manage table key_distribution_ledger
*/
class Anc_Key_Ledger_SQL extends Noalyss_SQL
class Anc_Key_Ledger_SQL extends Table_Data_SQL
{
function __construct(&$p_cn, $p_id = -1)
{
@ -93,7 +93,7 @@ class Anc_Key_Ledger_SQL extends Noalyss_SQL
/**
* @brief manage table key_distribution_detail
*/
class Anc_Key_Detail_SQL extends Noalyss_SQL
class Anc_Key_Detail_SQL extends Table_Data_SQL
{
function __construct(&$p_cn, $p_id = -1)
{
@ -128,7 +128,7 @@ class Anc_Key_Detail_SQL extends Noalyss_SQL
/**
* @brief manage table key_distribution_activity
*/
class Anc_Key_Activity_SQL extends Noalyss_SQL
class Anc_Key_Activity_SQL extends Table_Data_SQL
{
function __construct($p_cn, $p_id = -1)
{

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -26,7 +26,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
* @file
* @brief abstract of the table public.attr_def */
class Attr_def_SQL extends Noalyss_SQL
class Attr_def_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -20,7 +20,7 @@
*/
// Copyright (2002-2020) Author Dany De Bontridder <danydb@noalyss.eu>
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -28,7 +28,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
* @file
* @brief abstract of the table public.contact_option_ref */
class Contact_option_ref_SQL extends Noalyss_SQL
class Contact_option_ref_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -19,7 +19,7 @@
*/
// Copyright (2018) Author Dany De Bontridder <dany@alchimerys.be>
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -27,7 +27,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
* @file
* @brief abstract of the table public.currency_history */
class Currency_history_SQL extends Noalyss_SQL
class Currency_history_SQL extends Table_Data_SQL
{
function __construct(Database $p_cn, $p_id=-1)

View file

@ -23,9 +23,9 @@
*
* @author dany
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
class Default_Menu_SQL extends Noalyss_SQL
class Default_Menu_SQL extends Table_Data_SQL
{
var $md_id;
var $md_code;

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -26,7 +26,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
* @file
* @brief abstract of the table public.document_state */
class Document_State_SQL extends Noalyss_SQL
class Document_State_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -32,7 +32,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
* @class
* @brief abstract of the table public.document_type
*/
class Document_type_SQL extends Noalyss_SQL
class Document_type_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -23,7 +23,7 @@
* @brief Manage the table public.fiche_def_ref , which concerns the template of
* category of card
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -31,7 +31,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
* @file Manage the table public.fiche_def_ref , which concerns the template of
* category of card
*/
class Fiche_def_ref_SQL extends Noalyss_SQL
class Fiche_def_ref_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE . '/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE . '/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE . '/class/database.class.php';
@ -28,7 +28,7 @@ require_once NOALYSS_INCLUDE . '/class/database.class.php';
* @file
* @brief abstract of the table public.forecast_category
*/
class Forecast_Category_SQL extends Noalyss_SQL
class Forecast_Category_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id = -1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -27,7 +27,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
* @file
* @brief abstract of the table public.forecast_item
*/
class Forecast_Item_SQL extends Noalyss_SQL
class Forecast_Item_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE . '/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE . '/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE . '/class/database.class.php';
@ -28,7 +28,7 @@ require_once NOALYSS_INCLUDE . '/class/database.class.php';
* @file
* @brief abstract of the table public.forecast
*/
class Forecast_SQL extends Noalyss_SQL
class Forecast_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id = -1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -26,7 +26,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
* @file
* @brief abstract of the table public.jrn_def */
class Jrn_def_SQL extends Noalyss_SQL
class Jrn_def_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
@ -31,7 +31,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
* @brief abstract of the table public.jrn_periode
*/
class Jrn_periode_SQL extends Noalyss_SQL
class Jrn_periode_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -27,12 +27,12 @@
*/
require_once NOALYSS_INCLUDE.'/class/database.class.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
/**
* @brief Manage the table public.menu_ref
*/
class Menu_Ref_SQL extends Noalyss_SQL
class Menu_Ref_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore &$p_cn, $p_id=-1)

View file

@ -17,7 +17,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
@ -26,7 +26,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
*@file
*@brief abstract of the table public.op_predef */
class Op_predef_SQL extends Noalyss_SQL
class Op_predef_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn,$p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -27,7 +27,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
* @file
* @brief abstract of the table public.operation_currency
*/
class Operation_currency_SQL extends Noalyss_SQL
class Operation_currency_SQL extends Table_Data_SQL
{
function __construct(Database $p_cn, $p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
@ -27,7 +27,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
*@file
*@brief abstract of the table public.parameter_extra */
class Parameter_Extra_SQL extends Noalyss_SQL
class Parameter_Extra_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn,$p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
@ -32,7 +32,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
* *@brief Manage the table public.parm_periode
*/
class Parm_periode_SQL extends Noalyss_SQL
class Parm_periode_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn,$p_id=-1)

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -29,7 +29,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
* @brief abstract of the table public.payment_method
*/
class Payment_method_SQL extends Noalyss_SQL
class Payment_method_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -30,9 +30,9 @@
* @brief abstract of the table public.poste_analytique */
require_once NOALYSS_INCLUDE.'/class/database.class.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
class Poste_analytique_SQL extends Noalyss_SQL
class Poste_analytique_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -30,12 +30,12 @@
*/
require_once NOALYSS_INCLUDE.'/class/database.class.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
/**
* @brief Manage the table public.profile_menu
*/
class Profile_Menu_sql extends Noalyss_SQL
class Profile_Menu_sql extends Table_Data_SQL
{
function __construct(&$p_cn,$p_id=-1)

View file

@ -30,12 +30,12 @@
*/
require_once NOALYSS_INCLUDE.'/class/database.class.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
/**
* @brief Manage the table public.profile
*/
class Profile_sql extends Noalyss_SQL
class Profile_sql extends Table_Data_SQL
{
/* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */

View file

@ -25,9 +25,9 @@
* @brief
*
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
class Stock_Goods_Sql extends Noalyss_SQL
class Stock_Goods_Sql extends Table_Data_SQL
{
function __construct($cn,$p_id = -1)
@ -81,7 +81,7 @@ class Stock_Goods_Sql extends Noalyss_SQL
}
class Stock_Change_Sql extends Noalyss_SQL
class Stock_Change_Sql extends Table_Data_SQL
{
function __construct($cn,$p_id = -1)

View file

@ -25,9 +25,9 @@
* @brief
*
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
class Stock_Sql extends Noalyss_SQL {
class Stock_Sql extends Table_Data_SQL {
function __construct($cn,$p_id=-1)
{
$this->table = "public.stock_repository";

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
@ -27,7 +27,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
*
*@file
*@brief abstract of the table public.tag_group */
class Tag_group_SQL extends Noalyss_SQL
class Tag_group_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn,$p_id=-1)

View file

@ -1,7 +1,7 @@
<?php
require_once NOALYSS_INCLUDE.'/class/database.class.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
/*
* This file is part of NOALYSS.
*
@ -23,7 +23,7 @@ require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
/**
* @brief Manage the table public.tag
*/
class Tag_SQL extends Noalyss_SQL
class Tag_SQL extends Table_Data_SQL
{
/* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */

View file

@ -24,8 +24,8 @@
* @brief
*
*/
require_once NOALYSS_INCLUDE."/lib/noalyss_sql.class.php";
class Tmp_Pcmn_SQL extends Noalyss_SQL
require_once NOALYSS_INCLUDE."/lib/table_data_sql.class.php";
class Tmp_Pcmn_SQL extends Table_Data_SQL
{
/**

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -28,7 +28,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
* @brief abstract of the table public.tva_rate
*
*/
class Tva_rate_SQL extends Noalyss_SQL
class Tva_rate_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* author : Dec 2017 , Dany De Bontridder (danydb@noalyss.eu)
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -28,7 +28,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
* @file
* @brief abstract of the table public.user_filter
*/
class User_filter_SQL extends Noalyss_SQL
class User_filter_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)

View file

@ -19,7 +19,7 @@
*/
// Copyright (2018) Author Dany De Bontridder <dany@alchimerys.be>
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**

View file

@ -18,7 +18,7 @@
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once NOALYSS_INCLUDE.'/lib/noalyss_sql.class.php';
require_once NOALYSS_INCLUDE.'/lib/table_data_sql.class.php';
require_once NOALYSS_INCLUDE.'/class/database.class.php';
/**
@ -28,7 +28,7 @@ require_once NOALYSS_INCLUDE.'/class/database.class.php';
* @brief abstract of the view public.v_tva_rate
*
*/
class V_Tva_Rate_SQL extends Noalyss_SQL
class V_Tva_Rate_SQL extends Table_Data_SQL
{
function __construct(DatabaseCore $p_cn, $p_id=-1)