@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | $context = $this->getContext(); |
81 | 81 | $attrManager = \Aimeos\MShop\Factory::createManager( $context, 'attribute' ); |
82 | - $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' ); |
|
82 | + $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' ); |
|
83 | 83 | |
84 | 84 | |
85 | 85 | $item = $attrManager->createItem(); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | $listItem->setId( null ); |
113 | - $listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'attribute', $entry['list-type'] ) ); |
|
113 | + $listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'attribute', $entry['list-type'] ) ); |
|
114 | 114 | $listItem->setDateStart( $entry['list-start'] ); |
115 | 115 | $listItem->setDateEnd( $entry['list-end'] ); |
116 | 116 | $listItem->setConfig( $entry['list-config'] ); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | { |
152 | 152 | $context = $this->getContext(); |
153 | 153 | $mediaManager = \Aimeos\MShop\Factory::createManager( $context, 'media' ); |
154 | - $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' ); |
|
154 | + $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' ); |
|
155 | 155 | |
156 | 156 | |
157 | 157 | $item = $mediaManager->createItem(); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $mediaManager->saveItem( $item ); |
177 | 177 | |
178 | 178 | $listItem->setId( null ); |
179 | - $listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'media', $entry['list-type'] ) ); |
|
179 | + $listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'media', $entry['list-type'] ) ); |
|
180 | 180 | $listItem->setDateStart( $entry['list-start'] ); |
181 | 181 | $listItem->setDateEnd( $entry['list-end'] ); |
182 | 182 | $listItem->setConfig( $entry['list-config'] ); |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | { |
218 | 218 | $context = $this->getContext(); |
219 | 219 | $mediaManager = \Aimeos\MShop\Factory::createManager( $context, 'price' ); |
220 | - $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' ); |
|
220 | + $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' ); |
|
221 | 221 | |
222 | 222 | |
223 | 223 | $item = $mediaManager->createItem(); |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | $mediaManager->saveItem( $item ); |
245 | 245 | |
246 | 246 | $listItem->setId( null ); |
247 | - $listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'price', $entry['list-type'] ) ); |
|
247 | + $listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'price', $entry['list-type'] ) ); |
|
248 | 248 | $listItem->setDateStart( $entry['list-start'] ); |
249 | 249 | $listItem->setDateEnd( $entry['list-end'] ); |
250 | 250 | $listItem->setConfig( $entry['list-config'] ); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | { |
286 | 286 | $context = $this->getContext(); |
287 | 287 | $textManager = \Aimeos\MShop\Factory::createManager( $context, 'text' ); |
288 | - $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' ); |
|
288 | + $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' ); |
|
289 | 289 | |
290 | 290 | |
291 | 291 | $item = $textManager->createItem(); |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | $textManager->saveItem( $item ); |
309 | 309 | |
310 | 310 | $listItem->setId( null ); |
311 | - $listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'text', $entry['list-type'] ) ); |
|
311 | + $listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'text', $entry['list-type'] ) ); |
|
312 | 312 | $listItem->setDateStart( $entry['list-start'] ); |
313 | 313 | $listItem->setDateEnd( $entry['list-end'] ); |
314 | 314 | $listItem->setConfig( $entry['list-config'] ); |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | { |
350 | 350 | $context = $this->getContext(); |
351 | 351 | $productManager = \Aimeos\MShop\Factory::createManager( $context, 'product' ); |
352 | - $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' ); |
|
352 | + $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' ); |
|
353 | 353 | |
354 | 354 | |
355 | 355 | $listItem = $listManager->createItem(); |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | } |
380 | 380 | |
381 | 381 | $listItem->setId( null ); |
382 | - $listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'product', $entry['list-type'] ) ); |
|
382 | + $listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'product', $entry['list-type'] ) ); |
|
383 | 383 | $listItem->setDateStart( $entry['list-start'] ); |
384 | 384 | $listItem->setDateEnd( $entry['list-end'] ); |
385 | 385 | $listItem->setConfig( $entry['list-config'] ); |
@@ -475,8 +475,8 @@ discard block |
||
475 | 475 | |
476 | 476 | $search = $manager->createSearch(); |
477 | 477 | $expr = array( |
478 | - $search->compare( '==', $key . '.domain', $domain ), |
|
479 | - $search->compare( '==', $key . '.code', $type ), |
|
478 | + $search->compare( '==', $key.'.domain', $domain ), |
|
479 | + $search->compare( '==', $key.'.code', $type ), |
|
480 | 480 | ); |
481 | 481 | $search->setConditions( $search->combine( '&&', $expr ) ); |
482 | 482 | |
@@ -509,8 +509,8 @@ discard block |
||
509 | 509 | |
510 | 510 | $search = $manager->createSearch(); |
511 | 511 | $expr = array( |
512 | - $search->compare( '==', $refdomain . '.domain', $domain ), |
|
513 | - $search->compare( '=~', $refdomain . '.label', 'Demo' ), |
|
512 | + $search->compare( '==', $refdomain.'.domain', $domain ), |
|
513 | + $search->compare( '=~', $refdomain.'.label', 'Demo' ), |
|
514 | 514 | ); |
515 | 515 | $search->setConditions( $search->combine( '&&', $expr ) ); |
516 | 516 | |
@@ -520,9 +520,9 @@ discard block |
||
520 | 520 | |
521 | 521 | $search = $listManager->createSearch(); |
522 | 522 | $expr = array( |
523 | - $search->compare( '==', $key . '.parentid', $parentid ), |
|
524 | - $search->compare( '==', $key . '.domain', $refdomain ), |
|
525 | - $search->compare( '==', $key . '.refid', $ids ), |
|
523 | + $search->compare( '==', $key.'.parentid', $parentid ), |
|
524 | + $search->compare( '==', $key.'.domain', $refdomain ), |
|
525 | + $search->compare( '==', $key.'.refid', $ids ), |
|
526 | 526 | ); |
527 | 527 | $search->setConditions( $search->combine( '&&', $expr ) ); |
528 | 528 | |
@@ -550,8 +550,8 @@ discard block |
||
550 | 550 | |
551 | 551 | $search = $listManager->createSearch(); |
552 | 552 | $expr = array( |
553 | - $search->compare( '==', $key . '.parentid', $parentid ), |
|
554 | - $search->compare( '==', $key . '.domain', $refdomain ), |
|
553 | + $search->compare( '==', $key.'.parentid', $parentid ), |
|
554 | + $search->compare( '==', $key.'.domain', $refdomain ), |
|
555 | 555 | ); |
556 | 556 | $search->setConditions( $search->combine( '&&', $expr ) ); |
557 | 557 | |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | |
569 | 569 | |
570 | 570 | $search = $manager->createSearch(); |
571 | - $search->setConditions( $search->compare( '==', $refdomain . '.id', $refIds ) ); |
|
571 | + $search->setConditions( $search->compare( '==', $refdomain.'.id', $refIds ) ); |
|
572 | 572 | $ids = array_keys( $manager->searchItems( $search ) ); |
573 | 573 | |
574 | 574 | foreach( array_diff( $refIds, $ids ) as $refId ) { |
@@ -586,14 +586,14 @@ discard block |
||
586 | 586 | |
587 | 587 | |
588 | 588 | $search = $manager->createSearch(); |
589 | - $search->setConditions( $search->compare( '=~', $refdomain . '.label', 'Demo' ) ); |
|
589 | + $search->setConditions( $search->compare( '=~', $refdomain.'.label', 'Demo' ) ); |
|
590 | 590 | $ids = array_keys( $manager->searchItems( $search ) ); |
591 | 591 | |
592 | 592 | $search = $listManager->createSearch(); |
593 | 593 | $expr = array( |
594 | - $search->compare( '==', $key . '.parentid', $parentid ), |
|
595 | - $search->compare( '==', $key . '.refid', $ids ), |
|
596 | - $search->compare( '==', $key . '.domain', $refdomain ), |
|
594 | + $search->compare( '==', $key.'.parentid', $parentid ), |
|
595 | + $search->compare( '==', $key.'.refid', $ids ), |
|
596 | + $search->compare( '==', $key.'.domain', $refdomain ), |
|
597 | 597 | ); |
598 | 598 | $search->setConditions( $search->combine( '&&', $expr ) ); |
599 | 599 |
@@ -103,8 +103,7 @@ |
||
103 | 103 | |
104 | 104 | $attrManager->saveItem( $item ); |
105 | 105 | $id = $item->getId(); |
106 | - } |
|
107 | - else |
|
106 | + } else |
|
108 | 107 | { |
109 | 108 | $id = $attrItem->getId(); |
110 | 109 | } |