| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | abstract 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_) |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 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.