3 * +-------------------------------------------------------
4 * | Nucleus ItemOption TestCase
5 * +-------------------------------------------------------
7 * +-INFO--------------------------------------------------
8 * | Author: Jeroen Budts (TeRanEX)
9 * | URL: http://budts.be/weblog/
10 * | JabberID: teranex@jabber.org
12 * +-TODO--------------------------------------------------
14 * +-HISTORY-----------------------------------------------
17 * +-CVS---------------------------------------------------
18 * | $Id: NP_ItemOptionTestCase2.php 543 2004-08-03 18:21:13Z teranex $
20 * +-------------------------------------------------------
23 class NP_ItemOptionTestCase2 extends NucleusPlugin {
25 // --------- Plug-in Info ---------------------------------
28 return 'ItemOptionTestCase2';
32 function getAuthor() {
35 // an URL to the plugin website
37 return 'http://budts.be/weblog/';
40 // version of the plugin
41 function getVersion() {
45 // a description to be shown on the installed plugins listing
46 function getDescription() {
47 return 'A plugin to test the itemoptions';
51 function supportsFeature($what) {
53 case 'SqlTablePrefix':
60 function getMinNucleusVersion() {
63 // --------- Install and Uninstall functions --------------
65 $this->createItemOption('TestCase', 'TestCaseOption', 'text', 'testing');
69 // --------- do...-Functions ------------------------------
70 function doTemplateVar(&$item) {
71 //currently we do nothing :-)
72 echo $this->getItemOption($item->itemid, 'TestCase');