Esempio n. 1
0
 protected static function initialize()
 {
     if (self::$initialized) {
         return;
     }
     $app = JFactory::getApplication();
     if (!class_exists('VmConfig')) {
         require JPATH_ADMINISTRATOR . '/components/com_virtuemart/helpers/config.php';
         VmConfig::loadConfig();
     }
     JTable::addIncludePath(JPATH_VM_ADMINISTRATOR . '/tables');
     VmConfig::set('llimit_init_FE', 9000);
     $app->setUserState('com_virtuemart.htmlc-1.limit', 9000);
     $app->setUserState('com_virtuemart.htmlc0.limit', 9000);
     $app->setUserState('com_virtuemart.xmlc0.limit', 9000);
     if (!class_exists('VirtueMartModelCategory')) {
         require JPATH_VM_ADMINISTRATOR . '/models/category.php';
     }
     self::$categoryModel = new VirtueMartModelCategory();
     if (!class_exists('VirtueMartModelProduct')) {
         require JPATH_VM_ADMINISTRATOR . '/models/product.php';
     }
     self::$productModel = new VirtueMartModelProduct();
 }
 protected static function initialize()
 {
     if (self::$initialized) {
         return;
     }
     if (!class_exists('VmConfig')) {
         require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
         VmConfig::loadConfig();
     }
     JTable::addIncludePath(JPATH_VM_ADMINISTRATOR . DS . 'tables');
     if (!class_exists('VirtueMartModelCategory')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'category.php';
     }
     self::$categoryModel = new VirtueMartModelCategory();
     if (!class_exists('VirtueMartModelProduct')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'product.php';
     }
     self::$productModel = new VirtueMartModelProduct();
 }