source: branches/version-2_12-dev/data/class/SC_Plugin.php @ 21515

Revision 21515, 1.3 KB checked in by Seasoft, 12 years ago (diff)

#1625 (typo修正・ソース整形・ソースコメントの改善)

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1<?php
2
3class SC_Plugin
4{
5    /**
6     *
7     * plugin_path
8     * @var String
9     */
10    var $path;
11
12    function SC_Plugin() {
13        $this->__construct();
14    }
15
16    function __construct() {
17        if (!defined(PLUGIN_REALDIR)) {
18            define('PLUGIN_REALDIR', USER_REALDIR . 'plugins/');
19        }
20        $this->init();
21    }
22
23    function init() {
24    }
25
26    function enable($classname) {
27    }
28
29    function getVersion() {
30    }
31
32    function getName() {
33    }
34
35    function process() {
36    }
37
38    function mobileprocess() {
39    }
40
41    function install() {
42    }
43
44    function uninstall() {
45    }
46
47    function disablePlugin() {
48        $objQuery = new SC_Query_Ex();
49        $name = preg_replace('/.php/', '', __FILE__); // XXX 正規表現エスケープ漏れでは?
50        $objQuery->update('dtb_plugin', array('enable'=>'0'), 'plugin_name = ?', array($name));
51    }
52
53    function enablePlugin() {
54        $objQuery = new SC_Query_Ex();
55        $name = preg_replace('/.php/', '', __FILE__); // XXX 正規表現エスケープ漏れでは?
56        $objQuery->update('dtb_plugin', array('enable'=>'0'), 'plugin_name = ?', array($name));
57    }
58
59    /**
60     *
61     * @return String インストール用のSQL
62     */
63    function getInstallSQL() {
64    }
65
66    function getUninstallSQL() {
67    }
68}
Note: See TracBrowser for help on using the repository browser.