Revision 19805,
1.3 KB
checked in by Seasoft, 13 years ago
(diff) |
#834(パラメータの定数名に「URL」を含むにもかかわらず、パスのみのものがある) 一部実装
|
Rev | Line | |
---|
[19661] | 1 | <?php |
---|
| 2 | |
---|
| 3 | class SC_Plugin |
---|
| 4 | { |
---|
| 5 | |
---|
| 6 | /** |
---|
| 7 | * |
---|
| 8 | * plugin_path |
---|
| 9 | * @var String |
---|
| 10 | */ |
---|
| 11 | var $path; |
---|
| 12 | |
---|
| 13 | function SC_Plugin(){ |
---|
| 14 | $this->__construct(); |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | function __construct(){ |
---|
[19767] | 18 | if (!defined(PLUGIN_PATH)) { |
---|
[19805] | 19 | define('PLUGIN_PATH', USER_REALDIR . 'plugins/'); |
---|
[19661] | 20 | } |
---|
| 21 | $this->init(); |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | function init(){ |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | function enable($classname){ |
---|
| 30 | |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | function getVersion(){ |
---|
| 34 | |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | function getName(){ |
---|
| 38 | |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | function process(){ |
---|
| 42 | |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | function mobileprocess(){ |
---|
| 46 | |
---|
| 47 | } |
---|
| 48 | |
---|
| 49 | function install(){ |
---|
| 50 | |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | function uninstall(){ |
---|
| 54 | |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | function disablePlugin(){ |
---|
| 58 | $objQuery = new SC_Query(); |
---|
[19767] | 59 | $name = preg_replace("/.php/", "", __FILE__); // XXX 正規表現エスケープ漏れでは? |
---|
[19661] | 60 | $objQuery->update("dtb_plugin", array('enable'=>'0'), "plugin_name = ?", array($name)); |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | function enablePlugin(){ |
---|
| 64 | $objQuery = new SC_Query(); |
---|
[19767] | 65 | $name = preg_replace("/.php/", "", __FILE__); // XXX 正規表現エスケープ漏れでは? |
---|
[19661] | 66 | $objQuery->update("dtb_plugin", array('enable'=>'0'), "plugin_name = ?", array($name)); |
---|
| 67 | } |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | /** |
---|
| 71 | * |
---|
| 72 | * @return String インストール用のSQL |
---|
| 73 | */ |
---|
| 74 | function getInstallSQL(){ |
---|
| 75 | |
---|
| 76 | } |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | function getUninstallSQL(){ |
---|
| 80 | |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.