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

Revision 18928, 555 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        $this->init();
22    }
23   
24    public abstract function init();
25
26   
27   
28   
29   
30    public function install(){
31
32    }
33
34    public function uninstall(){
35
36    }
37
38    protected function getInstallSQL(){
39       
40    }
41
42    protected function getUninstallSQL(){
43
44    }
45
46
47}
Note: See TracBrowser for help on using the repository browser.