@@ 309-316 (lines=8) @@ | ||
306 | * |
|
307 | * @return void |
|
308 | */ |
|
309 | public function new_install() |
|
310 | { |
|
311 | $classname = get_class($this); |
|
312 | do_action("AHEE__{$classname}__new_install"); |
|
313 | do_action('AHEE__EE_Addon__new_install', $this); |
|
314 | EE_Maintenance_Mode::instance()->set_maintenance_mode_if_db_old(); |
|
315 | add_action( |
|
316 | 'AHEE__EE_System__perform_activations_upgrades_and_migrations', |
|
317 | array($this, 'initialize_db_if_no_migrations_required') |
|
318 | ); |
|
319 | } |
|
@@ 328-334 (lines=7) @@ | ||
325 | * |
|
326 | * @return void |
|
327 | */ |
|
328 | public function reactivation() |
|
329 | { |
|
330 | $classname = get_class($this); |
|
331 | do_action("AHEE__{$classname}__reactivation"); |
|
332 | do_action('AHEE__EE_Addon__reactivation', $this); |
|
333 | EE_Maintenance_Mode::instance()->set_maintenance_mode_if_db_old(); |
|
334 | add_action( |
|
335 | 'AHEE__EE_System__perform_activations_upgrades_and_migrations', |
|
336 | array($this, 'initialize_db_if_no_migrations_required') |
|
337 | ); |
|
@@ 470-477 (lines=8) @@ | ||
467 | * |
|
468 | * @return void |
|
469 | */ |
|
470 | public function upgrade() |
|
471 | { |
|
472 | $classname = get_class($this); |
|
473 | do_action("AHEE__{$classname}__upgrade"); |
|
474 | do_action('AHEE__EE_Addon__upgrade', $this); |
|
475 | EE_Maintenance_Mode::instance()->set_maintenance_mode_if_db_old(); |
|
476 | //also it's possible there is new default data that needs to be added |
|
477 | add_action( |
|
478 | 'AHEE__EE_System__perform_activations_upgrades_and_migrations', |
|
479 | array($this, 'initialize_db_if_no_migrations_required') |
|
480 | ); |