1 | <?php |
||
20 | class Standard |
||
21 | extends \Aimeos\Controller\Common\Product\Import\Csv\Processor\Base |
||
22 | implements \Aimeos\Controller\Common\Product\Import\Csv\Processor\Iface |
||
23 | { |
||
24 | /** controller/common/product/import/csv/processor/property/name |
||
25 | * Name of the property processor implementation |
||
26 | * |
||
27 | * Use "Myname" if your class is named "\Aimeos\Controller\Common\Product\Import\Csv\Processor\Property\Myname". |
||
28 | * The name is case-sensitive and you should avoid camel case names like "MyName". |
||
29 | * |
||
30 | * @param string Last part of the processor class name |
||
31 | * @since 2015.10 |
||
32 | * @category Developer |
||
33 | */ |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Saves the product property related data to the storage |
||
38 | * |
||
39 | * @param \Aimeos\MShop\Product\Item\Iface $product Product item with associated items |
||
40 | * @param array $data List of CSV fields with position as key and data as value |
||
41 | * @return array List of data which hasn't been imported |
||
42 | */ |
||
43 | public function process( \Aimeos\MShop\Product\Item\Iface $product, array $data ) |
||
96 | |||
97 | |||
98 | /** |
||
99 | * Returns the product properties for the given product ID |
||
100 | * |
||
101 | * @param string $prodid Unique product ID |
||
102 | * @return array Associative list of product property items |
||
103 | */ |
||
104 | protected function getPropertyItems( $prodid ) |
||
113 | } |
||
114 |