[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/09: Change constructor by __construct
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/09: Change constructor by __construct |
Date: |
Thu, 11 Feb 2016 15:13:56 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 39efc6e919969322d9c68827c49a05d505a4907d
Author: Dany De Bontridder <address@hidden>
Date: Mon Feb 8 00:30:24 2016 +0100
Change constructor by __construct
---
include/class/class_acc_balance.php | 2 +-
include/class/class_acc_bilan.php | 2 +-
include/class/class_acc_parm_code.php | 2 +-
include/class/class_admin.php | 2 +-
include/class/class_anc_account.php | 2 +-
include/class/class_anc_group_operation.php | 2 +-
include/class/class_anc_operation.php | 2 +-
include/class/class_anc_plan.php | 2 +-
include/class/class_anc_print.php | 2 +-
include/class/class_contact.php | 2 +-
include/class/class_document.php | 2 +-
include/class/class_document_modele.php | 2 +-
include/class/class_document_type.php | 2 +-
include/class/class_gestion_table.php | 2 +-
include/class/class_own.php | 2 +-
include/class/class_pre_op_advanced.php | 2 +-
include/class/class_pre_operation.php | 2 +-
include/tfpdf/tfpdf.php | 2 +-
18 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/include/class/class_acc_balance.php
b/include/class/class_acc_balance.php
index 1cf3a60..7334029 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 2088bbd..7a5a9b5 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 e178e0d..6f4dd1e 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 b0a5a3d..0aed0a2 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 f983c74..870be03 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 2140ca9..be88b86 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 6465ab0..16837db 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 3db85af..291e05e 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 24d79df..16c7b6b 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 9c70161..585c9ec 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 439f5dd..03e764f 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 edbb2d8..c42551e 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 2b4b8f0..8bb6121 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 30ed6b2..d5e0a81 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 7f84163..1d2b544 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 e0ba253..35d5ead 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 b0192fc..fd92697 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 698e7a5..f9fb179 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();
- [Noalyss-commit] [noalyss] branch master updated (adcf886 -> 81fd85e), Dany De Bontridder, 2016/02/11
- [Noalyss-commit] [noalyss] 01/09: Change constructor by __construct,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/09: Bug when adding a empty note, Dany De Bontridder, 2016/02/11
- [Noalyss-commit] [noalyss] 03/09: Improve appearance waiting_box, Dany De Bontridder, 2016/02/11
- [Noalyss-commit] [noalyss] 04/09: small notice, Dany De Bontridder, 2016/02/11
- [Noalyss-commit] [noalyss] 05/09: replace phpcompta by noalyss, Dany De Bontridder, 2016/02/11
- [Noalyss-commit] [noalyss] 06/09: Task #15 - FenĂȘtre gestion : impossible d'afficher les commentaires des actions dĂ©pendantes Bug : undefined variable margin , the parent cannot be displaid, Dany De Bontridder, 2016/02/11
- [Noalyss-commit] [noalyss] 07/09: doc, Dany De Bontridder, 2016/02/11
- [Noalyss-commit] [noalyss] 08/09: Add function to grant or revoke admin to a folder, Dany De Bontridder, 2016/02/11
- [Noalyss-commit] [noalyss] 09/09: Update unit test files, Dany De Bontridder, 2016/02/11