Thread: Decorator logic
View Single Post
  #3  
Old 11-13-2019, 10:49 PM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default 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:
However in general yes this also applies to XC5.
so this logic applies to XC5 in general. Actually, I reckon that these LiteCommerce developer articles in GitHub are good articles for someone to start delving into the programming logic of XC5 and then go on to the developers's - unfortunately fragmentary - knowledgebase articles, in x-cart's site. These articles are characterized by more or less recipe-type of presentation, rather than presenting the full logic in a structured way, in contrast to the developer's knowledgebase presentation of other popular eCommerce platforms.

Quote:
Also examine the code under classes and same under var/run/classes to see how it is done.
One thing I noticed is that the cached code has various view classes for example of it's modules renamed, with the suffix 'Abstract' added to their name, as described in the LiteCommerce dev. articles. I will search for any other differences between the two codes, if this is what you mean.
Reply With Quote