示例#1
0
 static function reload_courses($courses)
 {
     $params = JComponentHelper::getParams('com_joomdle');
     $shop = $params->get('shop_integration');
     switch ($shop) {
         case 'tienda':
             JoomdleHelperShop::reload_courses_to_tienda($courses);
             break;
         case 'virtuemart2':
             JoomdleHelperShop::reload_courses_to_vm2($courses);
             break;
         case 'hikashop':
             JoomdleHelperShop::reload_courses_to_hikashop($courses);
             break;
         default:
             JPluginHelper::importPlugin('joomdleshop');
             $dispatcher = JDispatcher::getInstance();
             $disptacher->trigger('onReloadCourses', array($courses));
             break;
     }
 }