Esempio n. 1
0
 /**
  * Initializes the object
  *
  * @param MShop_Context_Item_Interface $context Context object
  * @param array $mapping Associative list of field position in CSV as key and domain item key as value
  * @param Controller_Common_Product_Import_Csv_Processor_Interface $object Decorated processor
  */
 public function __construct(MShop_Context_Item_Interface $context, array $mapping, Controller_Common_Product_Import_Csv_Processor_Interface $object = null)
 {
     parent::__construct($context, $mapping, $object);
     /** controller/common/product/import/csv/processor/product/listtypes
      * Names of the product list types that are updated or removed
      *
      * Aimeos offers associated items like "bought together" products that
      * are automatically generated by other job controllers. These relations
      * shouldn't normally be overwritten or deleted by default during the
      * import and this confiuration option enables you to specify the list
      * types that should be updated or removed if not available in the import
      * file.
      *
      * Contrary, if you don't generate any relations automatically in the
      * shop and want to import those relations too, you can set the option
      * to null to update all associated items.
      *
      * @param array|null List of product list type names or null for all
      * @since 2015.05
      * @category Developer
      * @category User
      * @see controller/common/product/import/csv/domains
      * @see controller/common/product/import/csv/processor/attribute/listtypes
      * @see controller/common/product/import/csv/processor/catalog/listtypes
      * @see controller/common/product/import/csv/processor/media/listtypes
      * @see controller/common/product/import/csv/processor/price/listtypes
      * @see controller/common/product/import/csv/processor/text/listtypes
      */
     $default = array('default', 'suggestion');
     $key = 'controller/common/product/import/csv/processor/product/listtypes';
     $this->_listTypes = $context->getConfig()->get($key, $default);
     $this->_cache = $this->_getCache('product');
 }
Esempio n. 2
0
 /**
  * Initializes the object
  *
  * @param MShop_Context_Item_Interface $context Context object
  * @param array $mapping Associative list of field position in CSV as key and domain item key as value
  * @param Controller_Common_Product_Import_Csv_Processor_Interface $object Decorated processor
  */
 public function __construct(MShop_Context_Item_Interface $context, array $mapping, Controller_Common_Product_Import_Csv_Processor_Interface $object = null)
 {
     parent::__construct($context, $mapping, $object);
     /** controller/common/product/import/csv/processor/attribute/listtypes
      * Names of the product list types for attributes that are updated or removed
      *
      * If you want to associate attribute items manually via the administration
      * interface to products and don't want these to be touched during the
      * import, you can specify the product list types for these attributes
      * that shouldn't be updated or removed.
      *
      * @param array|null List of product list type names or null for all
      * @since 2015.05
      * @category Developer
      * @category User
      * @see controller/common/product/import/csv/domains
      * @see controller/common/product/import/csv/processor/catalog/listtypes
      * @see controller/common/product/import/csv/processor/media/listtypes
      * @see controller/common/product/import/csv/processor/product/listtypes
      * @see controller/common/product/import/csv/processor/price/listtypes
      * @see controller/common/product/import/csv/processor/text/listtypes
      */
     $this->_listTypes = $context->getConfig()->get('controller/common/product/import/csv/processor/attribute/listtypes');
     $this->_cache = $this->_getCache('attribute');
 }
Esempio n. 3
0
 /**
  * Initializes the object
  *
  * @param MShop_Context_Item_Interface $context Context object
  * @param array $mapping Associative list of field position in CSV as key and domain item key as value
  * @param Controller_Common_Product_Import_Csv_Processor_Interface $object Decorated processor
  */
 public function __construct(MShop_Context_Item_Interface $context, array $mapping, Controller_Common_Product_Import_Csv_Processor_Interface $object = null)
 {
     parent::__construct($context, $mapping, $object);
     $this->_cache = $this->_getCache('warehouse');
 }