@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function getCompany() |
78 | 78 | { |
79 | - if( isset( $this->values[$this->prefix . 'company'] ) ) { |
|
80 | - return (string) $this->values[$this->prefix . 'company']; |
|
79 | + if( isset( $this->values[$this->prefix.'company'] ) ) { |
|
80 | + return (string) $this->values[$this->prefix.'company']; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | return ''; |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | { |
95 | 95 | if( $company == $this->getCompany() ) { return $this; } |
96 | 96 | |
97 | - $this->values[$this->prefix . 'company'] = (string) $company; |
|
97 | + $this->values[$this->prefix.'company'] = (string) $company; |
|
98 | 98 | $this->setModified(); |
99 | 99 | |
100 | 100 | return $this; |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function getVatID() |
109 | 109 | { |
110 | - if( isset( $this->values[$this->prefix . 'vatid'] ) ) { |
|
111 | - return (string) $this->values[$this->prefix . 'vatid']; |
|
110 | + if( isset( $this->values[$this->prefix.'vatid'] ) ) { |
|
111 | + return (string) $this->values[$this->prefix.'vatid']; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | return ''; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | { |
126 | 126 | if( $vatid == $this->getVatID() ) { return $this; } |
127 | 127 | |
128 | - $this->values[$this->prefix . 'vatid'] = (string) $vatid; |
|
128 | + $this->values[$this->prefix.'vatid'] = (string) $vatid; |
|
129 | 129 | $this->setModified(); |
130 | 130 | |
131 | 131 | return $this; |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function getSalutation() |
141 | 141 | { |
142 | - if( isset( $this->values[$this->prefix . 'salutation'] ) ) { |
|
143 | - return (string) $this->values[$this->prefix . 'salutation']; |
|
142 | + if( isset( $this->values[$this->prefix.'salutation'] ) ) { |
|
143 | + return (string) $this->values[$this->prefix.'salutation']; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | return \Aimeos\MShop\Common\Item\Address\Base::SALUTATION_UNKNOWN; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | $this->checkSalutation( $salutation ); |
161 | 161 | |
162 | - $this->values[$this->prefix . 'salutation'] = (string) $salutation; |
|
162 | + $this->values[$this->prefix.'salutation'] = (string) $salutation; |
|
163 | 163 | $this->setModified(); |
164 | 164 | |
165 | 165 | return $this; |
@@ -173,8 +173,8 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function getTitle() |
175 | 175 | { |
176 | - if( isset( $this->values[$this->prefix . 'title'] ) ) { |
|
177 | - return (string) $this->values[$this->prefix . 'title']; |
|
176 | + if( isset( $this->values[$this->prefix.'title'] ) ) { |
|
177 | + return (string) $this->values[$this->prefix.'title']; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | return ''; |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | { |
192 | 192 | if( $title == $this->getTitle() ) { return $this; } |
193 | 193 | |
194 | - $this->values[$this->prefix . 'title'] = (string) $title; |
|
194 | + $this->values[$this->prefix.'title'] = (string) $title; |
|
195 | 195 | $this->setModified(); |
196 | 196 | |
197 | 197 | return $this; |
@@ -205,8 +205,8 @@ discard block |
||
205 | 205 | */ |
206 | 206 | public function getFirstname() |
207 | 207 | { |
208 | - if( isset( $this->values[$this->prefix . 'firstname'] ) ) { |
|
209 | - return (string) $this->values[$this->prefix . 'firstname']; |
|
208 | + if( isset( $this->values[$this->prefix.'firstname'] ) ) { |
|
209 | + return (string) $this->values[$this->prefix.'firstname']; |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | return ''; |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | { |
224 | 224 | if( $firstname == $this->getFirstname() ) { return $this; } |
225 | 225 | |
226 | - $this->values[$this->prefix . 'firstname'] = (string) $firstname; |
|
226 | + $this->values[$this->prefix.'firstname'] = (string) $firstname; |
|
227 | 227 | $this->setModified(); |
228 | 228 | |
229 | 229 | return $this; |
@@ -237,8 +237,8 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function getLastname() |
239 | 239 | { |
240 | - if( isset( $this->values[$this->prefix . 'lastname'] ) ) { |
|
241 | - return (string) $this->values[$this->prefix . 'lastname']; |
|
240 | + if( isset( $this->values[$this->prefix.'lastname'] ) ) { |
|
241 | + return (string) $this->values[$this->prefix.'lastname']; |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | return ''; |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | { |
256 | 256 | if( $lastname == $this->getLastname() ) { return $this; } |
257 | 257 | |
258 | - $this->values[$this->prefix . 'lastname'] = (string) $lastname; |
|
258 | + $this->values[$this->prefix.'lastname'] = (string) $lastname; |
|
259 | 259 | $this->setModified(); |
260 | 260 | |
261 | 261 | return $this; |
@@ -269,8 +269,8 @@ discard block |
||
269 | 269 | */ |
270 | 270 | public function getAddress1() |
271 | 271 | { |
272 | - if( isset( $this->values[$this->prefix . 'address1'] ) ) { |
|
273 | - return (string) $this->values[$this->prefix . 'address1']; |
|
272 | + if( isset( $this->values[$this->prefix.'address1'] ) ) { |
|
273 | + return (string) $this->values[$this->prefix.'address1']; |
|
274 | 274 | } |
275 | 275 | |
276 | 276 | return ''; |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | { |
288 | 288 | if( $address1 == $this->getAddress1() ) { return $this; } |
289 | 289 | |
290 | - $this->values[$this->prefix . 'address1'] = (string) $address1; |
|
290 | + $this->values[$this->prefix.'address1'] = (string) $address1; |
|
291 | 291 | $this->setModified(); |
292 | 292 | |
293 | 293 | return $this; |
@@ -301,8 +301,8 @@ discard block |
||
301 | 301 | */ |
302 | 302 | public function getAddress2() |
303 | 303 | { |
304 | - if( isset( $this->values[$this->prefix . 'address2'] ) ) { |
|
305 | - return (string) $this->values[$this->prefix . 'address2']; |
|
304 | + if( isset( $this->values[$this->prefix.'address2'] ) ) { |
|
305 | + return (string) $this->values[$this->prefix.'address2']; |
|
306 | 306 | } |
307 | 307 | |
308 | 308 | return ''; |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | { |
320 | 320 | if( $address2 == $this->getAddress2() ) { return $this; } |
321 | 321 | |
322 | - $this->values[$this->prefix . 'address2'] = (string) $address2; |
|
322 | + $this->values[$this->prefix.'address2'] = (string) $address2; |
|
323 | 323 | $this->setModified(); |
324 | 324 | |
325 | 325 | return $this; |
@@ -333,8 +333,8 @@ discard block |
||
333 | 333 | */ |
334 | 334 | public function getAddress3() |
335 | 335 | { |
336 | - if( isset( $this->values[$this->prefix . 'address3'] ) ) { |
|
337 | - return (string) $this->values[$this->prefix . 'address3']; |
|
336 | + if( isset( $this->values[$this->prefix.'address3'] ) ) { |
|
337 | + return (string) $this->values[$this->prefix.'address3']; |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | return ''; |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | { |
352 | 352 | if( $address3 == $this->getAddress3() ) { return $this; } |
353 | 353 | |
354 | - $this->values[$this->prefix . 'address3'] = (string) $address3; |
|
354 | + $this->values[$this->prefix.'address3'] = (string) $address3; |
|
355 | 355 | $this->setModified(); |
356 | 356 | |
357 | 357 | return $this; |
@@ -365,8 +365,8 @@ discard block |
||
365 | 365 | */ |
366 | 366 | public function getPostal() |
367 | 367 | { |
368 | - if( isset( $this->values[$this->prefix . 'postal'] ) ) { |
|
369 | - return (string) $this->values[$this->prefix . 'postal']; |
|
368 | + if( isset( $this->values[$this->prefix.'postal'] ) ) { |
|
369 | + return (string) $this->values[$this->prefix.'postal']; |
|
370 | 370 | } |
371 | 371 | |
372 | 372 | return ''; |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | { |
384 | 384 | if( $postal == $this->getPostal() ) { return $this; } |
385 | 385 | |
386 | - $this->values[$this->prefix . 'postal'] = (string) $postal; |
|
386 | + $this->values[$this->prefix.'postal'] = (string) $postal; |
|
387 | 387 | $this->setModified(); |
388 | 388 | |
389 | 389 | return $this; |
@@ -397,8 +397,8 @@ discard block |
||
397 | 397 | */ |
398 | 398 | public function getCity() |
399 | 399 | { |
400 | - if( isset( $this->values[$this->prefix . 'city'] ) ) { |
|
401 | - return (string) $this->values[$this->prefix . 'city']; |
|
400 | + if( isset( $this->values[$this->prefix.'city'] ) ) { |
|
401 | + return (string) $this->values[$this->prefix.'city']; |
|
402 | 402 | } |
403 | 403 | |
404 | 404 | return ''; |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | { |
416 | 416 | if( $city == $this->getCity() ) { return $this; } |
417 | 417 | |
418 | - $this->values[$this->prefix . 'city'] = (string) $city; |
|
418 | + $this->values[$this->prefix.'city'] = (string) $city; |
|
419 | 419 | $this->setModified(); |
420 | 420 | |
421 | 421 | return $this; |
@@ -429,8 +429,8 @@ discard block |
||
429 | 429 | */ |
430 | 430 | public function getState() |
431 | 431 | { |
432 | - if( isset( $this->values[$this->prefix . 'state'] ) ) { |
|
433 | - return (string) $this->values[$this->prefix . 'state']; |
|
432 | + if( isset( $this->values[$this->prefix.'state'] ) ) { |
|
433 | + return (string) $this->values[$this->prefix.'state']; |
|
434 | 434 | } |
435 | 435 | |
436 | 436 | return ''; |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | { |
448 | 448 | if( $state == $this->getState() ) { return $this; } |
449 | 449 | |
450 | - $this->values[$this->prefix . 'state'] = (string) $state; |
|
450 | + $this->values[$this->prefix.'state'] = (string) $state; |
|
451 | 451 | $this->setModified(); |
452 | 452 | |
453 | 453 | return $this; |
@@ -461,8 +461,8 @@ discard block |
||
461 | 461 | */ |
462 | 462 | public function getCountryId() |
463 | 463 | { |
464 | - if( isset( $this->values[$this->prefix . 'countryid'] ) ) { |
|
465 | - return (string) $this->values[$this->prefix . 'countryid']; |
|
464 | + if( isset( $this->values[$this->prefix.'countryid'] ) ) { |
|
465 | + return (string) $this->values[$this->prefix.'countryid']; |
|
466 | 466 | } |
467 | 467 | |
468 | 468 | return null; |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | { |
480 | 480 | if( $countryid === $this->getCountryId() ) { return $this; } |
481 | 481 | |
482 | - $this->values[$this->prefix . 'countryid'] = strtoupper( (string) $countryid ); |
|
482 | + $this->values[$this->prefix.'countryid'] = strtoupper( (string) $countryid ); |
|
483 | 483 | $this->setModified(); |
484 | 484 | |
485 | 485 | return $this; |
@@ -493,8 +493,8 @@ discard block |
||
493 | 493 | */ |
494 | 494 | public function getLanguageId() |
495 | 495 | { |
496 | - if( isset( $this->values[$this->prefix . 'languageid'] ) ) { |
|
497 | - return (string) $this->values[$this->prefix . 'languageid']; |
|
496 | + if( isset( $this->values[$this->prefix.'languageid'] ) ) { |
|
497 | + return (string) $this->values[$this->prefix.'languageid']; |
|
498 | 498 | } |
499 | 499 | |
500 | 500 | return null; |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | { |
512 | 512 | if( $langid === $this->getLanguageId() ) { return $this; } |
513 | 513 | |
514 | - $this->values[$this->prefix . 'languageid'] = (string) $langid; |
|
514 | + $this->values[$this->prefix.'languageid'] = (string) $langid; |
|
515 | 515 | $this->setModified(); |
516 | 516 | |
517 | 517 | return $this; |
@@ -525,8 +525,8 @@ discard block |
||
525 | 525 | */ |
526 | 526 | public function getTelephone() |
527 | 527 | { |
528 | - if( isset( $this->values[$this->prefix . 'telephone'] ) ) { |
|
529 | - return (string) $this->values[$this->prefix . 'telephone']; |
|
528 | + if( isset( $this->values[$this->prefix.'telephone'] ) ) { |
|
529 | + return (string) $this->values[$this->prefix.'telephone']; |
|
530 | 530 | } |
531 | 531 | |
532 | 532 | return ''; |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | { |
544 | 544 | if( $telephone == $this->getTelephone() ) { return $this; } |
545 | 545 | |
546 | - $this->values[$this->prefix . 'telephone'] = (string) $telephone; |
|
546 | + $this->values[$this->prefix.'telephone'] = (string) $telephone; |
|
547 | 547 | $this->setModified(); |
548 | 548 | |
549 | 549 | return $this; |
@@ -557,8 +557,8 @@ discard block |
||
557 | 557 | */ |
558 | 558 | public function getEmail() |
559 | 559 | { |
560 | - if( isset( $this->values[$this->prefix . 'email'] ) ) { |
|
561 | - return (string) $this->values[$this->prefix . 'email']; |
|
560 | + if( isset( $this->values[$this->prefix.'email'] ) ) { |
|
561 | + return (string) $this->values[$this->prefix.'email']; |
|
562 | 562 | } |
563 | 563 | |
564 | 564 | return ''; |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | throw new \Aimeos\MShop\Exception( sprintf( 'Invalid characters in email address: "%1$s"', $email ) ); |
580 | 580 | } |
581 | 581 | |
582 | - $this->values[$this->prefix . 'email'] = (string) $email; |
|
582 | + $this->values[$this->prefix.'email'] = (string) $email; |
|
583 | 583 | $this->setModified(); |
584 | 584 | |
585 | 585 | return $this; |
@@ -593,8 +593,8 @@ discard block |
||
593 | 593 | */ |
594 | 594 | public function getTelefax() |
595 | 595 | { |
596 | - if( isset( $this->values[$this->prefix . 'telefax'] ) ) { |
|
597 | - return (string) $this->values[$this->prefix . 'telefax']; |
|
596 | + if( isset( $this->values[$this->prefix.'telefax'] ) ) { |
|
597 | + return (string) $this->values[$this->prefix.'telefax']; |
|
598 | 598 | } |
599 | 599 | |
600 | 600 | return ''; |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | { |
612 | 612 | if( $telefax == $this->getTelefax() ) { return $this; } |
613 | 613 | |
614 | - $this->values[$this->prefix . 'telefax'] = (string) $telefax; |
|
614 | + $this->values[$this->prefix.'telefax'] = (string) $telefax; |
|
615 | 615 | $this->setModified(); |
616 | 616 | |
617 | 617 | return $this; |
@@ -625,8 +625,8 @@ discard block |
||
625 | 625 | */ |
626 | 626 | public function getWebsite() |
627 | 627 | { |
628 | - if( isset( $this->values[$this->prefix . 'website'] ) ) { |
|
629 | - return (string) $this->values[$this->prefix . 'website']; |
|
628 | + if( isset( $this->values[$this->prefix.'website'] ) ) { |
|
629 | + return (string) $this->values[$this->prefix.'website']; |
|
630 | 630 | } |
631 | 631 | |
632 | 632 | return ''; |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | throw new \Aimeos\MShop\Exception( sprintf( 'Invalid web site URL "%1$s"', $website ) ); |
650 | 650 | } |
651 | 651 | |
652 | - $this->values[$this->prefix . 'website'] = (string) $website; |
|
652 | + $this->values[$this->prefix.'website'] = (string) $website; |
|
653 | 653 | $this->setModified(); |
654 | 654 | |
655 | 655 | return $this; |
@@ -663,8 +663,8 @@ discard block |
||
663 | 663 | */ |
664 | 664 | public function getLongitude() |
665 | 665 | { |
666 | - if( isset( $this->values[$this->prefix . 'longitude'] ) ) { |
|
667 | - return (string) $this->values[$this->prefix . 'longitude']; |
|
666 | + if( isset( $this->values[$this->prefix.'longitude'] ) ) { |
|
667 | + return (string) $this->values[$this->prefix.'longitude']; |
|
668 | 668 | } |
669 | 669 | |
670 | 670 | return null; |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | if( $value == '' ) { $value = null; } |
683 | 683 | if( $value === $this->getLongitude() ) { return $this; } |
684 | 684 | |
685 | - $this->values[$this->prefix . 'longitude'] = $value; |
|
685 | + $this->values[$this->prefix.'longitude'] = $value; |
|
686 | 686 | $this->setModified(); |
687 | 687 | |
688 | 688 | return $this; |
@@ -696,8 +696,8 @@ discard block |
||
696 | 696 | */ |
697 | 697 | public function getLatitude() |
698 | 698 | { |
699 | - if( isset( $this->values[$this->prefix . 'latitude'] ) ) { |
|
700 | - return (string) $this->values[$this->prefix . 'latitude']; |
|
699 | + if( isset( $this->values[$this->prefix.'latitude'] ) ) { |
|
700 | + return (string) $this->values[$this->prefix.'latitude']; |
|
701 | 701 | } |
702 | 702 | |
703 | 703 | return null; |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | if( $value == '' ) { $value = null; } |
716 | 716 | if( $value === $this->getLatitude() ) { return $this; } |
717 | 717 | |
718 | - $this->values[$this->prefix . 'latitude'] = $value; |
|
718 | + $this->values[$this->prefix.'latitude'] = $value; |
|
719 | 719 | $this->setModified(); |
720 | 720 | |
721 | 721 | return $this; |
@@ -729,8 +729,8 @@ discard block |
||
729 | 729 | */ |
730 | 730 | public function getFlag() |
731 | 731 | { |
732 | - if( isset( $this->values[$this->prefix . 'flag'] ) ) { |
|
733 | - return (int) $this->values[$this->prefix . 'flag']; |
|
732 | + if( isset( $this->values[$this->prefix.'flag'] ) ) { |
|
733 | + return (int) $this->values[$this->prefix.'flag']; |
|
734 | 734 | } |
735 | 735 | |
736 | 736 | return 0; |
@@ -747,7 +747,7 @@ discard block |
||
747 | 747 | { |
748 | 748 | if( $flag == $this->getFlag() ) { return $this; } |
749 | 749 | |
750 | - $this->values[$this->prefix . 'flag'] = (int) $flag; |
|
750 | + $this->values[$this->prefix.'flag'] = (int) $flag; |
|
751 | 751 | $this->setModified(); |
752 | 752 | |
753 | 753 | return $this; |
@@ -816,27 +816,27 @@ discard block |
||
816 | 816 | { |
817 | 817 | switch( $key ) |
818 | 818 | { |
819 | - case $this->prefix . 'salutation': $this->setSalutation( $value ); break; |
|
820 | - case $this->prefix . 'company': $this->setCompany( $value ); break; |
|
821 | - case $this->prefix . 'vatid': $this->setVatID( $value ); break; |
|
822 | - case $this->prefix . 'title': $this->setTitle( $value ); break; |
|
823 | - case $this->prefix . 'firstname': $this->setFirstname( $value ); break; |
|
824 | - case $this->prefix . 'lastname': $this->setLastname( $value ); break; |
|
825 | - case $this->prefix . 'address1': $this->setAddress1( $value ); break; |
|
826 | - case $this->prefix . 'address2': $this->setAddress2( $value ); break; |
|
827 | - case $this->prefix . 'address3': $this->setAddress3( $value ); break; |
|
828 | - case $this->prefix . 'postal': $this->setPostal( $value ); break; |
|
829 | - case $this->prefix . 'city': $this->setCity( $value ); break; |
|
830 | - case $this->prefix . 'state': $this->setState( $value ); break; |
|
831 | - case $this->prefix . 'countryid': $this->setCountryId( $value ); break; |
|
832 | - case $this->prefix . 'languageid': $this->setLanguageId( $value ); break; |
|
833 | - case $this->prefix . 'telephone': $this->setTelephone( $value ); break; |
|
834 | - case $this->prefix . 'telefax': $this->setTelefax( $value ); break; |
|
835 | - case $this->prefix . 'email': $this->setEmail( $value ); break; |
|
836 | - case $this->prefix . 'website': $this->setWebsite( $value ); break; |
|
837 | - case $this->prefix . 'longitude': $this->setLongitude( $value ); break; |
|
838 | - case $this->prefix . 'latitude': $this->setLatitude( $value ); break; |
|
839 | - case $this->prefix . 'flag': $this->setFlag( $value ); break; |
|
819 | + case $this->prefix.'salutation': $this->setSalutation( $value ); break; |
|
820 | + case $this->prefix.'company': $this->setCompany( $value ); break; |
|
821 | + case $this->prefix.'vatid': $this->setVatID( $value ); break; |
|
822 | + case $this->prefix.'title': $this->setTitle( $value ); break; |
|
823 | + case $this->prefix.'firstname': $this->setFirstname( $value ); break; |
|
824 | + case $this->prefix.'lastname': $this->setLastname( $value ); break; |
|
825 | + case $this->prefix.'address1': $this->setAddress1( $value ); break; |
|
826 | + case $this->prefix.'address2': $this->setAddress2( $value ); break; |
|
827 | + case $this->prefix.'address3': $this->setAddress3( $value ); break; |
|
828 | + case $this->prefix.'postal': $this->setPostal( $value ); break; |
|
829 | + case $this->prefix.'city': $this->setCity( $value ); break; |
|
830 | + case $this->prefix.'state': $this->setState( $value ); break; |
|
831 | + case $this->prefix.'countryid': $this->setCountryId( $value ); break; |
|
832 | + case $this->prefix.'languageid': $this->setLanguageId( $value ); break; |
|
833 | + case $this->prefix.'telephone': $this->setTelephone( $value ); break; |
|
834 | + case $this->prefix.'telefax': $this->setTelefax( $value ); break; |
|
835 | + case $this->prefix.'email': $this->setEmail( $value ); break; |
|
836 | + case $this->prefix.'website': $this->setWebsite( $value ); break; |
|
837 | + case $this->prefix.'longitude': $this->setLongitude( $value ); break; |
|
838 | + case $this->prefix.'latitude': $this->setLatitude( $value ); break; |
|
839 | + case $this->prefix.'flag': $this->setFlag( $value ); break; |
|
840 | 840 | default: $unknown[$key] = $value; |
841 | 841 | } |
842 | 842 | } |
@@ -855,27 +855,27 @@ discard block |
||
855 | 855 | { |
856 | 856 | $list = parent::toArray( $private ); |
857 | 857 | |
858 | - $list[$this->prefix . 'salutation'] = $this->getSalutation(); |
|
859 | - $list[$this->prefix . 'company'] = $this->getCompany(); |
|
860 | - $list[$this->prefix . 'vatid'] = $this->getVatID(); |
|
861 | - $list[$this->prefix . 'title'] = $this->getTitle(); |
|
862 | - $list[$this->prefix . 'firstname'] = $this->getFirstname(); |
|
863 | - $list[$this->prefix . 'lastname'] = $this->getLastname(); |
|
864 | - $list[$this->prefix . 'address1'] = $this->getAddress1(); |
|
865 | - $list[$this->prefix . 'address2'] = $this->getAddress2(); |
|
866 | - $list[$this->prefix . 'address3'] = $this->getAddress3(); |
|
867 | - $list[$this->prefix . 'postal'] = $this->getPostal(); |
|
868 | - $list[$this->prefix . 'city'] = $this->getCity(); |
|
869 | - $list[$this->prefix . 'state'] = $this->getState(); |
|
870 | - $list[$this->prefix . 'countryid'] = $this->getCountryId(); |
|
871 | - $list[$this->prefix . 'languageid'] = $this->getLanguageId(); |
|
872 | - $list[$this->prefix . 'telephone'] = $this->getTelephone(); |
|
873 | - $list[$this->prefix . 'telefax'] = $this->getTelefax(); |
|
874 | - $list[$this->prefix . 'email'] = $this->getEmail(); |
|
875 | - $list[$this->prefix . 'website'] = $this->getWebsite(); |
|
876 | - $list[$this->prefix . 'longitude'] = $this->getLongitude(); |
|
877 | - $list[$this->prefix . 'latitude'] = $this->getLatitude(); |
|
878 | - $list[$this->prefix . 'flag'] = $this->getFlag(); |
|
858 | + $list[$this->prefix.'salutation'] = $this->getSalutation(); |
|
859 | + $list[$this->prefix.'company'] = $this->getCompany(); |
|
860 | + $list[$this->prefix.'vatid'] = $this->getVatID(); |
|
861 | + $list[$this->prefix.'title'] = $this->getTitle(); |
|
862 | + $list[$this->prefix.'firstname'] = $this->getFirstname(); |
|
863 | + $list[$this->prefix.'lastname'] = $this->getLastname(); |
|
864 | + $list[$this->prefix.'address1'] = $this->getAddress1(); |
|
865 | + $list[$this->prefix.'address2'] = $this->getAddress2(); |
|
866 | + $list[$this->prefix.'address3'] = $this->getAddress3(); |
|
867 | + $list[$this->prefix.'postal'] = $this->getPostal(); |
|
868 | + $list[$this->prefix.'city'] = $this->getCity(); |
|
869 | + $list[$this->prefix.'state'] = $this->getState(); |
|
870 | + $list[$this->prefix.'countryid'] = $this->getCountryId(); |
|
871 | + $list[$this->prefix.'languageid'] = $this->getLanguageId(); |
|
872 | + $list[$this->prefix.'telephone'] = $this->getTelephone(); |
|
873 | + $list[$this->prefix.'telefax'] = $this->getTelefax(); |
|
874 | + $list[$this->prefix.'email'] = $this->getEmail(); |
|
875 | + $list[$this->prefix.'website'] = $this->getWebsite(); |
|
876 | + $list[$this->prefix.'longitude'] = $this->getLongitude(); |
|
877 | + $list[$this->prefix.'latitude'] = $this->getLatitude(); |
|
878 | + $list[$this->prefix.'flag'] = $this->getFlag(); |
|
879 | 879 | |
880 | 880 | return $list; |
881 | 881 | } |
@@ -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; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return (string) $this->values['id']; |
51 | 51 | } |
52 | 52 | |
53 | - $key = $this->prefix . 'id'; |
|
53 | + $key = $this->prefix.'id'; |
|
54 | 54 | return ( isset( $this->values[$key] ) && $this->values[$key] != '' ? (string) $this->values[$key] : null ); |
55 | 55 | } |
56 | 56 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function setId( $id ) |
65 | 65 | { |
66 | - $key = $this->prefix . 'id'; |
|
66 | + $key = $this->prefix.'id'; |
|
67 | 67 | |
68 | 68 | if( ( $this->values[$key] = \Aimeos\MShop\Common\Item\Base::checkId( $this->getId(), $id ) ) === null ) { |
69 | 69 | $this->modified = true; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | return (int) $this->values['siteid']; |
88 | 88 | } |
89 | 89 | |
90 | - $key = $this->prefix . 'siteid'; |
|
90 | + $key = $this->prefix.'siteid'; |
|
91 | 91 | return ( isset( $this->values[$key] ) ? (int) $this->values[$key] : null ); |
92 | 92 | } |
93 | 93 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return (string) $this->values['mtime']; |
104 | 104 | } |
105 | 105 | |
106 | - $key = $this->prefix . 'mtime'; |
|
106 | + $key = $this->prefix.'mtime'; |
|
107 | 107 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : null ); |
108 | 108 | } |
109 | 109 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | return (string) $this->values['ctime']; |
120 | 120 | } |
121 | 121 | |
122 | - $key = $this->prefix . 'ctime'; |
|
122 | + $key = $this->prefix.'ctime'; |
|
123 | 123 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : null ); |
124 | 124 | } |
125 | 125 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | return (string) $this->values['editor']; |
136 | 136 | } |
137 | 137 | |
138 | - $key = $this->prefix . 'editor'; |
|
138 | + $key = $this->prefix.'editor'; |
|
139 | 139 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : '' ); |
140 | 140 | } |
141 | 141 | |
@@ -171,16 +171,16 @@ discard block |
||
171 | 171 | */ |
172 | 172 | public function fromArray( array $list ) |
173 | 173 | { |
174 | - if( array_key_exists( $this->prefix . 'id', $list ) ) |
|
174 | + if( array_key_exists( $this->prefix.'id', $list ) ) |
|
175 | 175 | { |
176 | - $this->setId( $list[$this->prefix . 'id'] ); |
|
177 | - unset( $list[$this->prefix . 'id'] ); |
|
176 | + $this->setId( $list[$this->prefix.'id'] ); |
|
177 | + unset( $list[$this->prefix.'id'] ); |
|
178 | 178 | } |
179 | 179 | |
180 | - unset( $list[$this->prefix . 'siteid'] ); |
|
181 | - unset( $list[$this->prefix . 'ctime'] ); |
|
182 | - unset( $list[$this->prefix . 'mtime'] ); |
|
183 | - unset( $list[$this->prefix . 'editor'] ); |
|
180 | + unset( $list[$this->prefix.'siteid'] ); |
|
181 | + unset( $list[$this->prefix.'ctime'] ); |
|
182 | + unset( $list[$this->prefix.'mtime'] ); |
|
183 | + unset( $list[$this->prefix.'editor'] ); |
|
184 | 184 | |
185 | 185 | return $list; |
186 | 186 | } |
@@ -194,14 +194,14 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function toArray( $private = false ) |
196 | 196 | { |
197 | - $list = [$this->prefix . 'id' => $this->getId()]; |
|
197 | + $list = [$this->prefix.'id' => $this->getId()]; |
|
198 | 198 | |
199 | 199 | if( $private === true ) |
200 | 200 | { |
201 | - $list[$this->prefix . 'siteid'] = $this->getSiteId(); |
|
202 | - $list[$this->prefix . 'ctime'] = $this->getTimeCreated(); |
|
203 | - $list[$this->prefix . 'mtime'] = $this->getTimeModified(); |
|
204 | - $list[$this->prefix . 'editor'] = $this->getEditor(); |
|
201 | + $list[$this->prefix.'siteid'] = $this->getSiteId(); |
|
202 | + $list[$this->prefix.'ctime'] = $this->getTimeCreated(); |
|
203 | + $list[$this->prefix.'mtime'] = $this->getTimeModified(); |
|
204 | + $list[$this->prefix.'editor'] = $this->getEditor(); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | return $list; |