| | |
| | | global $app;
|
| | |
|
| | | // Register the available events
|
| | | $app->plugins->registerEvent('aps_instance_install', $this->plugin_name, 'install');
|
| | | $app->plugins->registerEvent('aps_instance_insert', $this->plugin_name, 'install');
|
| | | $app->plugins->registerEvent('aps_instance_update', $this->plugin_name, 'install');
|
| | | $app->plugins->registerEvent('aps_instance_delete', $this->plugin_name, 'delete');
|
| | | }
|
| | |
| | | $app->log("Running installHandler",LOGLEVEL_DEBUG);
|
| | | $aps->installHandler($instanceid, 'install');
|
| | | }
|
| | | |
| | | if($data['new']['instance_status'] == INSTANCE_REMOVE) {
|
| | | $aps = new ApsInstaller($app);
|
| | | $app->log("Running installHandler",LOGLEVEL_DEBUG);
|
| | | $aps->installHandler($instanceid, 'delete');
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|