@@ -87,8 +87,7 @@ |
||
87 | 87 | foreach( $manager->searchItems( $search ) as $item ) { |
88 | 88 | $this->listTypes[$item->getCode()] = $item->getCode(); |
89 | 89 | } |
90 | - } |
|
91 | - else |
|
90 | + } else |
|
92 | 91 | { |
93 | 92 | $this->listTypes = array_flip( $this->listTypes ); |
94 | 93 | } |
@@ -91,8 +91,7 @@ |
||
91 | 91 | { |
92 | 92 | $item = $propMap[$value][$type]; |
93 | 93 | unset( $items[ $item->getId() ] ); |
94 | - } |
|
95 | - else |
|
94 | + } else |
|
96 | 95 | { |
97 | 96 | $item = $manager->createItem()->setType( $type ); |
98 | 97 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $map = $this->getMappedChunk( $data, $this->getMapping() ); |
73 | 73 | |
74 | 74 | foreach( $items as $item ) { |
75 | - $propMap[ $item->getValue() ][ $item->getType() ] = $item; |
|
75 | + $propMap[$item->getValue()][$item->getType()] = $item; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | foreach( $map as $list ) |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | if( isset( $propMap[$value][$type] ) ) |
91 | 91 | { |
92 | 92 | $item = $propMap[$value][$type]; |
93 | - unset( $items[ $item->getId() ] ); |
|
93 | + unset( $items[$item->getId()] ); |
|
94 | 94 | } |
95 | 95 | else |
96 | 96 | { |
@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | foreach( $manager->searchItems( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -143,8 +142,7 @@ discard block |
||
143 | 142 | $listItem = $listMap[$url][$type][$listtype]; |
144 | 143 | $refItem = $listItem->getRefItem(); |
145 | 144 | unset( $listItems[ $listItem->getId() ] ); |
146 | - } |
|
147 | - else |
|
145 | + } else |
|
148 | 146 | { |
149 | 147 | $listItem = $listManager->createItem()->setType( $listtype ); |
150 | 148 | $refItem = $manager->createItem()->setType( $type ); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | foreach( $listItems as $listItem ) |
121 | 121 | { |
122 | 122 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
123 | - $listMap[ $refItem->getUrl() ][ $refItem->getType() ][ $listItem->getType() ] = $listItem; |
|
123 | + $listMap[$refItem->getUrl()][$refItem->getType()][$listItem->getType()] = $listItem; |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | { |
143 | 143 | $listItem = $listMap[$url][$type][$listtype]; |
144 | 144 | $refItem = $listItem->getRefItem(); |
145 | - unset( $listItems[ $listItem->getId() ] ); |
|
145 | + unset( $listItems[$listItem->getId()] ); |
|
146 | 146 | } |
147 | 147 | else |
148 | 148 | { |
@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | foreach( $manager->searchItems( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -137,8 +136,7 @@ discard block |
||
137 | 136 | $listItem = $listMap[$value][$type][$listtype]; |
138 | 137 | $refItem = $listItem->getRefItem(); |
139 | 138 | unset( $listItems[ $listItem->getId() ] ); |
140 | - } |
|
141 | - else |
|
139 | + } else |
|
142 | 140 | { |
143 | 141 | $listItem = $listManager->createItem()->setType( $listtype ); |
144 | 142 | $refItem = $manager->createItem()->setType( $type ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | foreach( $listItems as $listItem ) |
119 | 119 | { |
120 | 120 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
121 | - $listMap[ $refItem->getValue() ][ $refItem->getType() ][ $listItem->getType() ] = $listItem; |
|
121 | + $listMap[$refItem->getValue()][$refItem->getType()][$listItem->getType()] = $listItem; |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | $listItem = $listMap[$value][$type][$listtype]; |
138 | 138 | $refItem = $listItem->getRefItem(); |
139 | - unset( $listItems[ $listItem->getId() ] ); |
|
139 | + unset( $listItems[$listItem->getId()] ); |
|
140 | 140 | } |
141 | 141 | else |
142 | 142 | { |
@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | foreach( $manager->searchItems( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -137,8 +136,7 @@ discard block |
||
137 | 136 | $listItem = $listMap[$content][$type][$listtype]; |
138 | 137 | $refItem = $listItem->getRefItem(); |
139 | 138 | unset( $listItems[ $listItem->getId() ] ); |
140 | - } |
|
141 | - else |
|
139 | + } else |
|
142 | 140 | { |
143 | 141 | $listItem = $listManager->createItem()->setType( $listtype ); |
144 | 142 | $refItem = $manager->createItem()->setType( $type ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | foreach( $listItems as $listItem ) |
119 | 119 | { |
120 | 120 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
121 | - $listMap[ $refItem->getContent() ][ $refItem->getType() ][ $listItem->getType() ] = $listItem; |
|
121 | + $listMap[$refItem->getContent()][$refItem->getType()][$listItem->getType()] = $listItem; |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | $listItem = $listMap[$content][$type][$listtype]; |
138 | 138 | $refItem = $listItem->getRefItem(); |
139 | - unset( $listItems[ $listItem->getId() ] ); |
|
139 | + unset( $listItems[$listItem->getId()] ); |
|
140 | 140 | } |
141 | 141 | else |
142 | 142 | { |
@@ -82,8 +82,7 @@ discard block |
||
82 | 82 | foreach( $manager->searchItems( $search ) as $item ) { |
83 | 83 | $this->listTypes[$item->getCode()] = $item->getCode(); |
84 | 84 | } |
85 | - } |
|
86 | - else |
|
85 | + } else |
|
87 | 86 | { |
88 | 87 | $this->listTypes = array_flip( $this->listTypes ); |
89 | 88 | } |
@@ -144,8 +143,7 @@ discard block |
||
144 | 143 | { |
145 | 144 | $listItem = $listMap[$code][$listtype]; |
146 | 145 | unset( $listItems[ $listItem->getId() ] ); |
147 | - } |
|
148 | - else |
|
146 | + } else |
|
149 | 147 | { |
150 | 148 | $listItem = $listManager->createItem()->setType( $listtype ); |
151 | 149 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | foreach( $listItems as $listItem ) |
124 | 124 | { |
125 | 125 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
126 | - $listMap[ $refItem->getCode() ][ $listItem->getType() ] = $listItem; |
|
126 | + $listMap[$refItem->getCode()][$listItem->getType()] = $listItem; |
|
127 | 127 | } |
128 | 128 | } |
129 | 129 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | if( isset( $listMap[$code][$listtype] ) ) |
144 | 144 | { |
145 | 145 | $listItem = $listMap[$code][$listtype]; |
146 | - unset( $listItems[ $listItem->getId() ] ); |
|
146 | + unset( $listItems[$listItem->getId()] ); |
|
147 | 147 | } |
148 | 148 | else |
149 | 149 | { |
@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | foreach( $manager->searchItems( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -143,8 +142,7 @@ discard block |
||
143 | 142 | $listItem = $listMap[$url][$type][$listtype]; |
144 | 143 | $refItem = $listItem->getRefItem(); |
145 | 144 | unset( $listItems[ $listItem->getId() ] ); |
146 | - } |
|
147 | - else |
|
145 | + } else |
|
148 | 146 | { |
149 | 147 | $listItem = $listManager->createItem()->setType( $listtype ); |
150 | 148 | $refItem = $manager->createItem()->setType( $type ); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | foreach( $listItems as $listItem ) |
121 | 121 | { |
122 | 122 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
123 | - $listMap[ $refItem->getUrl() ][ $refItem->getType() ][ $listItem->getType() ] = $listItem; |
|
123 | + $listMap[$refItem->getUrl()][$refItem->getType()][$listItem->getType()] = $listItem; |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | { |
141 | 141 | $listItem = $listMap[$url][$type][$listtype]; |
142 | 142 | $refItem = $listItem->getRefItem(); |
143 | - unset( $listItems[ $listItem->getId() ] ); |
|
143 | + unset( $listItems[$listItem->getId()] ); |
|
144 | 144 | } |
145 | 145 | else |
146 | 146 | { |
@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | foreach( $manager->searchItems( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -137,8 +136,7 @@ discard block |
||
137 | 136 | $listItem = $listMap[$content][$type][$listtype]; |
138 | 137 | $refItem = $listItem->getRefItem(); |
139 | 138 | unset( $listItems[ $listItem->getId() ] ); |
140 | - } |
|
141 | - else |
|
139 | + } else |
|
142 | 140 | { |
143 | 141 | $listItem = $listManager->createItem()->setType( $listtype ); |
144 | 142 | $refItem = $manager->createItem()->setType( $type ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | foreach( $listItems as $listItem ) |
119 | 119 | { |
120 | 120 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
121 | - $listMap[ $refItem->getContent() ][ $refItem->getType() ][ $listItem->getType() ] = $listItem; |
|
121 | + $listMap[$refItem->getContent()][$refItem->getType()][$listItem->getType()] = $listItem; |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | $listItem = $listMap[$content][$type][$listtype]; |
138 | 138 | $refItem = $listItem->getRefItem(); |
139 | - unset( $listItems[ $listItem->getId() ] ); |
|
139 | + unset( $listItems[$listItem->getId()] ); |
|
140 | 140 | } |
141 | 141 | else |
142 | 142 | { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | <list> |
24 | 24 | <text> |
25 | 25 | <?php foreach( $item->getListItems( 'text' ) as $listItem ) : ?> |
26 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
26 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
27 | 27 | |
28 | 28 | <textitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.domain="<?php echo $enc->attr( $listItem->getDomain() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
29 | 29 | <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | </text> |
39 | 39 | <media> |
40 | 40 | <?php foreach( $item->getListItems( 'media' ) as $listItem ) : ?> |
41 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
41 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
42 | 42 | |
43 | 43 | <mediaitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
44 | 44 | <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type> |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | </media> |
56 | 56 | <price> |
57 | 57 | <?php foreach( $item->getListItems( 'price' ) as $listItem ) : ?> |
58 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
58 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
59 | 59 | |
60 | 60 | <priceitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
61 | 61 | <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type> |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | </price> |
75 | 75 | <attribute> |
76 | 76 | <?php foreach( $item->getListItems( 'attribute' ) as $listItem ) : ?> |
77 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
77 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
78 | 78 | |
79 | 79 | <attributeitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
80 | 80 | <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type> |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | </attribute> |
90 | 90 | <product> |
91 | 91 | <?php foreach( $item->getListItems( 'product' ) as $listItem ) : ?> |
92 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
92 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
93 | 93 | |
94 | 94 | <productitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
95 | 95 | <type><![CDATA[<?php echo $item->getType(); ?>]]></type> |