OSDN Git Service

merged 3.15rc3 modification
[nucleus-jp/nucleus-jp-ancient.git] / euc / build / testcases / NP_ItemOptionTestCase2.php
1 <?php\r
2 /**\r
3  * +-------------------------------------------------------\r
4  * |            Nucleus ItemOption TestCase              \r
5  * +-------------------------------------------------------\r
6  * |\r
7  * +-INFO--------------------------------------------------\r
8  * |  Author:   Jeroen Budts (TeRanEX)\r
9  * |  URL:      http://budts.be/weblog/\r
10  * |  JabberID: teranex@jabber.org\r
11  * |\r
12  * +-TODO--------------------------------------------------\r
13  * | \r
14  * +-HISTORY-----------------------------------------------\r
15  * |  \r
16  * |\r
17  * +-CVS---------------------------------------------------\r
18  * | $Id: NP_ItemOptionTestCase2.php,v 1.1.1.1 2005-02-28 07:13:50 kimitake Exp $\r
19  * |\r
20  * +-------------------------------------------------------\r
21  */\r
22 \r
23 class NP_ItemOptionTestCase2 extends NucleusPlugin {\r
24 \r
25 // --------- Plug-in Info ---------------------------------\r
26   // name of plugin\r
27   function getName() {\r
28     return 'ItemOptionTestCase2';\r
29   }\r
30   \r
31   // author of plugin\r
32   function getAuthor() {\r
33     return 'TeRanEX';\r
34   }\r
35   // an URL to the plugin website\r
36   function getURL() {\r
37     return 'http://budts.be/weblog/';\r
38   }\r
39   \r
40   // version of the plugin\r
41   function getVersion() {\r
42     return '0.1';\r
43   }\r
44   \r
45   // a description to be shown on the installed plugins listing\r
46   function getDescription() {\r
47     return 'A plugin to test the itemoptions';\r
48   }\r
49   \r
50   //supported features\r
51   function supportsFeature($what) {\r
52     switch($what) {\r
53       case 'SqlTablePrefix':\r
54         return 1;\r
55       default:\r
56         return 0;\r
57     }\r
58   }\r
59   \r
60   function getMinNucleusVersion() {\r
61     return 250;\r
62   }\r
63 // --------- Install and Uninstall functions --------------\r
64   function install() {\r
65     $this->createItemOption('TestCase', 'TestCaseOption', 'text', 'testing');\r
66   }\r
67   \r
68 \r
69 // --------- do...-Functions ------------------------------\r
70   function doTemplateVar(&$item) {\r
71       //currently we do nothing :-)\r
72           echo $this->getItemOption($item->itemid, 'TestCase');\r
73   }\r
74   \r
75 }\r
76 ?>