djik
March 5, 2013, 8:55am
1
Hello,
I’m working on creating Piwik plugin. I know it is possible to perform actions during installation, uninstallation, activation, … .
I am trying to understand how the activation of its functions. To activate (), I understood.
However, I only slightly with install (). Can you tell me at what time this function is activated?
This is the moment where we dump the plugin? At the moment when the plugin is available in the Administration menu plugins?
thank you for your help
Djik
matthieu
(Matthieu Aubry)
March 5, 2013, 11:38am
2
install()is executed only once and should be used for creating SQL tables.
to force install() to display again you can delete the plugin name from config/config.ini.php under PluginInstalled[]
djik
March 6, 2013, 8:38am
3
Ok, thanks Matt.
However, when the function uninstall() is she activate?
To uninstall, it removes the plugin directory, how piwik retrieves the code execute?
thank you
matthieu
(Matthieu Aubry)
March 6, 2013, 10:32am
4
Not implemented yet, we will implement it in 3-4 months
djik
March 6, 2013, 11:32am
5
Ok
But it’s weird, the core Core / plugin.php Implement this function. I’m working on the release of piwik 1.9.1.
Thanks for your help.
halfdan
(Fabian Becker)
March 6, 2013, 12:40pm
6
@djik , as matt said, the functionality is not implemented yet. Right now there is only the function stub in core/Plugin.php. We will address this in the upcoming months.