source: extensions/greydragon/maintain.class.php @ 30783

Last change on this file since 30783 was 30783, checked in by SergeD, 9 years ago

version 1.1.19 - please refer to changelog for more details

  • Property svn:eol-style set to native
File size: 945 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 $dir;
9  private $themeCore;
10
11  function __construct($plugin_id) {
12    parent::__construct($plugin_id); // always call parent constructor
13
14    $this->themeCore = greyDragonCore::Instance(GDTHEME_VERSION);
15    $this->dir = PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'greydragon/';
16  }
17
18  /**
19   * Plugin installation
20   */
21  function install($plugin_version, &$errors=array()) {
22    $this->themeCore->prepareCustomCSS();
23  }
24
25  /**
26   * Plugin (auto)update
27   */
28  function update($old_version, $new_version, &$errors=array()) {
29    $this->install($new_version, $errors);
30  }
31
32  /**
33   * Plugin uninstallation
34   */
35  function uninstall() {
36    // delete configuration
37    conf_delete_param('greydragon');
38
39    $this->themeCore->deleteCustomCSS();
40  }
41}
Note: See TracBrowser for help on using the repository browser.