Magento: Design Patterns

Keyul Shah

The list of design pattern Which Magento used.

  • Model/View/Controller

Magento follow Model/View/Controller design pattern.

  • Singleton

Ensure that only one instance of a class is created and Provide a global access point to the object.

  • Factory

Creates objects without exposing the instantiation logic to the clientand Refers to the newly created object through a common interface.

  • Registry

It will provide you one way to store your information throughout your application.

  • Prototype

Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.

  • Event/Observer

Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

  • Object Pool

Reuses and shares objects that are expensive to create.

  • Iterator

Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.

  • Vew Helper

It will react as a to access the helper classes.

  • Null…

View original post 48 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s