I'm starting to code a plugin, for now i'm starting using the example
plugin and extending it a little bit, but i'm finding some trouble.

AFAIK reading https://dev.indepnet.net:8080/plugins/wiki/CreatePlugin
in french (english seems outdated/less accurate) the only needed things
are _relpos.php, index.php, config.php and setup.php, with the rest
(inc, locale, front, ...) as a mere suggestion on how to organize the
code.
So seems that there's no fixed rules on how to code, so i can use
normal php and i'm not forced to OO php code (probably i'll use oo
code, but for experimenting i'm more comfortable with plain code).

I've noted that in the example code the only hook not defined are the
setup hook, and also on other two plugin i'm looking at (backup and
appweb) the setup hook are not defined; but plugin install someway, so
where the installation/setup/table creation code belong to?


Clearly, the first things this app need are table creation, and i'm
just stopped on this. ;)


Could be the example plugin be extended a bit to have at least a
descriptive table and a form that use them?
I think that 98% of plugins are like this, and extending a plugin it is
a better task then simplyfy one. ;)

[or, someone can point me to an existing glpi plugin that it is really
simple?]

-- 
dott. Marco Gaiarin                                 GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it      tel +39-0434-842711  fax +39-0434-842797

_______________________________________________
Glpi-dev mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-dev

Reply via email to