protected function getOptions()
 {
     // if the component is not installed
     if (!JFolder::exists(JPATH_ROOT . '/administrator/components/com_hikashop') or !JFile::exists(JPATH_ROOT . '/modules/mod_accordeonck/helper_hikashop.php')) {
         // add the root item
         $option = new stdClass();
         $option->text = JText::_('MOD_ACCORDEONCK_HIKASHOP_NOTFOUND');
         $option->value = '0';
         $options[] = $option;
         // Merge any additional options in the XML definition.
         $options = array_merge(parent::getOptions(), $options);
         return $options;
     }
     // get the categories form the helper
     $params = new JRegistry();
     require_once JPATH_ROOT . '/modules/mod_accordeonck/helper_hikashop.php';
     $cats = modAccordeonckhikashopHelper::getItems($params, true);
     // add the root item
     $option = new stdClass();
     $option->text = JText::_('MOD_ACCORDEONCK_HIKASHOP_ROOTNODE');
     $option->value = '2';
     $options[] = $option;
     foreach ($cats as $cat) {
         $option = new stdClass();
         $option->text = str_repeat(" - ", $cat->level - 1) . $cat->category_name;
         $option->value = $cat->id;
         $options[] = $option;
     }
     // Merge any additional options in the XML definition.
     $options = array_merge(parent::getOptions(), $options);
     return $options;
 }
     break;
 case 'virtuemart':
     // Include the syndicate functions only once
     if (JFile::exists(dirname(__FILE__) . '/helper_virtuemart.php')) {
         require_once dirname(__FILE__) . '/helper_virtuemart.php';
         $list = modAccordeonckvirtuemartHelper::getItems($params, $params->get('vmcategoryroot', '0'), '1');
     } else {
         echo '<p style="color:red;font-weight:bold;">File helper_virtuemart.php not found ! Please download the patch for Accordeonmenu - Virtuemart on <a href="http://www.joomlack.fr">http://www.joomlack.fr</a></p>';
         return false;
     }
     break;
 case 'hikashop':
     // Include the syndicate functions only once
     if (JFile::exists(dirname(__FILE__) . '/helper_hikashop.php')) {
         require_once dirname(__FILE__) . '/helper_hikashop.php';
         $list = modAccordeonckhikashopHelper::getItems($params, false);
     } else {
         echo '<p style="color:red;font-weight:bold;">File helper_hikashop.php not found ! Please download the patch for Accordeonmenu - Hikashop on <a href="http://www.joomlack.fr">http://www.joomlack.fr</a></p>';
         return false;
     }
     break;
 case 'articles':
     // Include the syndicate functions only once
     if (JFile::exists(dirname(__FILE__) . '/helper_articles.php')) {
         require_once dirname(__FILE__) . '/helper_articles.php';
         $list = modAccordeonckarticlesHelper::getItems($params);
     } else {
         echo '<p style="color:red;font-weight:bold;">File helper_articles.php not found ! Please download the patch for Accordeonmenu - Articles on <a href="http://www.joomlack.fr">http://www.joomlack.fr</a></p>';
         return false;
     }
     break;