Ahh, yeah tis version of glpi is on an older box. I'm going to toy with the new version and finish my patch (which I'll post to this mailing list) .. Hopefully everything works out in with the current revision
Zipp MoYo <m...@indepnet.net> wrote: >Hi, > >We try to have the same prototype for all similar functions. >You point the showForm function. All the prototype are now : >function showForm($ID, $options=array()) >Maybe you use an old version of GLPI ? > > >We also work to make all functions using an array of options parameters. >This is a big work. A lot of functions have been also corrected but the >work is not finished. > >All contributions are welcome. > >Regards > >Julien > > > >Le 15/02/2011 15:23, Joshua Farrar a écrit : >> One thing I noticed while looking at the source code for core was >> while attempting to rewrite certain functions, there were issues with >> passing arguments in the correct order. Specifically, I was having >> issues while rewriting showForm() .. have you guys looked into passing >> optional arguments as associative arrays or passing them via a >> container object? I feel as though this would allow developers to >> better use the API without needing switch statements for each object >> type they're attempting to call. (Orthogonality?) >> >> Zipp >> >> _______________________________________________ >> Glpi-dev mailing list >> Glpi-dev@gna.org >> https://mail.gna.org/listinfo/glpi-dev > > >_______________________________________________ >Glpi-dev mailing list >Glpi-dev@gna.org >https://mail.gna.org/listinfo/glpi-dev _______________________________________________ Glpi-dev mailing list Glpi-dev@gna.org https://mail.gna.org/listinfo/glpi-dev