diff --git a/include/database/action_gestion_comment_sql.class.php b/include/database/action_gestion_comment_sql.class.php index 532acb9b1..2a734ae71 100644 --- a/include/database/action_gestion_comment_sql.class.php +++ b/include/database/action_gestion_comment_sql.class.php @@ -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) diff --git a/include/database/action_gestion_sql.class.php b/include/database/action_gestion_sql.class.php index 97d51b388..99833cae5 100644 --- a/include/database/action_gestion_sql.class.php +++ b/include/database/action_gestion_sql.class.php @@ -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) diff --git a/include/database/anc_key_sql.class.php b/include/database/anc_key_sql.class.php index 5a2bc2d0a..0a6a539a4 100644 --- a/include/database/anc_key_sql.class.php +++ b/include/database/anc_key_sql.class.php @@ -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) { diff --git a/include/database/attr_def_sql.class.php b/include/database/attr_def_sql.class.php index c4160b6c7..9327f5d53 100644 --- a/include/database/attr_def_sql.class.php +++ b/include/database/attr_def_sql.class.php @@ -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) diff --git a/include/database/contact_option_ref_sql.class.php b/include/database/contact_option_ref_sql.class.php index 969235f08..a431e2b99 100644 --- a/include/database/contact_option_ref_sql.class.php +++ b/include/database/contact_option_ref_sql.class.php @@ -20,7 +20,7 @@ */ // Copyright (2002-2020) Author Dany De Bontridder -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) diff --git a/include/database/currency_history_sql.class.php b/include/database/currency_history_sql.class.php index 5bc95e043..5d217e8e3 100644 --- a/include/database/currency_history_sql.class.php +++ b/include/database/currency_history_sql.class.php @@ -19,7 +19,7 @@ */ // Copyright (2018) Author Dany De Bontridder -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) diff --git a/include/database/default_menu_sql.class.php b/include/database/default_menu_sql.class.php index 4f3f5caff..e885bce58 100644 --- a/include/database/default_menu_sql.class.php +++ b/include/database/default_menu_sql.class.php @@ -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; diff --git a/include/database/document_state_sql.class.php b/include/database/document_state_sql.class.php index a4fbef988..50d04df66 100644 --- a/include/database/document_state_sql.class.php +++ b/include/database/document_state_sql.class.php @@ -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) diff --git a/include/database/document_type_sql.class.php b/include/database/document_type_sql.class.php index 36e2d5b36..d9ebc4190 100644 --- a/include/database/document_type_sql.class.php +++ b/include/database/document_type_sql.class.php @@ -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) diff --git a/include/database/fiche_def_ref_sql.class.php b/include/database/fiche_def_ref_sql.class.php index c895dde4a..7088dbd7e 100644 --- a/include/database/fiche_def_ref_sql.class.php +++ b/include/database/fiche_def_ref_sql.class.php @@ -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) diff --git a/include/database/forecast_category_sql.class.php b/include/database/forecast_category_sql.class.php index f35594fbd..35e9a410b 100644 --- a/include/database/forecast_category_sql.class.php +++ b/include/database/forecast_category_sql.class.php @@ -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) diff --git a/include/database/forecast_item_sql.class.php b/include/database/forecast_item_sql.class.php index 0bafd8cfe..4af85ae11 100644 --- a/include/database/forecast_item_sql.class.php +++ b/include/database/forecast_item_sql.class.php @@ -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) diff --git a/include/database/forecast_sql.class.php b/include/database/forecast_sql.class.php index 31e5153bf..d4fcebe3b 100644 --- a/include/database/forecast_sql.class.php +++ b/include/database/forecast_sql.class.php @@ -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) diff --git a/include/database/jrn_def_sql.class.php b/include/database/jrn_def_sql.class.php index 0057e8e24..d3c3208de 100644 --- a/include/database/jrn_def_sql.class.php +++ b/include/database/jrn_def_sql.class.php @@ -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) diff --git a/include/database/jrn_periode_sql.class.php b/include/database/jrn_periode_sql.class.php index 4dfe90546..4beed61ad 100644 --- a/include/database/jrn_periode_sql.class.php +++ b/include/database/jrn_periode_sql.class.php @@ -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) diff --git a/include/database/menu_ref_sql.class.php b/include/database/menu_ref_sql.class.php index c597c9c71..3c2eb816d 100644 --- a/include/database/menu_ref_sql.class.php +++ b/include/database/menu_ref_sql.class.php @@ -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) diff --git a/include/database/op_predef_sql.class.php b/include/database/op_predef_sql.class.php index 3bf2c80ed..3c19e49d4 100644 --- a/include/database/op_predef_sql.class.php +++ b/include/database/op_predef_sql.class.php @@ -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) diff --git a/include/database/operation_currency_sql.class.php b/include/database/operation_currency_sql.class.php index 2aaaf4398..2fd69ef86 100644 --- a/include/database/operation_currency_sql.class.php +++ b/include/database/operation_currency_sql.class.php @@ -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) diff --git a/include/database/parameter_extra_sql.class.php b/include/database/parameter_extra_sql.class.php index 91c1ab107..d92a5f2db 100644 --- a/include/database/parameter_extra_sql.class.php +++ b/include/database/parameter_extra_sql.class.php @@ -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) diff --git a/include/database/parm_periode_sql.class.php b/include/database/parm_periode_sql.class.php index c9fc7ac98..4cb10eca2 100644 --- a/include/database/parm_periode_sql.class.php +++ b/include/database/parm_periode_sql.class.php @@ -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) diff --git a/include/database/payment_method_sql.class.php b/include/database/payment_method_sql.class.php index 52adfa770..95fd6451a 100644 --- a/include/database/payment_method_sql.class.php +++ b/include/database/payment_method_sql.class.php @@ -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) diff --git a/include/database/poste_analytique_sql.class.php b/include/database/poste_analytique_sql.class.php index ed17f4d9b..d3d883e79 100644 --- a/include/database/poste_analytique_sql.class.php +++ b/include/database/poste_analytique_sql.class.php @@ -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) diff --git a/include/database/profile_menu_sql.class.php b/include/database/profile_menu_sql.class.php index 6189fb91d..cfd92d91b 100644 --- a/include/database/profile_menu_sql.class.php +++ b/include/database/profile_menu_sql.class.php @@ -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) diff --git a/include/database/profile_sql.class.php b/include/database/profile_sql.class.php index 33ecc49aa..358bc226f 100644 --- a/include/database/profile_sql.class.php +++ b/include/database/profile_sql.class.php @@ -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); */ diff --git a/include/database/stock_goods_sql.class.php b/include/database/stock_goods_sql.class.php index 9fae50053..5122adef5 100644 --- a/include/database/stock_goods_sql.class.php +++ b/include/database/stock_goods_sql.class.php @@ -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) diff --git a/include/database/stock_sql.class.php b/include/database/stock_sql.class.php index 2e56828f2..ad23de2bd 100644 --- a/include/database/stock_sql.class.php +++ b/include/database/stock_sql.class.php @@ -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"; diff --git a/include/database/tag_group_sql.class.php b/include/database/tag_group_sql.class.php index ec82dedb8..f3103a52b 100644 --- a/include/database/tag_group_sql.class.php +++ b/include/database/tag_group_sql.class.php @@ -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) diff --git a/include/database/tag_sql.class.php b/include/database/tag_sql.class.php index 9876b9c47..1f2132473 100644 --- a/include/database/tag_sql.class.php +++ b/include/database/tag_sql.class.php @@ -1,7 +1,7 @@ column_name,"email"=>"column_name_email","val3"=>0); */ diff --git a/include/database/tmp_pcmn_sql.class.php b/include/database/tmp_pcmn_sql.class.php index ed77c7f41..c39ebb894 100644 --- a/include/database/tmp_pcmn_sql.class.php +++ b/include/database/tmp_pcmn_sql.class.php @@ -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 { /** diff --git a/include/database/tva_rate_sql.class.php b/include/database/tva_rate_sql.class.php index 9ad5d693f..27f018e3a 100644 --- a/include/database/tva_rate_sql.class.php +++ b/include/database/tva_rate_sql.class.php @@ -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) diff --git a/include/database/user_filter_sql.class.php b/include/database/user_filter_sql.class.php index d43e3c500..b64753380 100644 --- a/include/database/user_filter_sql.class.php +++ b/include/database/user_filter_sql.class.php @@ -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) diff --git a/include/database/v_currency_last_value_sql.class.php b/include/database/v_currency_last_value_sql.class.php index 1b2387c33..4694927d5 100644 --- a/include/database/v_currency_last_value_sql.class.php +++ b/include/database/v_currency_last_value_sql.class.php @@ -19,7 +19,7 @@ */ // Copyright (2018) Author Dany De Bontridder -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'; /** diff --git a/include/database/v_tva_rate_sql.class.php b/include/database/v_tva_rate_sql.class.php index 0b3de4c30..1af81dab4 100644 --- a/include/database/v_tva_rate_sql.class.php +++ b/include/database/v_tva_rate_sql.class.php @@ -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) diff --git a/include/lib/impress.class.php b/include/lib/impress.class.php index e03a1a4d8..81505e52b 100644 --- a/include/lib/impress.class.php +++ b/include/lib/impress.class.php @@ -18,16 +18,22 @@ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -/*!\file - * \brief contains function for the printing -*/ +/*! + * \file + * \brief contains function for the parsing and computing formulae. Test are in scenario/test_parse_formula.php + */ require_once NOALYSS_INCLUDE.'/class/periode.class.php'; require_once NOALYSS_INCLUDE.'/lib/noalyss_csv.class.php'; - +/** + * @class + * @brief contains function for the parsing and computing formulae . Test are in scenario/test_parse_formula.php + */ class Impress { - /*! \brief Purpose Parse a formula + /*! + * + * \brief Purpose Parse a formula * * \param $p_cn connexion * \param $p_label @@ -238,10 +244,10 @@ class Impress $p_string= preg_replace("/\+|-|\/|\*/", "", $p_string); $p_string= preg_replace("/[0-9]*\.*[0-9]/", "", $p_string); - //******************************************************************************************************************** + //************************************************************************************************************ // If the string is empty then formula should be good // - //******************************************************************************************************************** + //************************************************************************************************************ if ($p_string == '') { return true; diff --git a/include/lib/noalyss_sql.class.php b/include/lib/noalyss_sql.class.php index 3c79b4146..4926b7a55 100644 --- a/include/lib/noalyss_sql.class.php +++ b/include/lib/noalyss_sql.class.php @@ -1,5 +1,4 @@ table = "schema.table"; - $this->primary_key = "o_id"; - - $this->name=array( - "id"=>"o_id", - "program"=>"o_prog", - "date"=>"o_date", - "qcode"=>"o_qcode", - "fiche"=>"f_id", - - - ); - - $this->type = array( - "o_id"=>"numeric", - "o_prog"=>"numeric", - "o_date"=>"date", - "o_qcode"=>"text", - "f_id"=>"numeric", - - ); - - $this->default = array( - "o_id" => "auto", - ); - $this->date_format = "DD.MM.YYYY"; - global $cn; - - parent::__construct($cn,$p_id); - } - - } - * @endcode - * */ -require NOALYSS_INCLUDE."/lib/data_sql.class.php"; -abstract class Noalyss_SQL extends Data_SQL +/** + * @class + * @brief this class is deprecated and inherits from Table_Data_SQL. It remains only for compatibility + * purpose + * @see Table_Data_SQL + * @deprecated since version 9.0 + */ +class Noalyss_SQL extends Table_Data_SQL { - - function __construct($p_cn, $p_id=-1) - { - parent::__construct($p_cn, $p_id); - - } - - - public function insert() - { - $this->verify(); - $sql="insert into ".$this->table." ( "; - $sep=""; - $par=""; - $idx=1; - $array=array(); - foreach ($this->name as $key=> $value) - { - if (isset($this->default[$value])&&$this->default[$value]=="auto"&&$this->$value==null) - continue; - if ($value==$this->primary_key&&$this->$value==-1) - continue; - $sql.=$sep.$value; - switch ($this->type[$value]) - { - case "date": - if ($this->date_format=="") - throw new Exception('Format Date invalide'); - $par .=$sep.'to_timestamp($'.$idx.",'".$this->date_format."')"; - break; - default: - $par .= $sep."$".$idx; - } - - $array[]=$this->$value; - $sep=","; - $idx++; - } - $sql.=") values (".$par.") returning ".$this->primary_key; - $pk=$this->primary_key; - $returning=$this->cn->get_value($sql, $array); - $this->$pk=$returning; - } - - public function delete() - { - $pk=$this->primary_key; - $sql=" delete from ".$this->table." where ".$this->primary_key."= $1"; - $this->cn->exec_sql($sql,array($this->$pk)); - } - - public function update() - { - $this->verify(); - $pk=$this->primary_key; - $sql="update ".$this->table." "; - $sep=""; - $idx=1; - $array=array(); - $set=" set "; - foreach ($this->name as $key=> $value) { - if (isset($this->default[$value])&&$this->default[$value]=="auto") - continue; - switch ($this->type[$value]) - { - case "date": - $par=$value.'=to_timestamp($'.$idx.",'".$this->date_format."')"; - break; - default: - $par=$value."= $".$idx; - } - $sql.=$sep." $set ".$par; - $array[]=$this->$value; - $sep=","; - $set=""; - $idx++; - } - $array[]=$this->$pk; - $sql.=" where ".$this->primary_key." = $".$idx; - $this->cn->exec_sql($sql, $array); - } - /*** - * @brief load a row , corresponding to the primary key - */ - public function load() - { - $sql=$this->build_query(); - $pk=$this->primary_key; - - $result=$this->cn->get_array($sql,array ($this->$pk)); - if ($this->cn->count()==0) - { - $this->$pk=-1; - return; - } - - foreach ($result[0] as $key=> $value) - { - $this->$key=$value; - } - } - - - /** - * @brief retrieve array of object thanks a condition - * @param $cond condition (where clause) (optional by default all the rows are fetched) - * you can use this parameter for the order or subselect - * @param $p_array array for the SQL stmt - * @see Database::exec_sql get_object Database::num_row - * @return the return value of exec_sql - */ - function seek($cond='', $p_array=null) - { - $sql="select * from ".$this->table." $cond"; - $ret=$this->cn->exec_sql($sql, $p_array); - return $ret; - } - - - /** - * return the number of count in the table corresponding to the where condition - * @param string $p_where the condition appended to the SQL select query , where must be given - * @param array $p_array variable from the $p_where condition - * @return type - */ - public function count($p_where="",$p_array=null) { - $count=$this->cn->get_value("select count(*) from $this->table ".$p_where,$p_array); - return $count; - } - /** - * Count the number of record with the id , - * @return integer 0 doesn't exist , 1 exists - */ - public function exist() { - $pk=$this->primary_key; - $count=$this->cn->get_value("select count(*) from ".$this->table." where ".$this->primary_key."=$1",array($this->$pk)); - return $count; - } - - /** - * Build the SQL select statement for querying the object and returns it - * @return string Query of the object - */ - public function build_query() - { - $sql=" select "; - $sep=""; - foreach ($this->name as $key) { - switch ($this->type[$key]) - { - case "date": - $sql .= $sep.'to_char('.$key.",'".$this->date_format."') as ".$key; - break; - default: - $sql.=$sep.$key; - } - $sep=","; - } - $pk=$this->primary_key; - $sql.=" from ".$this->table; - - $sql.=" where ".$this->primary_key." = $1"; - - return $sql; - } - /** - * @brief Get all the row and use the p_key_code are the key value of array. - * The key column is usually the primary key or any unique key. - * the returns looks like - * @code - [ID1]=>array( ["PRIMARYKEY"=>"ID1" - , "VALUE" => 2]); - [ID2]=>array( ["PRIMARYKEY"=>"ID2" - , "VALUE" => 2]); - @endcode - * @note It should be used only for small tables: the array is build row by row - * @param string $p_key_col existing and unique key - * @param string $p_cond sql cond - * @param array $p_array array of value for the SQL condition - */ - public function get_all_to_array($p_key_col,$p_cond="",$p_array=NULL) - { - $ret=$this->seek($p_cond, $p_array); - if ($ret==FALSE) - return array(); - $a_array=Database::fetch_all($ret); - $nb_array=count($a_array); - $a_result=array(); - try - { - for ($i=0; $i<$nb_array; $i++) - { - if (!isset($a_array[$i][$p_key_col])) - { - throw new Exception("col not found ".$p_key_col); - } - $key=$a_array[$i][$p_key_col]; - if ( isset ($a_result[$key]) ){ - throw new Exception ("duplicate found col : $key"); - } - $a_result[$key]=$a_array[$i]; - } - } - catch (Exception $exc) - { - echo $exc->getMessage(); - record_log($exc->getMessage()); - record_log($exc->getTraceAsString()); - throw $exc; - } - return $a_result; - } - -} - -?> +} \ No newline at end of file diff --git a/include/lib/table_data_sql.class.php b/include/lib/table_data_sql.class.php new file mode 100644 index 000000000..66578de5a --- /dev/null +++ b/include/lib/table_data_sql.class.php @@ -0,0 +1,305 @@ +table = "schema.table"; + $this->primary_key = "o_id"; + + $this->name=array( + "id"=>"o_id", + "program"=>"o_prog", + "date"=>"o_date", + "qcode"=>"o_qcode", + "fiche"=>"f_id", + + + ); + + $this->type = array( + "o_id"=>"numeric", + "o_prog"=>"numeric", + "o_date"=>"date", + "o_qcode"=>"text", + "f_id"=>"numeric", + + ); + + $this->default = array( + "o_id" => "auto", + ); + $this->date_format = "DD.MM.YYYY"; + global $cn; + + parent::__construct($cn,$p_id); + } + + } + * @endcode + * + */ +require NOALYSS_INCLUDE."/lib/data_sql.class.php"; + +abstract class Table_Data_SQL extends Data_SQL +{ + + + function __construct($p_cn, $p_id=-1) + { + parent::__construct($p_cn, $p_id); + + } + + + public function insert() + { + $this->verify(); + $sql="insert into ".$this->table." ( "; + $sep=""; + $par=""; + $idx=1; + $array=array(); + foreach ($this->name as $key=> $value) + { + if (isset($this->default[$value])&&$this->default[$value]=="auto"&&$this->$value==null) + continue; + if ($value==$this->primary_key&&$this->$value==-1) + continue; + $sql.=$sep.$value; + switch ($this->type[$value]) + { + case "date": + if ($this->date_format=="") + throw new Exception('Format Date invalide'); + $par .=$sep.'to_timestamp($'.$idx.",'".$this->date_format."')"; + break; + default: + $par .= $sep."$".$idx; + } + + $array[]=$this->$value; + $sep=","; + $idx++; + } + $sql.=") values (".$par.") returning ".$this->primary_key; + $pk=$this->primary_key; + $returning=$this->cn->get_value($sql, $array); + $this->$pk=$returning; + } + + public function delete() + { + $pk=$this->primary_key; + $sql=" delete from ".$this->table." where ".$this->primary_key."= $1"; + $this->cn->exec_sql($sql,array($this->$pk)); + } + + public function update() + { + $this->verify(); + $pk=$this->primary_key; + $sql="update ".$this->table." "; + $sep=""; + $idx=1; + $array=array(); + $set=" set "; + foreach ($this->name as $key=> $value) { + if (isset($this->default[$value])&&$this->default[$value]=="auto") + continue; + switch ($this->type[$value]) + { + case "date": + $par=$value.'=to_timestamp($'.$idx.",'".$this->date_format."')"; + break; + default: + $par=$value."= $".$idx; + } + $sql.=$sep." $set ".$par; + $array[]=$this->$value; + $sep=","; + $set=""; + $idx++; + } + $array[]=$this->$pk; + $sql.=" where ".$this->primary_key." = $".$idx; + $this->cn->exec_sql($sql, $array); + } + /*** + * @brief load a row , corresponding to the primary key + */ + public function load() + { + $sql=$this->build_query(); + $pk=$this->primary_key; + + $result=$this->cn->get_array($sql,array ($this->$pk)); + if ($this->cn->count()==0) + { + $this->$pk=-1; + return; + } + + foreach ($result[0] as $key=> $value) + { + $this->$key=$value; + } + } + + + /** + * @brief retrieve array of object thanks a condition + * @param $cond condition (where clause) (optional by default all the rows are fetched) + * you can use this parameter for the order or subselect + * @param $p_array array for the SQL stmt + * @see Database::exec_sql get_object Database::num_row + * @return the return value of exec_sql + */ + function seek($cond='', $p_array=null) + { + $sql="select * from ".$this->table." $cond"; + $ret=$this->cn->exec_sql($sql, $p_array); + return $ret; + } + + + /** + * return the number of count in the table corresponding to the where condition + * @param string $p_where the condition appended to the SQL select query , where must be given + * @param array $p_array variable from the $p_where condition + * @return type + */ + public function count($p_where="",$p_array=null) { + $count=$this->cn->get_value("select count(*) from $this->table ".$p_where,$p_array); + return $count; + } + /** + * Count the number of record with the id , + * @return integer 0 doesn't exist , 1 exists + */ + public function exist() { + $pk=$this->primary_key; + $count=$this->cn->get_value("select count(*) from ".$this->table." where ".$this->primary_key."=$1",array($this->$pk)); + return $count; + } + + /** + * Build the SQL select statement for querying the object and returns it + * @return string Query of the object + */ + public function build_query() + { + $sql=" select "; + $sep=""; + foreach ($this->name as $key) { + switch ($this->type[$key]) + { + case "date": + $sql .= $sep.'to_char('.$key.",'".$this->date_format."') as ".$key; + break; + default: + $sql.=$sep.$key; + } + $sep=","; + } + $pk=$this->primary_key; + $sql.=" from ".$this->table; + + $sql.=" where ".$this->primary_key." = $1"; + + return $sql; + } + /** + * @brief Get all the row and use the p_key_code are the key value of array. + * The key column is usually the primary key or any unique key. + * the returns looks like + * @code + [ID1]=>array( ["PRIMARYKEY"=>"ID1" + , "VALUE" => 2]); + [ID2]=>array( ["PRIMARYKEY"=>"ID2" + , "VALUE" => 2]); + @endcode + * @note It should be used only for small tables: the array is build row by row + * @param string $p_key_col existing and unique key + * @param string $p_cond sql cond + * @param array $p_array array of value for the SQL condition + */ + public function get_all_to_array($p_key_col,$p_cond="",$p_array=NULL) + { + $ret=$this->seek($p_cond, $p_array); + if ($ret==FALSE) + return array(); + $a_array=Database::fetch_all($ret); + $nb_array=count($a_array); + $a_result=array(); + try + { + for ($i=0; $i<$nb_array; $i++) + { + if (!isset($a_array[$i][$p_key_col])) + { + throw new Exception("col not found ".$p_key_col); + } + $key=$a_array[$i][$p_key_col]; + if ( isset ($a_result[$key]) ){ + throw new Exception ("duplicate found col : $key"); + } + $a_result[$key]=$a_array[$i]; + } + } + catch (Exception $exc) + { + echo $exc->getMessage(); + record_log($exc->getMessage()); + record_log($exc->getTraceAsString()); + throw $exc; + } + return $a_result; + } + +} + +?> diff --git a/scenario/test_parse_formula.php b/scenario/test_parse_formula.php index 4d8f2c15b..52663b12b 100644 --- a/scenario/test_parse_formula.php +++ b/scenario/test_parse_formula.php @@ -3,7 +3,7 @@ /* # check the Impress::check_formula and the parse_formula # This file is a part of NOALYSS under GPL -# Author D. DE BONTRIDDER danydb@aevalys.eu +# Author Dany WM DE BONTRIDDER danydb@aevalys.eu */ include_once NOALYSS_INCLUDE.'/lib/impress.class.php'; @@ -29,23 +29,28 @@ foreach ( array('1', '[50%]*9.0FROM=01.2004', 'system', 'unlink', - 'ls -1') + 'ls -1', + '', + "[45ABC]*1", + + + ) as $a ) { - echo "Testing :".$a; + echo "Testing :".h($a); echo (Impress::check_formula($a)==false)?'Non valide ':'ok'; echo '
'; foreach (array('+','-','/') as $b ) { $ee=str_replace('*',$b,$a); - echo "Testing :".$ee; + echo "Testing :".h($ee); echo (Impress::check_formula($ee)==false)?'Non valide ':'ok'; echo '
'; } for($e=0;$e<3;$e++) { $a.="*".$a; - echo "Testing :".$a; + echo "Testing :".h($a); echo (Impress::check_formula($a)==false)?'Non valide ':'ok'; echo '
'; diff --git a/unit-test/include/lib/databaseTest.class.php b/unit-test/include/lib/databaseTest.class.php deleted file mode 100644 index f25b1a6e6..000000000 --- a/unit-test/include/lib/databaseTest.class.php +++ /dev/null @@ -1,620 +0,0 @@ -object=new Database; - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - */ - protected function tearDown() - { - - } - - /** - * @covers Database::connect - * @todo Implement testConnect(). - */ - public function testConnect() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::verify - * @todo Implement testVerify(). - */ - public function testVerify() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::set_encoding - * @todo Implement testSet_encoding(). - */ - public function testSet_encoding() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::exec_sql - * @todo Implement testExec_sql(). - */ - public function testExec_sql() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::count_sql - * @todo Implement testCount_sql(). - */ - public function testCount_sql() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::get_current_seq - * @todo Implement testGet_current_seq(). - */ - public function testGet_current_seq() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::get_next_seq - * @todo Implement testGet_next_seq(). - */ - public function testGet_next_seq() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::start - * @todo Implement testStart(). - */ - public function testStart() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::commit - * @todo Implement testCommit(). - */ - public function testCommit() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::rollback - * @todo Implement testRollback(). - */ - public function testRollback() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::alter_seq - * @todo Implement testAlter_seq(). - */ - public function testAlter_seq() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::execute_script - * @todo Implement testExecute_script(). - */ - public function testExecute_script() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::get_version - * @todo Implement testGet_version(). - */ - public function testGet_version() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::fetch - * @todo Implement testFetch(). - */ - public function testFetch() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::size - * @todo Implement testSize(). - */ - public function testSize() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::count - * @todo Implement testCount(). - */ - public function testCount() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::apply_patch - * @todo Implement testApply_patch(). - */ - public function testApply_patch() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::get_value - * @todo Implement testGet_value(). - */ - public function testGet_value() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::get_affected - * @todo Implement testGet_affected(). - */ - public function testGet_affected() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::get_array - * @todo Implement testGet_array(). - */ - public function testGet_array() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::create_sequence - * @todo Implement testCreate_sequence(). - */ - public function testCreate_sequence() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::exist_sequence - * @todo Implement testExist_sequence(). - */ - public function testExist_sequence() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::exist_table - * @todo Implement testExist_table(). - */ - public function testExist_table() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::exist_column - * @todo Implement testExist_column(). - */ - public function testExist_column() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::format_name - * @todo Implement testFormat_name(). - */ - public function testFormat_name() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::exist_database - * @todo Implement testExist_database(). - */ - public function testExist_database() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::exist_blob - * @todo Implement testExist_blob(). - */ - public function testExist_blob() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::exist_view - * @todo Implement testExist_view(). - */ - public function testExist_view() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::exist_schema - * @todo Implement testExist_schema(). - */ - public function testExist_schema() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::make_list - * @todo Implement testMake_list(). - */ - public function testMake_list() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::make_array - * @todo Implement testMake_array(). - */ - public function testMake_array() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::save_receipt - * @todo Implement testSave_receipt(). - */ - public function testSave_receipt() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::upload - * @todo Implement testUpload(). - */ - public function testUpload() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::num_row - * @todo Implement testNum_row(). - */ - public function testNum_row() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::fetch_array - * @todo Implement testFetch_array(). - */ - public function testFetch_array() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::fetch_all - * @todo Implement testFetch_all(). - */ - public function testFetch_all() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::fetch_result - * @todo Implement testFetch_result(). - */ - public function testFetch_result() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::fetch_row - * @todo Implement testFetch_row(). - */ - public function testFetch_row() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::lo_unlink - * @todo Implement testLo_unlink(). - */ - public function testLo_unlink() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::prepare - * @todo Implement testPrepare(). - */ - public function testPrepare() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::execute - * @todo Implement testExecute(). - */ - public function testExecute() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::lo_export - * @todo Implement testLo_export(). - */ - public function testLo_export() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::lo_import - * @todo Implement testLo_import(). - */ - public function testLo_import() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::escape_string - * @todo Implement testEscape_string(). - */ - public function testEscape_string() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::close - * @todo Implement testClose(). - */ - public function testClose() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::__toString - * @todo Implement test__toString(). - */ - public function test__toString() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::test_me - * @todo Implement testTest_me(). - */ - public function testTest_me() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::status - * @todo Implement testStatus(). - */ - public function testStatus() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers Database::query_to_csv - * @todo Implement testQuery_to_csv(). - */ - public function testQuery_to_csv() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - -} diff --git a/unit-test/include/lib/Noalyss_SQLTest.class.php b/unit-test/include/lib/table_sql_sqlTest.class.php similarity index 100% rename from unit-test/include/lib/Noalyss_SQLTest.class.php rename to unit-test/include/lib/table_sql_sqlTest.class.php