Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | |
---|
4 | class TestPlugin1 extends SC_Plugin_Ex { |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | function enable(String $classname){ |
---|
9 | return preg_match('/shopping|payment|products/',$classname)? |
---|
10 | !preg_match('/list/', $classname) |
---|
11 | :false |
---|
12 | ; |
---|
13 | } |
---|
14 | |
---|
15 | function init(){ |
---|
16 | |
---|
17 | } |
---|
18 | |
---|
19 | |
---|
20 | function getVersion(){ |
---|
21 | return "0.0.1"; |
---|
22 | } |
---|
23 | |
---|
24 | function getName(){ |
---|
25 | return "TestPlugin1"; |
---|
26 | } |
---|
27 | |
---|
28 | function process(){ |
---|
29 | |
---|
30 | } |
---|
31 | |
---|
32 | function mobileprocess(){ |
---|
33 | |
---|
34 | } |
---|
35 | |
---|
36 | public function install(){ |
---|
37 | |
---|
38 | } |
---|
39 | |
---|
40 | public function uninstall(){ |
---|
41 | |
---|
42 | } |
---|
43 | |
---|
44 | /** |
---|
45 | * |
---|
46 | * @return String インストール用のSQL |
---|
47 | */ |
---|
48 | protected function getInstallSQL(){ |
---|
49 | |
---|
50 | } |
---|
51 | |
---|
52 | |
---|
53 | protected function getUninstallSQL(){ |
---|
54 | |
---|
55 | } |
---|
56 | |
---|
57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.