| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Decorator logic | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Decorator logic
I have been reading about the Decorator logic in the old LiteCommerce software, in this page where there is the following text:
Quote:
Does the same logic exist for X-Cart 5 as well, or has it changed ?
__________________
Vasilis Vrod. X-Cart Development, Maintenance & Customization www.craftforweb.com vasilis@craftforweb.com |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Decorator logic
Forget about this LiteCommerce code there. This is what XC started at first and based all XC5 on it. That's why XC5 code is full with 'LC' references.
However in general yes this also applies to XC5. I'd suggest to start here - https://en.wikipedia.org/wiki/Decorator_pattern - and similar articles. Also examine the code under classes and same under var/run/classes to see how it is done.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Decorator logic
Steve, I have actually read quiet a few stuff about PHP patterns and especially Decorator, Singleton, Factory patterns from a couple of books and various articles. (To anyone seeking to delve into PHP patterns, I would highly recommend the 'PHP Objects, Patterns, and Practice', Apress 3rd Edition by Matt Zandstra and the 'Learning_PHP_Design_Patterns' by William Sanders, O'Reilly editions). Also the specific wikipedia article that you suggested, has a nice schematic on the decorator pattern and a comprehensive definition.
Quote:
Quote:
__________________
Vasilis Vrod. X-Cart Development, Maintenance & Customization www.craftforweb.com vasilis@craftforweb.com |
|||||||||
|
|||
X-Cart forums © 2001-2020
|