@@ -319,7 +319,7 @@ |
||
319 | 319 | * @see mshop/service/manager/lists/decorators/global |
320 | 320 | */ |
321 | 321 | |
322 | - return $this->getSubManagerBase( 'service', 'lists/' . $manager, $name ); |
|
322 | + return $this->getSubManagerBase( 'service', 'lists/'.$manager, $name ); |
|
323 | 323 | } |
324 | 324 | |
325 | 325 |
@@ -282,7 +282,7 @@ |
||
282 | 282 | * @see mshop/service/manager/lists/type/decorators/global |
283 | 283 | */ |
284 | 284 | |
285 | - return $this->getSubManagerBase( 'service', 'lists/type/' . $manager, $name ); |
|
285 | + return $this->getSubManagerBase( 'service', 'lists/type/'.$manager, $name ); |
|
286 | 286 | } |
287 | 287 | |
288 | 288 |
@@ -282,7 +282,7 @@ |
||
282 | 282 | * @see mshop/service/manager/type/decorators/global |
283 | 283 | */ |
284 | 284 | |
285 | - return $this->getSubManagerBase( 'service', 'type/' . $manager, $name ); |
|
285 | + return $this->getSubManagerBase( 'service', 'type/'.$manager, $name ); |
|
286 | 286 | } |
287 | 287 | |
288 | 288 |
@@ -72,12 +72,12 @@ |
||
72 | 72 | |
73 | 73 | if( ctype_alnum( $name ) === false ) |
74 | 74 | { |
75 | - $classname = is_string( $name ) ? '\\Aimeos\\MShop\\Order\\Manager\\' . $name : '<not a string>'; |
|
75 | + $classname = is_string( $name ) ? '\\Aimeos\\MShop\\Order\\Manager\\'.$name : '<not a string>'; |
|
76 | 76 | throw new \Aimeos\MShop\Order\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
77 | 77 | } |
78 | 78 | |
79 | 79 | $iface = '\\Aimeos\\MShop\\Order\\Manager\\Iface'; |
80 | - $classname = '\\Aimeos\\MShop\\Order\\Manager\\' . $name; |
|
80 | + $classname = '\\Aimeos\\MShop\\Order\\Manager\\'.$name; |
|
81 | 81 | |
82 | 82 | $manager = self::createManagerBase( $context, $classname, $iface ); |
83 | 83 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | throw new \Aimeos\MShop\Exception( sprintf( 'Invalid characters in class name "%1$s"', $name ) ); |
58 | 58 | } |
59 | 59 | |
60 | - $classname = $classprefix . $name; |
|
60 | + $classname = $classprefix.$name; |
|
61 | 61 | |
62 | 62 | if( class_exists( $classname ) === false ) { |
63 | 63 | throw new \Aimeos\MShop\Exception( sprintf( 'Class "%1$s" not available', $classname ) ); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * @category Developer |
111 | 111 | */ |
112 | 112 | $decorators = $config->get( 'mshop/common/manager/decorators/default', array() ); |
113 | - $excludes = $config->get( 'mshop/' . $domain . '/manager/decorators/excludes', array() ); |
|
113 | + $excludes = $config->get( 'mshop/'.$domain.'/manager/decorators/excludes', array() ); |
|
114 | 114 | |
115 | 115 | foreach( $decorators as $key => $name ) |
116 | 116 | { |
@@ -123,11 +123,11 @@ discard block |
||
123 | 123 | $manager = self::addDecorators( $context, $manager, $decorators, $classprefix ); |
124 | 124 | |
125 | 125 | $classprefix = '\\Aimeos\\MShop\\Common\\Manager\\Decorator\\'; |
126 | - $decorators = $config->get( 'mshop/' . $domain . '/manager/decorators/global', array() ); |
|
126 | + $decorators = $config->get( 'mshop/'.$domain.'/manager/decorators/global', array() ); |
|
127 | 127 | $manager = self::addDecorators( $context, $manager, $decorators, $classprefix ); |
128 | 128 | |
129 | - $classprefix = '\\Aimeos\\MShop\\' . ucfirst( $domain ) . '\\Manager\\Decorator\\'; |
|
130 | - $decorators = $config->get( 'mshop/' . $domain . '/manager/decorators/local', array() ); |
|
129 | + $classprefix = '\\Aimeos\\MShop\\'.ucfirst( $domain ).'\\Manager\\Decorator\\'; |
|
130 | + $decorators = $config->get( 'mshop/'.$domain.'/manager/decorators/local', array() ); |
|
131 | 131 | $manager = self::addDecorators( $context, $manager, $decorators, $classprefix ); |
132 | 132 | |
133 | 133 | return $manager; |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function getParentId() |
48 | 48 | { |
49 | - if( isset( $this->values[$this->prefix . 'parentid'] ) ) { |
|
50 | - return (string) $this->values[$this->prefix . 'parentid']; |
|
49 | + if( isset( $this->values[$this->prefix.'parentid'] ) ) { |
|
50 | + return (string) $this->values[$this->prefix.'parentid']; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | return ''; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | if( $parentid == $this->getParentId() ) { return $this; } |
66 | 66 | |
67 | - $this->values[$this->prefix . 'parentid'] = (string) $parentid; |
|
67 | + $this->values[$this->prefix.'parentid'] = (string) $parentid; |
|
68 | 68 | $this->setModified(); |
69 | 69 | |
70 | 70 | return $this; |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function getPosition() |
80 | 80 | { |
81 | - if( isset( $this->values[$this->prefix . 'position'] ) ) { |
|
82 | - return (int) $this->values[$this->prefix . 'position']; |
|
81 | + if( isset( $this->values[$this->prefix.'position'] ) ) { |
|
82 | + return (int) $this->values[$this->prefix.'position']; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | return 0; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | { |
97 | 97 | if( $position == $this->getPosition() ) { return $this; } |
98 | 98 | |
99 | - $this->values[$this->prefix . 'position'] = (int) $position; |
|
99 | + $this->values[$this->prefix.'position'] = (int) $position; |
|
100 | 100 | $this->setModified(); |
101 | 101 | |
102 | 102 | return $this; |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | { |
119 | 119 | switch( $key ) |
120 | 120 | { |
121 | - case $this->prefix . 'parentid': $this->setParentId( $value ); break; |
|
122 | - case $this->prefix . 'position': $this->setPosition( $value ); break; |
|
121 | + case $this->prefix.'parentid': $this->setParentId( $value ); break; |
|
122 | + case $this->prefix.'position': $this->setPosition( $value ); break; |
|
123 | 123 | default: $unknown[$key] = $value; |
124 | 124 | } |
125 | 125 | } |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | { |
138 | 138 | $properties = parent::toArray(); |
139 | 139 | |
140 | - $properties[$this->prefix . 'parentid'] = $this->getParentId(); |
|
141 | - $properties[$this->prefix . 'position'] = $this->getPosition(); |
|
140 | + $properties[$this->prefix.'parentid'] = $this->getParentId(); |
|
141 | + $properties[$this->prefix.'position'] = $this->getPosition(); |
|
142 | 142 | |
143 | 143 | return $properties; |
144 | 144 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return (string) $this->values['id']; |
49 | 49 | } |
50 | 50 | |
51 | - $key = $this->prefix . 'id'; |
|
51 | + $key = $this->prefix.'id'; |
|
52 | 52 | return ( isset( $this->values[$key] ) && $this->values[$key] != '' ? (string) $this->values[$key] : null ); |
53 | 53 | } |
54 | 54 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function setId( $id ) |
63 | 63 | { |
64 | - $key = $this->prefix . 'id'; |
|
64 | + $key = $this->prefix.'id'; |
|
65 | 65 | |
66 | 66 | if( ( $this->values[$key] = \Aimeos\MShop\Common\Item\Base::checkId( $this->getId(), $id ) ) === null ) { |
67 | 67 | $this->modified = true; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | return (int) $this->values['siteid']; |
86 | 86 | } |
87 | 87 | |
88 | - $key = $this->prefix . 'siteid'; |
|
88 | + $key = $this->prefix.'siteid'; |
|
89 | 89 | return ( isset( $this->values[$key] ) ? (int) $this->values[$key] : null ); |
90 | 90 | } |
91 | 91 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | return (string) $this->values['mtime']; |
102 | 102 | } |
103 | 103 | |
104 | - $key = $this->prefix . 'mtime'; |
|
104 | + $key = $this->prefix.'mtime'; |
|
105 | 105 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : null ); |
106 | 106 | } |
107 | 107 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | return (string) $this->values['ctime']; |
118 | 118 | } |
119 | 119 | |
120 | - $key = $this->prefix . 'ctime'; |
|
120 | + $key = $this->prefix.'ctime'; |
|
121 | 121 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : null ); |
122 | 122 | } |
123 | 123 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | return (string) $this->values['editor']; |
134 | 134 | } |
135 | 135 | |
136 | - $key = $this->prefix . 'editor'; |
|
136 | + $key = $this->prefix.'editor'; |
|
137 | 137 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : '' ); |
138 | 138 | } |
139 | 139 | |
@@ -166,16 +166,16 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function fromArray( array $list ) |
168 | 168 | { |
169 | - if( array_key_exists( $this->prefix . 'id', $list ) ) |
|
169 | + if( array_key_exists( $this->prefix.'id', $list ) ) |
|
170 | 170 | { |
171 | - $this->setId( $list[$this->prefix . 'id'] ); |
|
172 | - unset( $list[$this->prefix . 'id'] ); |
|
171 | + $this->setId( $list[$this->prefix.'id'] ); |
|
172 | + unset( $list[$this->prefix.'id'] ); |
|
173 | 173 | } |
174 | 174 | |
175 | - unset( $list[$this->prefix . 'siteid'] ); |
|
176 | - unset( $list[$this->prefix . 'ctime'] ); |
|
177 | - unset( $list[$this->prefix . 'mtime'] ); |
|
178 | - unset( $list[$this->prefix . 'editor'] ); |
|
175 | + unset( $list[$this->prefix.'siteid'] ); |
|
176 | + unset( $list[$this->prefix.'ctime'] ); |
|
177 | + unset( $list[$this->prefix.'mtime'] ); |
|
178 | + unset( $list[$this->prefix.'editor'] ); |
|
179 | 179 | |
180 | 180 | return $list; |
181 | 181 | } |
@@ -189,11 +189,11 @@ discard block |
||
189 | 189 | public function toArray() |
190 | 190 | { |
191 | 191 | return array( |
192 | - $this->prefix . 'id' => $this->getId(), |
|
193 | - $this->prefix . 'siteid' => $this->getSiteId(), |
|
194 | - $this->prefix . 'ctime' => $this->getTimeCreated(), |
|
195 | - $this->prefix . 'mtime' => $this->getTimeModified(), |
|
196 | - $this->prefix . 'editor' => $this->getEditor(), |
|
192 | + $this->prefix.'id' => $this->getId(), |
|
193 | + $this->prefix.'siteid' => $this->getSiteId(), |
|
194 | + $this->prefix.'ctime' => $this->getTimeCreated(), |
|
195 | + $this->prefix.'mtime' => $this->getTimeModified(), |
|
196 | + $this->prefix.'editor' => $this->getEditor(), |
|
197 | 197 | ); |
198 | 198 | } |
199 | 199 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function createItem() |
62 | 62 | { |
63 | 63 | $values = array( |
64 | - $this->prefix . 'siteid' => $this->getContext()->getLocale()->getSiteId(), |
|
64 | + $this->prefix.'siteid' => $this->getContext()->getLocale()->getSiteId(), |
|
65 | 65 | ); |
66 | 66 | return $this->createItemBase( $values ); |
67 | 67 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $type = 'update'; |
114 | 114 | } |
115 | 115 | |
116 | - $statement = $conn->create( $this->getSqlConfig( $this->getConfigPath() . $type ) ); |
|
116 | + $statement = $conn->create( $this->getSqlConfig( $this->getConfigPath().$type ) ); |
|
117 | 117 | |
118 | 118 | $statement->bind( 1, $context->getLocale()->getSiteId(), \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
119 | 119 | $statement->bind( 2, $item->getCode(), \Aimeos\MW\DB\Statement\Base::PARAM_STR ); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | if( $fetch === true ) |
135 | 135 | { |
136 | 136 | if( $id === null ) { |
137 | - $item->setId( $this->newId( $conn, $this->getConfigPath() . 'newid' ) ); |
|
137 | + $item->setId( $this->newId( $conn, $this->getConfigPath().'newid' ) ); |
|
138 | 138 | } else { |
139 | 139 | $item->setId( $id ); // modified false |
140 | 140 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | public function deleteItems( array $ids ) |
159 | 159 | { |
160 | - $this->deleteItemsBase( $ids, $this->getConfigPath() . 'delete' ); |
|
160 | + $this->deleteItemsBase( $ids, $this->getConfigPath().'delete' ); |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | |
@@ -173,8 +173,8 @@ discard block |
||
173 | 173 | public function findItem( $code, array $ref = array(), $domain = null, $type = null ) |
174 | 174 | { |
175 | 175 | $find = array( |
176 | - $this->prefix . 'code' => $code, |
|
177 | - $this->prefix . 'domain' => $domain, |
|
176 | + $this->prefix.'code' => $code, |
|
177 | + $this->prefix.'domain' => $domain, |
|
178 | 178 | ); |
179 | 179 | return $this->findItemBase( $find, $ref ); |
180 | 180 | } |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function getItem( $id, array $ref = array() ) |
192 | 192 | { |
193 | - return $this->getItemBase( $this->prefix . 'id', $id, $ref ); |
|
193 | + return $this->getItemBase( $this->prefix.'id', $id, $ref ); |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | |
@@ -219,13 +219,13 @@ discard block |
||
219 | 219 | } |
220 | 220 | |
221 | 221 | $level = \Aimeos\MShop\Locale\Manager\Base::SITE_ALL; |
222 | - $cfgPathSearch = $this->getConfigPath() . 'search'; |
|
223 | - $cfgPathCount = $this->getConfigPath() . 'count'; |
|
222 | + $cfgPathSearch = $this->getConfigPath().'search'; |
|
223 | + $cfgPathCount = $this->getConfigPath().'count'; |
|
224 | 224 | $required = array( trim( $this->prefix, '.' ) ); |
225 | 225 | |
226 | 226 | $results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level ); |
227 | 227 | while( ( $row = $results->fetch() ) !== false ) { |
228 | - $items[$row[$this->prefix . 'id']] = $this->createItemBase( $row ); |
|
228 | + $items[$row[$this->prefix.'id']] = $this->createItemBase( $row ); |
|
229 | 229 | } |
230 | 230 | |
231 | 231 | $dbm->release( $conn, $dbname ); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | */ |
250 | 250 | public function getSubManager( $manager, $name = null ) |
251 | 251 | { |
252 | - return $this->getSubManagerBase( 'common', 'type/' . $manager, $name ); |
|
252 | + return $this->getSubManagerBase( 'common', 'type/'.$manager, $name ); |
|
253 | 253 | } |
254 | 254 | |
255 | 255 |
@@ -410,6 +410,7 @@ |
||
410 | 410 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
411 | 411 | * @param array $ref List of domains to fetch list items and referenced items for |
412 | 412 | * @param integer &$total Number of items that are available in total |
413 | + * @param integer $total |
|
413 | 414 | * @return array List of service items implementing \Aimeos\MShop\Service\Item\Iface |
414 | 415 | * |
415 | 416 | * @throws \Aimeos\MShop\Service\Exception if creating items failed |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function deleteItems( array $ids ) |
74 | 74 | { |
75 | - $this->deleteItemsBase( $ids, $this->getConfigPath() . 'delete' ); |
|
75 | + $this->deleteItemsBase( $ids, $this->getConfigPath().'delete' ); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $type = 'update'; |
125 | 125 | } |
126 | 126 | |
127 | - $stmt = $this->getCachedStatement( $conn, $this->getConfigPath() . $type ); |
|
127 | + $stmt = $this->getCachedStatement( $conn, $this->getConfigPath().$type ); |
|
128 | 128 | |
129 | 129 | $stmt->bind( 1, $context->getLocale()->getSiteId(), \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
130 | 130 | $stmt->bind( 2, $item->getParentId() ); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | $stmt->bind( 7, $item->getFirstname() ); |
136 | 136 | $stmt->bind( 8, $item->getLastname() ); |
137 | 137 | $stmt->bind( 9, $item->getAddress1() ); |
138 | - $stmt->bind( 10, $item->getAddress2()); |
|
138 | + $stmt->bind( 10, $item->getAddress2() ); |
|
139 | 139 | $stmt->bind( 11, $item->getAddress3() ); |
140 | 140 | $stmt->bind( 12, $item->getPostal() ); |
141 | 141 | $stmt->bind( 13, $item->getCity() ); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | if( $id === null && $fetch === true ) |
164 | 164 | { |
165 | - $path = $this->getConfigPath() . 'newid'; |
|
165 | + $path = $this->getConfigPath().'newid'; |
|
166 | 166 | $item->setId( $this->newId( $conn, $path ) ); |
167 | 167 | } |
168 | 168 | |
@@ -201,13 +201,13 @@ discard block |
||
201 | 201 | |
202 | 202 | $required = array( trim( $this->prefix, '.' ) ); |
203 | 203 | $level = \Aimeos\MShop\Locale\Manager\Base::SITE_ALL; |
204 | - $cfgPathSearch = $this->getConfigPath() . 'search'; |
|
205 | - $cfgPathCount = $this->getConfigPath() . 'count'; |
|
204 | + $cfgPathSearch = $this->getConfigPath().'search'; |
|
205 | + $cfgPathCount = $this->getConfigPath().'count'; |
|
206 | 206 | |
207 | 207 | $results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level ); |
208 | 208 | |
209 | 209 | while( ( $row = $results->fetch() ) !== false ) { |
210 | - $items[$row[$this->prefix . 'id']] = $this->createItemBase( $row ); |
|
210 | + $items[$row[$this->prefix.'id']] = $this->createItemBase( $row ); |
|
211 | 211 | } |
212 | 212 | |
213 | 213 | $dbm->release( $conn, $dbname ); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | */ |
232 | 232 | public function getSubManager( $manager, $name = null ) |
233 | 233 | { |
234 | - return $this->getSubManagerBase( 'common', 'address/' . $manager, $name ); |
|
234 | + return $this->getSubManagerBase( 'common', 'address/'.$manager, $name ); |
|
235 | 235 | } |
236 | 236 | |
237 | 237 |