コード例 #1
0
ファイル: Standard.php プロジェクト: mvnp/aimeos-core
 /**
  * Initializes the object
  *
  * @param \Aimeos\MShop\Context\Item\Iface $context Context object
  * @param array $mapping Associative list of field position in CSV as key and domain item key as value
  * @param \Aimeos\Controller\Common\Product\Import\Csv\Processor\Iface $object Decorated processor
  */
 public function __construct(\Aimeos\MShop\Context\Item\Iface $context, array $mapping, \Aimeos\Controller\Common\Product\Import\Csv\Processor\Iface $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');
 }
コード例 #2
0
 /**
  * Initializes the object
  *
  * @param \Aimeos\MShop\Context\Item\Iface $context Context object
  * @param array $mapping Associative list of field position in CSV as key and domain item key as value
  * @param \Aimeos\Controller\Common\Product\Import\Csv\Processor\Iface $object Decorated processor
  */
 public function __construct(\Aimeos\MShop\Context\Item\Iface $context, array $mapping, \Aimeos\Controller\Common\Product\Import\Csv\Processor\Iface $object = null)
 {
     parent::__construct($context, $mapping, $object);
     /** controller/common/product/import/csv/processor/catalog/listtypes
      * Names of the catalog list types that are updated or removed
      *
      * If you want to associate product items to categories manually via the
      * administration interface and don't want these to be touched during the
      * import, you can specify the catalog list types for these products
      * that shouldn't be updated or removed.
      *
      * @param array|null List of catalog 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/media/listtypes
      * @see controller/common/product/import/csv/processor/price/listtypes
      * @see controller/common/product/import/csv/processor/product/listtypes
      * @see controller/common/product/import/csv/processor/text/listtypes
      */
     $this->listTypes = $context->getConfig()->get('controller/common/product/import/csv/processor/catalog/listtypes');
     $this->cache = $this->getCache('catalog');
 }
コード例 #3
0
ファイル: Standard.php プロジェクト: boettner-it/aimeos-core
 /**
  * Initializes the object
  *
  * @param \Aimeos\MShop\Context\Item\Iface $context Context object
  * @param array $mapping Associative list of field position in CSV as key and domain item key as value
  * @param \Aimeos\Controller\Common\Product\Import\Csv\Processor\Iface $object Decorated processor
  */
 public function __construct(\Aimeos\MShop\Context\Item\Iface $context, array $mapping, \Aimeos\Controller\Common\Product\Import\Csv\Processor\Iface $object = null)
 {
     parent::__construct($context, $mapping, $object);
     $this->cache = $this->getCache('warehouse');
 }