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 ? |
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. |
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:
|
All times are GMT -8. The time now is 04:09 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.