source: branches/camp/camp-2_5-E/data/class/SC_Plugin.php @ 18924

Revision 18924, 550 bytes checked in by miningbrownie, 12 years ago (diff)
RevLine 
[18918]1<?php
2
3
4
5abstract class SC_Plugin
6{
7
[18920]8   
9   
[18918]10    /**
11     *
12     * plugin_path
13     * @var String
14     */
15    private $path;
16
17    public function __construct(){
[18921]18        if(!defined(PLUGIN_PATH)){
[18924]19            define("PLUGIN_PATH",HTML_PATH."/user_data/");
[18921]20        }
[18920]21       
22       
23       
[18918]24        $this->init();
25    }
26   
27    public abstract function init();
28
29   
30    public function install(){
31
32    }
33
34    public function uninstall(){
35
36    }
37
38    protected function getInstallSQL(){
39    }
40
41    protected function getUninstallSQL(){
42
43    }
44
45
46}
Note: See TracBrowser for help on using the repository browser.