@@ -71,7 +71,7 @@ |
||
71 | 71 | foreach( $list as $code ) |
72 | 72 | { |
73 | 73 | $stmt->bind( 1, $code ); |
74 | - $stmt->bind( 2, $code . '2' ); |
|
74 | + $stmt->bind( 2, $code.'2' ); |
|
75 | 75 | $stmt->execute()->finish(); |
76 | 76 | } |
77 | 77 |
@@ -76,8 +76,7 @@ |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | $this->status( 'done' ); |
79 | - } |
|
80 | - else |
|
79 | + } else |
|
81 | 80 | { |
82 | 81 | $this->status( 'OK' ); |
83 | 82 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | // negative cache |
57 | 57 | $success = false; |
58 | - apcu_fetch( '-' . $this->prefix . $path, $success ); |
|
58 | + apcu_fetch( '-'.$this->prefix.$path, $success ); |
|
59 | 59 | |
60 | 60 | if( $success === true ) { |
61 | 61 | return $default; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | // regular cache |
65 | 65 | $success = false; |
66 | - $value = apcu_fetch( $this->prefix . $path, $success ); |
|
66 | + $value = apcu_fetch( $this->prefix.$path, $success ); |
|
67 | 67 | |
68 | 68 | if( $success === true ) { |
69 | 69 | return $value; |
@@ -72,11 +72,11 @@ discard block |
||
72 | 72 | // not cached |
73 | 73 | if( ( $value = parent::get( $path, null ) ) === null ) |
74 | 74 | { |
75 | - apcu_store( '-' . $this->prefix . $path, null ); |
|
75 | + apcu_store( '-'.$this->prefix.$path, null ); |
|
76 | 76 | return $default; |
77 | 77 | } |
78 | 78 | |
79 | - apcu_store( $this->prefix . $path, $value ); |
|
79 | + apcu_store( $this->prefix.$path, $value ); |
|
80 | 80 | |
81 | 81 | return $value; |
82 | 82 | } |
@@ -94,6 +94,6 @@ discard block |
||
94 | 94 | |
95 | 95 | parent::set( $path, $value ); |
96 | 96 | |
97 | - apcu_store( $this->prefix . $path, $value ); |
|
97 | + apcu_store( $this->prefix.$path, $value ); |
|
98 | 98 | } |
99 | 99 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return parent::dt( $domain, $string ); |
58 | 58 | } |
59 | 59 | |
60 | - $key = $this->prefix . $domain . '|' . $this->getLocale() . '|' . $string; |
|
60 | + $key = $this->prefix.$domain.'|'.$this->getLocale().'|'.$string; |
|
61 | 61 | |
62 | 62 | // regular cache |
63 | 63 | $success = false; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | $locale = $this->getLocale(); |
95 | 95 | $index = $this->getPluralIndex( $number, $locale ); |
96 | - $key = $this->prefix . $domain . '|' . $locale . '|' . $singular . '|' . $index; |
|
96 | + $key = $this->prefix.$domain.'|'.$locale.'|'.$singular.'|'.$index; |
|
97 | 97 | |
98 | 98 | // regular cache |
99 | 99 | $success = false; |
@@ -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 | } |
@@ -138,10 +138,10 @@ discard block |
||
138 | 138 | { |
139 | 139 | $list = parent::toArray( $private ); |
140 | 140 | |
141 | - $list[$this->prefix . 'position'] = $this->getPosition(); |
|
141 | + $list[$this->prefix.'position'] = $this->getPosition(); |
|
142 | 142 | |
143 | 143 | if( $private === true ) { |
144 | - $list[$this->prefix . 'parentid'] = $this->getParentId(); |
|
144 | + $list[$this->prefix.'parentid'] = $this->getParentId(); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | return $list; |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function getCode() |
50 | 50 | { |
51 | - if( isset( $this->values[$this->prefix . 'code'] ) ) { |
|
52 | - return (string) $this->values[$this->prefix . 'code']; |
|
51 | + if( isset( $this->values[$this->prefix.'code'] ) ) { |
|
52 | + return (string) $this->values[$this->prefix.'code']; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | return ''; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | { |
67 | 67 | if( $code === $this->getCode() ) { return $this; } |
68 | 68 | |
69 | - $this->values[$this->prefix . 'code'] = (string) $this->checkCode( $code ); |
|
69 | + $this->values[$this->prefix.'code'] = (string) $this->checkCode( $code ); |
|
70 | 70 | $this->setModified(); |
71 | 71 | |
72 | 72 | return $this; |
@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function getDomain() |
82 | 82 | { |
83 | - if( isset( $this->values[$this->prefix . 'domain'] ) ) { |
|
84 | - return (string) $this->values[$this->prefix . 'domain']; |
|
83 | + if( isset( $this->values[$this->prefix.'domain'] ) ) { |
|
84 | + return (string) $this->values[$this->prefix.'domain']; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | return ''; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | if( $domain == $this->getDomain() ) { return $this; } |
100 | 100 | |
101 | - $this->values[$this->prefix . 'domain'] = (string) $domain; |
|
101 | + $this->values[$this->prefix.'domain'] = (string) $domain; |
|
102 | 102 | $this->setModified(); |
103 | 103 | |
104 | 104 | return $this; |
@@ -112,8 +112,8 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function getName() |
114 | 114 | { |
115 | - if( isset( $this->values[$this->prefix . 'name'] ) ) { |
|
116 | - return (string) $this->values[$this->prefix . 'name']; |
|
115 | + if( isset( $this->values[$this->prefix.'name'] ) ) { |
|
116 | + return (string) $this->values[$this->prefix.'name']; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | return $this->getLabel(); |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function getLabel() |
129 | 129 | { |
130 | - if( isset( $this->values[$this->prefix . 'label'] ) ) { |
|
131 | - return (string) $this->values[$this->prefix . 'label']; |
|
130 | + if( isset( $this->values[$this->prefix.'label'] ) ) { |
|
131 | + return (string) $this->values[$this->prefix.'label']; |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | return ''; |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | { |
146 | 146 | if( $label == $this->getLabel() ) { return $this; } |
147 | 147 | |
148 | - $this->values[$this->prefix . 'label'] = (string) $label; |
|
148 | + $this->values[$this->prefix.'label'] = (string) $label; |
|
149 | 149 | $this->setModified(); |
150 | 150 | |
151 | 151 | return $this; |
@@ -159,8 +159,8 @@ discard block |
||
159 | 159 | */ |
160 | 160 | public function getStatus() |
161 | 161 | { |
162 | - if( isset( $this->values[$this->prefix . 'status'] ) ) { |
|
163 | - return (int) $this->values[$this->prefix . 'status']; |
|
162 | + if( isset( $this->values[$this->prefix.'status'] ) ) { |
|
163 | + return (int) $this->values[$this->prefix.'status']; |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | return 0; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | { |
178 | 178 | if( $status == $this->getStatus() ) { return $this; } |
179 | 179 | |
180 | - $this->values[$this->prefix . 'status'] = (int) $status; |
|
180 | + $this->values[$this->prefix.'status'] = (int) $status; |
|
181 | 181 | $this->setModified(); |
182 | 182 | |
183 | 183 | return $this; |
@@ -205,16 +205,16 @@ discard block |
||
205 | 205 | { |
206 | 206 | $unknown = []; |
207 | 207 | $list = parent::fromArray( $list ); |
208 | - unset( $list[$this->prefix . 'name'] ); |
|
208 | + unset( $list[$this->prefix.'name'] ); |
|
209 | 209 | |
210 | 210 | foreach( $list as $key => $value ) |
211 | 211 | { |
212 | 212 | switch( $key ) |
213 | 213 | { |
214 | - case $this->prefix . 'code': $this->setCode( $value ); break; |
|
215 | - case $this->prefix . 'domain': $this->setDomain( $value ); break; |
|
216 | - case $this->prefix . 'label': $this->setLabel( $value ); break; |
|
217 | - case $this->prefix . 'status': $this->setStatus( $value ); break; |
|
214 | + case $this->prefix.'code': $this->setCode( $value ); break; |
|
215 | + case $this->prefix.'domain': $this->setDomain( $value ); break; |
|
216 | + case $this->prefix.'label': $this->setLabel( $value ); break; |
|
217 | + case $this->prefix.'status': $this->setStatus( $value ); break; |
|
218 | 218 | default: $unknown[$key] = $value; |
219 | 219 | } |
220 | 220 | } |
@@ -233,11 +233,11 @@ discard block |
||
233 | 233 | { |
234 | 234 | $list = parent::toArray( $private ); |
235 | 235 | |
236 | - $list[$this->prefix . 'code'] = $this->getCode(); |
|
237 | - $list[$this->prefix . 'domain'] = $this->getDomain(); |
|
238 | - $list[$this->prefix . 'name'] = $this->getName(); |
|
239 | - $list[$this->prefix . 'label'] = $this->getLabel(); |
|
240 | - $list[$this->prefix . 'status'] = $this->getStatus(); |
|
236 | + $list[$this->prefix.'code'] = $this->getCode(); |
|
237 | + $list[$this->prefix.'domain'] = $this->getDomain(); |
|
238 | + $list[$this->prefix.'name'] = $this->getName(); |
|
239 | + $list[$this->prefix.'label'] = $this->getLabel(); |
|
240 | + $list[$this->prefix.'status'] = $this->getStatus(); |
|
241 | 241 | |
242 | 242 | return $list; |
243 | 243 | } |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getParentId() |
54 | 54 | { |
55 | - if( isset( $this->values[$this->prefix . 'parentid'] ) ) { |
|
56 | - return (int) $this->values[$this->prefix . 'parentid']; |
|
55 | + if( isset( $this->values[$this->prefix.'parentid'] ) ) { |
|
56 | + return (int) $this->values[$this->prefix.'parentid']; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | return null; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | { |
72 | 72 | if( $parentid == $this->getParentId() ) { return $this; } |
73 | 73 | |
74 | - $this->values[$this->prefix . 'parentid'] = (int) $parentid; |
|
74 | + $this->values[$this->prefix.'parentid'] = (int) $parentid; |
|
75 | 75 | $this->setModified(); |
76 | 76 | |
77 | 77 | return $this; |
@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function getDomain() |
87 | 87 | { |
88 | - if( isset( $this->values[$this->prefix . 'domain'] ) ) { |
|
89 | - return (string) $this->values[$this->prefix . 'domain']; |
|
88 | + if( isset( $this->values[$this->prefix.'domain'] ) ) { |
|
89 | + return (string) $this->values[$this->prefix.'domain']; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | return ''; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | { |
104 | 104 | if( $domain == $this->getDomain() ) { return $this; } |
105 | 105 | |
106 | - $this->values[$this->prefix . 'domain'] = (string) $domain; |
|
106 | + $this->values[$this->prefix.'domain'] = (string) $domain; |
|
107 | 107 | $this->setModified(); |
108 | 108 | |
109 | 109 | return $this; |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | */ |
119 | 119 | public function getRefId() |
120 | 120 | { |
121 | - if( isset( $this->values[$this->prefix . 'refid'] ) ) { |
|
122 | - return (string) $this->values[$this->prefix . 'refid']; |
|
121 | + if( isset( $this->values[$this->prefix.'refid'] ) ) { |
|
122 | + return (string) $this->values[$this->prefix.'refid']; |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | return ''; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | { |
138 | 138 | if( $refid == $this->getRefId() ) { return $this; } |
139 | 139 | |
140 | - $this->values[$this->prefix . 'refid'] = (string) $refid; |
|
140 | + $this->values[$this->prefix.'refid'] = (string) $refid; |
|
141 | 141 | $this->setModified(); |
142 | 142 | |
143 | 143 | return $this; |
@@ -151,8 +151,8 @@ discard block |
||
151 | 151 | */ |
152 | 152 | public function getDateStart() |
153 | 153 | { |
154 | - if( isset( $this->values[$this->prefix . 'datestart'] ) ) { |
|
155 | - return (string) $this->values[$this->prefix . 'datestart']; |
|
154 | + if( isset( $this->values[$this->prefix.'datestart'] ) ) { |
|
155 | + return (string) $this->values[$this->prefix.'datestart']; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | return null; |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | { |
170 | 170 | if( $date === $this->getDateStart() ) { return $this; } |
171 | 171 | |
172 | - $this->values[$this->prefix . 'datestart'] = $this->checkDateFormat( $date ); |
|
172 | + $this->values[$this->prefix.'datestart'] = $this->checkDateFormat( $date ); |
|
173 | 173 | $this->setModified(); |
174 | 174 | |
175 | 175 | return $this; |
@@ -183,8 +183,8 @@ discard block |
||
183 | 183 | */ |
184 | 184 | public function getDateEnd() |
185 | 185 | { |
186 | - if( isset( $this->values[$this->prefix . 'dateend'] ) ) { |
|
187 | - return (string) $this->values[$this->prefix . 'dateend']; |
|
186 | + if( isset( $this->values[$this->prefix.'dateend'] ) ) { |
|
187 | + return (string) $this->values[$this->prefix.'dateend']; |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | return null; |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | { |
202 | 202 | if( $date === $this->getDateEnd() ) { return $this; } |
203 | 203 | |
204 | - $this->values[$this->prefix . 'dateend'] = $this->checkDateFormat( $date ); |
|
204 | + $this->values[$this->prefix.'dateend'] = $this->checkDateFormat( $date ); |
|
205 | 205 | $this->setModified(); |
206 | 206 | |
207 | 207 | return $this; |
@@ -215,8 +215,8 @@ discard block |
||
215 | 215 | */ |
216 | 216 | public function getType() |
217 | 217 | { |
218 | - if( isset( $this->values[$this->prefix . 'type'] ) ) { |
|
219 | - return (string) $this->values[$this->prefix . 'type']; |
|
218 | + if( isset( $this->values[$this->prefix.'type'] ) ) { |
|
219 | + return (string) $this->values[$this->prefix.'type']; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | return null; |
@@ -230,8 +230,8 @@ discard block |
||
230 | 230 | */ |
231 | 231 | public function getTypeName() |
232 | 232 | { |
233 | - if( isset( $this->values[$this->prefix . 'typename'] ) ) { |
|
234 | - return (string) $this->values[$this->prefix . 'typename']; |
|
233 | + if( isset( $this->values[$this->prefix.'typename'] ) ) { |
|
234 | + return (string) $this->values[$this->prefix.'typename']; |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | return null; |
@@ -245,8 +245,8 @@ discard block |
||
245 | 245 | */ |
246 | 246 | public function getTypeId() |
247 | 247 | { |
248 | - if( isset( $this->values[$this->prefix . 'typeid'] ) ) { |
|
249 | - return (int) $this->values[$this->prefix . 'typeid']; |
|
248 | + if( isset( $this->values[$this->prefix.'typeid'] ) ) { |
|
249 | + return (int) $this->values[$this->prefix.'typeid']; |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | return null; |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | { |
264 | 264 | if( $typeid == $this->getTypeId() ) { return $this; } |
265 | 265 | |
266 | - $this->values[$this->prefix . 'typeid'] = (int) $typeid; |
|
266 | + $this->values[$this->prefix.'typeid'] = (int) $typeid; |
|
267 | 267 | $this->setModified(); |
268 | 268 | |
269 | 269 | return $this; |
@@ -277,8 +277,8 @@ discard block |
||
277 | 277 | */ |
278 | 278 | public function getPosition() |
279 | 279 | { |
280 | - if( isset( $this->values[$this->prefix . 'position'] ) ) { |
|
281 | - return (int) $this->values[$this->prefix . 'position']; |
|
280 | + if( isset( $this->values[$this->prefix.'position'] ) ) { |
|
281 | + return (int) $this->values[$this->prefix.'position']; |
|
282 | 282 | } |
283 | 283 | |
284 | 284 | return 0; |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | { |
296 | 296 | if( $pos == $this->getPosition() ) { return $this; } |
297 | 297 | |
298 | - $this->values[$this->prefix . 'position'] = (int) $pos; |
|
298 | + $this->values[$this->prefix.'position'] = (int) $pos; |
|
299 | 299 | $this->setModified(); |
300 | 300 | |
301 | 301 | return $this; |
@@ -309,8 +309,8 @@ discard block |
||
309 | 309 | */ |
310 | 310 | public function getStatus() |
311 | 311 | { |
312 | - if( isset( $this->values[$this->prefix . 'status'] ) ) { |
|
313 | - return (int) $this->values[$this->prefix . 'status']; |
|
312 | + if( isset( $this->values[$this->prefix.'status'] ) ) { |
|
313 | + return (int) $this->values[$this->prefix.'status']; |
|
314 | 314 | } |
315 | 315 | |
316 | 316 | return 1; |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | { |
328 | 328 | if( $status == $this->getStatus() ) { return $this; } |
329 | 329 | |
330 | - $this->values[$this->prefix . 'status'] = (int) $status; |
|
330 | + $this->values[$this->prefix.'status'] = (int) $status; |
|
331 | 331 | $this->setModified(); |
332 | 332 | |
333 | 333 | return $this; |
@@ -341,8 +341,8 @@ discard block |
||
341 | 341 | */ |
342 | 342 | public function getConfig() |
343 | 343 | { |
344 | - if( isset( $this->values[$this->prefix . 'config'] ) ) { |
|
345 | - return (array) $this->values[$this->prefix . 'config']; |
|
344 | + if( isset( $this->values[$this->prefix.'config'] ) ) { |
|
345 | + return (array) $this->values[$this->prefix.'config']; |
|
346 | 346 | } |
347 | 347 | |
348 | 348 | return []; |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | */ |
358 | 358 | public function setConfig( array $config ) |
359 | 359 | { |
360 | - $this->values[$this->prefix . 'config'] = $config; |
|
360 | + $this->values[$this->prefix.'config'] = $config; |
|
361 | 361 | $this->setModified(); |
362 | 362 | |
363 | 363 | return $this; |
@@ -415,15 +415,15 @@ discard block |
||
415 | 415 | { |
416 | 416 | switch( $key ) |
417 | 417 | { |
418 | - case $this->prefix . 'parentid': $this->setParentId( $value ); break; |
|
419 | - case $this->prefix . 'typeid': $this->setTypeId( $value ); break; |
|
420 | - case $this->prefix . 'domain': $this->setDomain( $value ); break; |
|
421 | - case $this->prefix . 'refid': $this->setRefId( $value ); break; |
|
422 | - case $this->prefix . 'datestart': $this->setDateStart( $value ); break; |
|
423 | - case $this->prefix . 'dateend': $this->setDateEnd( $value ); break; |
|
424 | - case $this->prefix . 'config': $this->setConfig( $value ); break; |
|
425 | - case $this->prefix . 'position': $this->setPosition( $value ); break; |
|
426 | - case $this->prefix . 'status': $this->setStatus( $value ); break; |
|
418 | + case $this->prefix.'parentid': $this->setParentId( $value ); break; |
|
419 | + case $this->prefix.'typeid': $this->setTypeId( $value ); break; |
|
420 | + case $this->prefix.'domain': $this->setDomain( $value ); break; |
|
421 | + case $this->prefix.'refid': $this->setRefId( $value ); break; |
|
422 | + case $this->prefix.'datestart': $this->setDateStart( $value ); break; |
|
423 | + case $this->prefix.'dateend': $this->setDateEnd( $value ); break; |
|
424 | + case $this->prefix.'config': $this->setConfig( $value ); break; |
|
425 | + case $this->prefix.'position': $this->setPosition( $value ); break; |
|
426 | + case $this->prefix.'status': $this->setStatus( $value ); break; |
|
427 | 427 | default: $unknown[$key] = $value; |
428 | 428 | } |
429 | 429 | } |
@@ -442,20 +442,20 @@ discard block |
||
442 | 442 | { |
443 | 443 | $list = parent::toArray( $private ); |
444 | 444 | |
445 | - $list[$this->prefix . 'domain'] = $this->getDomain(); |
|
446 | - $list[$this->prefix . 'refid'] = $this->getRefId(); |
|
447 | - $list[$this->prefix . 'datestart'] = $this->getDateStart(); |
|
448 | - $list[$this->prefix . 'dateend'] = $this->getDateEnd(); |
|
449 | - $list[$this->prefix . 'config'] = $this->getConfig(); |
|
450 | - $list[$this->prefix . 'position'] = $this->getPosition(); |
|
451 | - $list[$this->prefix . 'status'] = $this->getStatus(); |
|
452 | - $list[$this->prefix . 'typename'] = $this->getTypeName(); |
|
453 | - $list[$this->prefix . 'type'] = $this->getType(); |
|
445 | + $list[$this->prefix.'domain'] = $this->getDomain(); |
|
446 | + $list[$this->prefix.'refid'] = $this->getRefId(); |
|
447 | + $list[$this->prefix.'datestart'] = $this->getDateStart(); |
|
448 | + $list[$this->prefix.'dateend'] = $this->getDateEnd(); |
|
449 | + $list[$this->prefix.'config'] = $this->getConfig(); |
|
450 | + $list[$this->prefix.'position'] = $this->getPosition(); |
|
451 | + $list[$this->prefix.'status'] = $this->getStatus(); |
|
452 | + $list[$this->prefix.'typename'] = $this->getTypeName(); |
|
453 | + $list[$this->prefix.'type'] = $this->getType(); |
|
454 | 454 | |
455 | 455 | if( $private === true ) |
456 | 456 | { |
457 | - $list[$this->prefix . 'parentid'] = $this->getParentId(); |
|
458 | - $list[$this->prefix . 'typeid'] = $this->getTypeId(); |
|
457 | + $list[$this->prefix.'parentid'] = $this->getParentId(); |
|
458 | + $list[$this->prefix.'typeid'] = $this->getTypeId(); |
|
459 | 459 | } |
460 | 460 | |
461 | 461 | return $list; |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | /** |
260 | 260 | * Deletes the item specified by its ID. |
261 | 261 | * |
262 | - * @param mixed $id ID of the item object |
|
262 | + * @param integer $id ID of the item object |
|
263 | 263 | */ |
264 | 264 | public function deleteItem( $id ) |
265 | 265 | { |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | /** |
283 | 283 | * Removes multiple items specified by ids in the array. |
284 | 284 | * |
285 | - * @param array $ids List of IDs |
|
285 | + * @param integer[] $ids List of IDs |
|
286 | 286 | */ |
287 | 287 | public function deleteItems( array $ids ) |
288 | 288 | { |
@@ -460,6 +460,7 @@ discard block |
||
460 | 460 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
461 | 461 | * @param string[] $ref List of domains to fetch list items and referenced items for |
462 | 462 | * @param integer|null &$total Number of items that are available in total |
463 | + * @param integer $total |
|
463 | 464 | * @return array List of items implementing \Aimeos\MShop\Common\Item\Iface |
464 | 465 | */ |
465 | 466 | public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null ) |
@@ -647,9 +647,12 @@ discard block |
||
647 | 647 | |
648 | 648 | foreach( $sitePath as $siteId ) |
649 | 649 | { |
650 | - try { |
|
650 | + try |
|
651 | + { |
|
651 | 652 | $path = $this->createTreeManager( $siteId )->getPath( $id ); |
652 | - } catch( \Exception $e ) { |
|
653 | + } |
|
654 | + catch( \Exception $e ) |
|
655 | + { |
|
653 | 656 | continue; |
654 | 657 | } |
655 | 658 | |
@@ -684,9 +687,12 @@ discard block |
||
684 | 687 | |
685 | 688 | foreach( $sitePath as $siteId ) |
686 | 689 | { |
687 | - try { |
|
690 | + try |
|
691 | + { |
|
688 | 692 | $node = $this->createTreeManager( $siteId )->getNode( $id, $level, $criteria ); |
689 | - } catch( \Exception $e ) { |
|
693 | + } |
|
694 | + catch( \Exception $e ) |
|
695 | + { |
|
690 | 696 | continue; |
691 | 697 | } |
692 | 698 | |
@@ -807,8 +813,7 @@ discard block |
||
807 | 813 | * @see mshop/catalog/manager/standard/insert-usage/ansi |
808 | 814 | */ |
809 | 815 | $path = 'mshop/catalog/manager/standard/update-usage'; |
810 | - } |
|
811 | - else |
|
816 | + } else |
|
812 | 817 | { |
813 | 818 | /** mshop/catalog/manager/standard/insert-usage/mysql |
814 | 819 | * Updates the config, editor, ctime and mtime value of an inserted record |
@@ -864,8 +869,7 @@ discard block |
||
864 | 869 | { |
865 | 870 | $stmt->bind( 5, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
866 | 871 | $stmt->bind( 6, $id, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
867 | - } |
|
868 | - else |
|
872 | + } else |
|
869 | 873 | { |
870 | 874 | $stmt->bind( 5, $date ); // ctime |
871 | 875 | $stmt->bind( 6, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
@@ -612,7 +612,7 @@ |
||
612 | 612 | $cfgPathCount = 'mshop/catalog/manager/standard/count'; |
613 | 613 | |
614 | 614 | if( $search->getSortations() === [] ) { |
615 | - $search->setSortations( [$search->sort( '+', 'catalog.left')] ); |
|
615 | + $search->setSortations( [$search->sort( '+', 'catalog.left' )] ); |
|
616 | 616 | } |
617 | 617 | |
618 | 618 | $results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level ); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * Injects the outer object into the decorator stack |
43 | 43 | * |
44 | 44 | * @param \Aimeos\MShop\Plugin\Provider\Iface $object First object of the decorator stack |
45 | - * @return \Aimeos\MShop\Plugin\Provider\Iface Plugin object for chaining method calls |
|
45 | + * @return Base Plugin object for chaining method calls |
|
46 | 46 | */ |
47 | 47 | public function setObject( \Aimeos\MShop\Plugin\Provider\Iface $object ) |
48 | 48 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * Returns the configuration value from the service item specified by its key. |
82 | 82 | * |
83 | 83 | * @param string $key Configuration key |
84 | - * @param mixed $default Default value if configuration key isn't available |
|
84 | + * @param boolean $default Default value if configuration key isn't available |
|
85 | 85 | * @return string|null Value from service item configuration |
86 | 86 | */ |
87 | 87 | protected function getConfigValue( $key, $default = null ) |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * Injects the outmost object into the decorator stack |
70 | 70 | * |
71 | 71 | * @param \Aimeos\MShop\Plugin\Provider\Iface $object First object of the decorator stack |
72 | - * @return \Aimeos\MShop\Plugin\Provider\Iface Plugin object for chaining method calls |
|
72 | + * @return Base Plugin object for chaining method calls |
|
73 | 73 | */ |
74 | 74 | public function setObject( \Aimeos\MShop\Plugin\Provider\Iface $object ) |
75 | 75 | { |