diff --git a/include/class/class_acc_balance.php b/include/class/class_acc_balance.php index 1cf3a601f..733402937 100644 --- a/include/class/class_acc_balance.php +++ b/include/class/class_acc_balance.php @@ -33,7 +33,7 @@ class Acc_Balance var $from_poste; /*!< from_poste filter on the post */ var $to_poste; /*!< to_poste filter on the post*/ var $unsold; /**= 0) */ - function Acc_Balance($p_cn) + function __construct($p_cn) { $this->db=$p_cn; $this->jrn=null; diff --git a/include/class/class_acc_bilan.php b/include/class/class_acc_bilan.php index 2088bbdc6..7a5a9b5c2 100644 --- a/include/class/class_acc_bilan.php +++ b/include/class/class_acc_bilan.php @@ -41,7 +41,7 @@ class Acc_Bilan var $from; /*!< from periode */ var $to; /*!< end periode */ - function Acc_Bilan($p_cn) + function __construct($p_cn) { $this->db=$p_cn; } diff --git a/include/class/class_acc_parm_code.php b/include/class/class_acc_parm_code.php index e178e0d0e..6f4dd1e41 100644 --- a/include/class/class_acc_parm_code.php +++ b/include/class/class_acc_parm_code.php @@ -35,7 +35,7 @@ class Acc_Parm_Code var $p_value; /*!< $p_value parm_code.p_value */ var $p_comment; /*!< $p_comment parm_code.p_comment */ // constructor - function Acc_Parm_Code($p_cn,$p_id=-1) + function __construct($p_cn,$p_id=-1) { $this->db=$p_cn; $this->p_code=$p_id; diff --git a/include/class/class_admin.php b/include/class/class_admin.php index b0a5a3d21..0aed0a2fb 100644 --- a/include/class/class_admin.php +++ b/include/class/class_admin.php @@ -45,7 +45,7 @@ class Admin extends Fiche /*! \brief Constructor /* only a db connection is needed */ - function Admin($p_cn,$p_id=0) + function __construct($p_cn,$p_id=0) { $this->fiche_def_ref=FICHE_TYPE_ADM_TAX; parent::__construct($p_cn,$p_id) ; diff --git a/include/class/class_anc_account.php b/include/class/class_anc_account.php index f983c743c..870be0361 100644 --- a/include/class/class_anc_account.php +++ b/include/class/class_anc_account.php @@ -42,7 +42,7 @@ class Anc_Account var $description; /*!< po_description description of the post */ var $db; /*!< database connection*/ var $ga_id; /*!< FK to the table groupe analytique */ - function Anc_Account($p_db,$p_id=0) + function __construct($p_db,$p_id=0) { $this->db=$p_db; $this->id=$p_id; diff --git a/include/class/class_anc_group_operation.php b/include/class/class_anc_group_operation.php index 2140ca9cb..be88b867a 100644 --- a/include/class/class_anc_group_operation.php +++ b/include/class/class_anc_group_operation.php @@ -48,7 +48,7 @@ class Anc_Group_Operation var $pa_id; /*!< the concerned pa_id */ /*!\brief constructor */ - function Anc_Group_Operation($p_cn,$p_id=0) + function __construct($p_cn,$p_id=0) { $this->db=$p_cn; $this->id=$p_id; diff --git a/include/class/class_anc_operation.php b/include/class/class_anc_operation.php index 6465ab03b..16837db1c 100644 --- a/include/class/class_anc_operation.php +++ b/include/class/class_anc_operation.php @@ -63,7 +63,7 @@ class Anc_Operation /*!\brief constructor * */ - function Anc_Operation ($p_cn,$p_id=0) + function __construct ($p_cn,$p_id=0) { $this->db=$p_cn; $this->id=$p_id; diff --git a/include/class/class_anc_plan.php b/include/class/class_anc_plan.php index 3db85afef..291e05ec8 100644 --- a/include/class/class_anc_plan.php +++ b/include/class/class_anc_plan.php @@ -40,7 +40,7 @@ class Anc_Plan var $description; /*!< description of the PA plan_analytique.pa_description*/ var $id; /*!< id = plan_analytique.pa_id */ - function Anc_Plan($p_cn,$p_id=0) + function __construct($p_cn,$p_id=0) { $this->db=$p_cn; $this->id=$p_id; diff --git a/include/class/class_anc_print.php b/include/class/class_anc_print.php index 24d79df75..16c7b6bfe 100644 --- a/include/class/class_anc_print.php +++ b/include/class/class_anc_print.php @@ -45,7 +45,7 @@ class Anc_Print var $from_poste; /*!< $from_poste from poste */ var $to_poste; /*!< $to_poste to the poste */ - function Anc_Print($p_cn) + function __construct($p_cn) { $this->db=$p_cn; $this->from=""; diff --git a/include/class/class_contact.php b/include/class/class_contact.php index 9c7016146..585c9ec04 100644 --- a/include/class/class_contact.php +++ b/include/class/class_contact.php @@ -32,7 +32,7 @@ class contact extends Fiche { var $company; /*!< $company company of the contact (ad_id=ATTR_DEF_COMPANY)*/ /*!\brief constructor */ - function contact($p_cn,$p_id=0) + function __construct($p_cn,$p_id=0) { $this->fiche_def_ref=FICHE_TYPE_CONTACT; parent::__construct($p_cn,$p_id) ; diff --git a/include/class/class_document.php b/include/class/class_document.php index 439f5dd8e..03e764fef 100644 --- a/include/class/class_document.php +++ b/include/class/class_document.php @@ -43,7 +43,7 @@ class Document /* Constructor * \param $p_cn Database connection */ - function Document($p_cn,$p_d_id=0) + function __construct($p_cn,$p_d_id=0) { $this->db=$p_cn; $this->d_id=$p_d_id; diff --git a/include/class/class_document_modele.php b/include/class/class_document_modele.php index edbb2d828..c42551e23 100644 --- a/include/class/class_document_modele.php +++ b/include/class/class_document_modele.php @@ -38,7 +38,7 @@ class Document_modele var $md_affect; /*!< $md_affect if you can use it in VEN for sale, ACH for purchase or GES for follow-up */ var $md_filename; /*! < $md_filename is the filename of the template */ //Constructor parameter = database connexion - function Document_modele($p_cn,$p_id=-1) + function __construct($p_cn,$p_id=-1) { $this->cn=$p_cn; $this->md_id=$p_id; diff --git a/include/class/class_document_type.php b/include/class/class_document_type.php index 2b4b8f088..8bb6121a4 100644 --- a/include/class/class_document_type.php +++ b/include/class/class_document_type.php @@ -34,7 +34,7 @@ class Document_type * \param $p_cn database connx */ - function document_type($p_cn, $p_id = -1) + function __construct($p_cn, $p_id = -1) { $this->db = $p_cn; $this->dt_id = $p_id; diff --git a/include/class/class_gestion_table.php b/include/class/class_gestion_table.php index 30ed6b29e..d5e0a8160 100644 --- a/include/class/class_gestion_table.php +++ b/include/class/class_gestion_table.php @@ -30,7 +30,7 @@ class gestion_table { var $db; /*!< $db database connection */ /*!\brief contains only the dabase connx */ - function gestion_table($p_cn) + function __construct($p_cn) { $this->db=$p_cn; } diff --git a/include/class/class_own.php b/include/class/class_own.php index 7f8416368..1d2b544ad 100644 --- a/include/class/class_own.php +++ b/include/class/class_own.php @@ -47,7 +47,7 @@ class Own var $MY_STOCK; // constructor - function Own($p_cn) + function __construct($p_cn) { $this->db=$p_cn; $Res=$p_cn->exec_sql("select * from parameter where pr_id like 'MY_%'"); diff --git a/include/class/class_pre_op_advanced.php b/include/class/class_pre_op_advanced.php index e0ba2538f..35d5eadb0 100644 --- a/include/class/class_pre_op_advanced.php +++ b/include/class/class_pre_op_advanced.php @@ -30,7 +30,7 @@ require_once NOALYSS_INCLUDE.'/class/class_pre_operation.php'; class Pre_Op_Advanced extends Pre_operation_detail { var $op; - function Pre_Op_Advanced($cn) + function __construct($cn) { parent::__construct($cn); $this->operation->od_direct='t'; diff --git a/include/class/class_pre_operation.php b/include/class/class_pre_operation.php index b0192fcbf..fd926971d 100644 --- a/include/class/class_pre_operation.php +++ b/include/class/class_pre_operation.php @@ -40,7 +40,7 @@ class Pre_operation var $jrn_type; /*!< $jrn_type */ var $name; /*!< $name name of the predef. operation */ - function Pre_operation($cn,$p_id=0) + function __construct($cn,$p_id=0) { $this->db=$cn; $this->od_direct='false'; diff --git a/include/tfpdf/tfpdf.php b/include/tfpdf/tfpdf.php index 698e7a549..f9fb17971 100644 --- a/include/tfpdf/tfpdf.php +++ b/include/tfpdf/tfpdf.php @@ -76,7 +76,7 @@ var $PDFVersion; // PDF version number * Public methods * * * *******************************************************************************/ -function tFPDF($orientation='P', $unit='mm', $size='A4') +function __construct($orientation='P', $unit='mm', $size='A4') { // Some checks $this->_dochecks();