Change constructor by __construct

This commit is contained in:
Dany De Bontridder 2016-02-08 00:30:24 +01:00
parent adcf8863b1
commit 39efc6e919
18 changed files with 18 additions and 18 deletions

View file

@ -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;

View file

@ -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;
}

View file

@ -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;

View file

@ -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) ;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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="";

View file

@ -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) ;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;
}

View file

@ -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_%'");

View file

@ -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';

View file

@ -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';

View file

@ -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();