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: [EMAIL PROTECTED]
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



_______________________________________________
Dolibarr-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à