design pattern

  • Posts: 846
  • Thank you received: 92
9 years 6 months ago #202206

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 2.5.8
-- PHP version -- : 5.5.8

Hi i begin to learn php and because i find hks forum more supportive than joomla ....the best is study hks code rather than joomla. I read from developper that understand /detect design pattern ( gang of four) in php code help undertstand php code structure-interraction ; Does hikashop use some in they code ? Does uml diagram exist for joomla and hikashop ... Does it make sense to have documention about design pattern ?

  • plugin architecture follows the Observer / publisher/subscriber design pattern uc .
  • component architecture follows the MVC design pattern using JController, JModel and JView .
  • module architecture follows the ? design pattern.
  • JDatabase follow the Strategy Pattern ( before singleton )
  • JFactory follows the Registry Pattern & Abstract Factory Pattern
  • Template override follows the View/layout pattern
  • template

www.safaribooksonline.com/library/view/p...0470133941/ch08.html

joomla.stackexchange.com/questions/7459/...terns-used-in-joomla

docs.google.com/document/d/1MsFW9GLbRv0j...lEaETQqE/edit?pli=1#

regard's

Last edit: 9 years 6 months ago by lionel75.

Please Log in or Create an account to join the conversation.

  • Posts: 82865
  • Thank you received: 13372
  • MODERATOR
9 years 6 months ago #202207

Hi,

HikaShop uses the MVC model, as Joomla does :
docs.joomla.org/Model-View-Controller

We don't have any UML diagram. If you want to generate UML diagrams out of PHP code here are a few links:
www.bouml.fr/
www.sparxsystems.com.au/products/ea/index.html

The following user(s) said Thank You: lionel75

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum