dolibarr-dev
[Top][All Lists]
Advanced

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

Re: [Dolibarr-dev] 2 patches


From: Laurent Destailleur (Eldy)
Subject: Re: [Dolibarr-dev] 2 patches
Date: Tue, 06 Feb 2007 02:55:03 +0100
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

Franky Van Liedekerke a écrit :
Hi,

je peux bien accepter si vous n'aimer pas la manière

$product = new Product($db, $_GET["id"]);

mais alors il faut être consistant dans le code.
En effet. L'historique veut qu'il y a eu des différences dans le coding suite aux préférence de chacun. Ce point n'ayant jamais été normé. Ce dernier l'étant maintenant, il n'est jamais trop tard pour bien faire. Aussi les nouvelles evol devront se faire par:
$xx=new XXX()
$xx->fetch(id);

Pour ce qui est de l'existant, soit on commence à modifier petit a petit (mais c'est un gros boulot), soit on laisse tel quel et on essai de faire cohérent pour tout ce qui vient maintenant.


--
Laurent Destailleur.
---------------------------------------------------------------
EMail: address@hidden
Web: http://www.destailleur.fr
IM: IRC=Eldy, Jabber=Eldy

AWStats (Author) : http://awstats.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net
AWBot (Author) : http://awbot.sourceforge.net
Dolibarr (Contributor) : http://www.dolibarr.org





reply via email to

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