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

Revision 18927, 546 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)){
[18925]19            define("PLUGIN_PATH",HTML_PATH."/user_data/plugins/");
[18921]20        }
[18918]21        $this->init();
22    }
23   
24    public abstract function init();
25
26   
[18926]27   
28   
29   
[18918]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.