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

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