| 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_PATH."/user_data/plugins/"); |
|---|
| 20 | } |
|---|
| 21 | $this->init(); |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | public abstract function init(); |
|---|
| 25 | |
|---|
| 26 | public abstract function enable(); |
|---|
| 27 | |
|---|
| 28 | public abstract function getVersion(); |
|---|
| 29 | |
|---|
| 30 | public abstract function getName(); |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | public function install(){ |
|---|
| 34 | |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | public function uninstall(){ |
|---|
| 38 | |
|---|
| 39 | } |
|---|
| 40 | |
|---|
| 41 | /** |
|---|
| 42 | * |
|---|
| 43 | * @return String インストール用のSQL |
|---|
| 44 | */ |
|---|
| 45 | protected function getInstallSQL(){ |
|---|
| 46 | |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | protected function getUninstallSQL(){ |
|---|
| 51 | |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.