source: extensions/greydragon/maintain.class.php

Last change on this file was 30900, checked in by SergeD, 10 years ago

version 1.1.20 - please refer to change log for more details

  • Property svn:eol-style set to native
File size: 818 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4require_once( PHPWG_THEMES_PATH . 'greydragon/include/greydragon.class.php');
5
6class greydragon_maintain extends PluginMaintain {
7
8  private $themeCore;
9
10  function __construct($plugin_id) {
11    parent::__construct($plugin_id); // always call parent constructor
12
13    $this->themeCore = greyDragonCore::Instance(GDTHEME_VERSION);
14  }
15
16  /**
17   * Plugin installation
18   */
19  function install($plugin_version, &$errors=array()) {
20    $this->themeCore->update("0.0", $plugin_version);
21  }
22
23  /**
24   * Plugin (auto)update
25   */
26  function update($old_version, $new_version, &$errors=array()) {
27    $this->themeCore->update($old_version, $new_version);
28  }
29
30  /**
31   * Plugin uninstallation
32   */
33  function uninstall() {
34    $this->themeCore->uninstall();
35  }
36}
Note: See TracBrowser for help on using the repository browser.