Questions about writing a plugin
Posted: 02 Apr 2010, 20:32
Hi,
I'm just getting used to writing a plugin for v1.2, and I have a few questions concerning a few functions I would like to take advantage of.
The references I referred to are here:
http://www.mantisbt.org/wiki/doku.php/m ... s_overview
Issue A:
Can someone clarify how I really can connect and manipulate values to the database? I want to create and modify my own table in the existing mantis database, but I don't understand how to properly do it.
Issue B:
If issue A fails (well, either way), how can I stake advantage of the plugin callback functions (e.g. the install(), upgrade(), uninstall(), etc...)? I want to create a database when someone installs (or else I might have to do it the "poor-man's way") and remove the table when someone uninstalls it.
Examples would probably help me out big time here, because my main problem is that I cannot find any plugins out there that utilizes the install and uninstall function and manipulates the database using mantis' built-in commands. Thanks in advanced!
I'm just getting used to writing a plugin for v1.2, and I have a few questions concerning a few functions I would like to take advantage of.
The references I referred to are here:
http://www.mantisbt.org/wiki/doku.php/m ... s_overview
Issue A:
Can someone clarify how I really can connect and manipulate values to the database? I want to create and modify my own table in the existing mantis database, but I don't understand how to properly do it.
Issue B:
If issue A fails (well, either way), how can I stake advantage of the plugin callback functions (e.g. the install(), upgrade(), uninstall(), etc...)? I want to create a database when someone installs (or else I might have to do it the "poor-man's way") and remove the table when someone uninstalls it.
Examples would probably help me out big time here, because my main problem is that I cannot find any plugins out there that utilizes the install and uninstall function and manipulates the database using mantis' built-in commands. Thanks in advanced!