function plgTiendaTool_VirtueMartMigration(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $language = JFactory::getLanguage();
     $language->load('plg_tienda_' . $this->_element, JPATH_ADMINISTRATOR, 'en-GB', true);
     $language->load('plg_tienda_' . $this->_element, JPATH_ADMINISTRATOR, null, true);
 }
 function plgTiendaTool_GenericImporter(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->loadLanguage('', JPATH_ADMINISTRATOR);
     require_once JPATH_SITE . '/plugins/tienda/tool_genericimporter/genericimport.php';
     $this->state = new JObject();
     $this->vars = new JObject();
     $this->state->importer = JRequest::getCmd('importer');
     // get name of current importer
     $this->import_select = $this->_getListImporters();
     if ($this->importerExists($this->state->importer)) {
         // that's our boy -> load him
         $classname = $this->_plugin_prefix . $this->state->importer;
         $this->_importer = new $classname();
         $this->_importer->state =& $this->state;
         // save pointer to the array with variables from request
         $this->_importer->vars =& $this->vars;
         // save pointer to the array with variables for this step
         $this->_importer->plugin =& $this;
         // pointer to this plugin
     } else {
         $this->_importer = NULL;
     }
     $this->_getState();
     // get variables from request ( we do it only once and then we store the result)
 }
Beispiel #3
0
 function plgTiendaTool_XmlImporter(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $language = JFactory::getLanguage();
     $language->load('plg_tienda_' . $this->_element, JPATH_ADMINISTRATOR, 'en-GB', true);
     $language->load('plg_tienda_' . $this->_element, JPATH_ADMINISTRATOR, null, true);
     $this->_temp_dir = JFactory::getConfig()->get('tmp_path', JPATH_SITE . DS . 'tmp') . DS . 'tienda_xml_import' . DS;
 }
Beispiel #4
0
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $language = JFactory::getLanguage();
     $language->load('plg_tienda_' . $this->_element, JPATH_ADMINISTRATOR, 'en-GB', true);
     $language->load('plg_tienda_' . $this->_element, JPATH_ADMINISTRATOR, null, true);
     $this->_keys = array('product_id', 'product_name', 'product_categories', 'manufacturer_id', 'product_description_short', 'product_description', 'product_full_image', 'product_images', 'product_ships', 'product_height', 'product_width', 'product_length', 'product_weight', 'product_price', 'product_quantity', 'product_attributes', 'product_sku', 'product_model', 'product_listprice', 'product_listprice_enabled');
 }