3 * +-------------------------------------------------------
\r
4 * | Nucleus ItemOption TestCase
\r
5 * +-------------------------------------------------------
\r
7 * +-INFO--------------------------------------------------
\r
8 * | Author: Jeroen Budts (TeRanEX)
\r
9 * | URL: http://budts.be/weblog/
\r
10 * | JabberID: teranex@jabber.org
\r
12 * +-TODO--------------------------------------------------
\r
14 * +-HISTORY-----------------------------------------------
\r
17 * +-CVS---------------------------------------------------
\r
18 * | $Id: NP_ItemOptionTestCase2.php,v 1.1.1.1 2005-02-28 07:13:50 kimitake Exp $
\r
20 * +-------------------------------------------------------
\r
23 class NP_ItemOptionTestCase2 extends NucleusPlugin {
\r
25 // --------- Plug-in Info ---------------------------------
\r
27 function getName() {
\r
28 return 'ItemOptionTestCase2';
\r
32 function getAuthor() {
\r
35 // an URL to the plugin website
\r
37 return 'http://budts.be/weblog/';
\r
40 // version of the plugin
\r
41 function getVersion() {
\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
50 //supported features
\r
51 function supportsFeature($what) {
\r
53 case 'SqlTablePrefix':
\r
60 function getMinNucleusVersion() {
\r
63 // --------- Install and Uninstall functions --------------
\r
64 function install() {
\r
65 $this->createItemOption('TestCase', 'TestCaseOption', 'text', 'testing');
\r
69 // --------- do...-Functions ------------------------------
\r
70 function doTemplateVar(&$item) {
\r
71 //currently we do nothing :-)
\r
72 echo $this->getItemOption($item->itemid, 'TestCase');
\r