[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] Facture class

From: Florian Henry
Subject: Re: [Dolibarr-dev] Facture class
Date: Mon, 10 Jun 2013 10:12:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

I think the better things to do is to pass the user as parameters (and check each call to be sure the parameters is correctly passed)
It's done like that in all class CRUD method. Global $user should be avoid into class method.

Florian HENRY
+33 6 03 76 48 07
Twitter : @_Open_Concept_
Secretaire de l'association Dolibarr
Le 10/06/2013 09:55, Maxime Kohlhaas a écrit :
Hi all,

Just wondering why the FactureLigne update method has $user as first parameter... Propal and Commande don't have it, and the $user var is defined by global just after.

Should I remove this parameter and check where this function is called ?


Maxime Kohlhaas
Consultant associé
ATM Consulting
+33 6 33 42 92 43

Dolibarr-dev mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]