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_ItemOptionTestCase4.php 613 2004-09-20 22:13:59Z teranex $
20 * +-------------------------------------------------------
23 class NP_ItemOptionTestCase4 extends NucleusPlugin {
25 // --------- Plug-in Info ---------------------------------
28 return 'ItemOptionTestCase4';
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('TestCase4', 'TestCaseOption:select(numerical)', 'select', '0', '0|0|1|1|2|2|test|test;datatype=numerical');
68 // --------- do...-Functions ------------------------------
69 function doTemplateVar(&$item) {
70 //currently we do nothing :-)
71 echo $this->getItemOption($item->itemid, 'TestCase4');
74 function doSkinVar($skinType) {
76 $mostTest = $this->getItemOptionTop('TestCase4', 15, 'asc');
77 for($i=0; $i < count($mostTest); $i++) {
78 echo '<br/>item: '.$mostTest[$i]['id'].': '.$mostTest[$i]['value'];