This ar­ti­cle show­cases the MVC (Model View Con­troller) ar­chi­tec­ture by ap­ply­ing it to Moo­dle, a pop­u­lar learn­ing man­age­ment sys­tem used by many in­sti­tu­tions across the world to solve a prac­ti­cal prob­lem.

OpenSource For You - - DEVELOPERS -

Ade­sign pat­tern is a tem­plate used for writ­ing flex­i­ble and ef­fi­cient code. You can think of it as a pro­gram­ming model for im­ple­ment­ing so­lu­tions to prob­lems, ir­re­spec­tive of their com­plex­ity. There are sev­eral de­sign pat­terns such as Sin­gle­ton, Pro­to­type, Adapter, Proxy, Com­mand, etc. The one that’s the fo­cus of this ar­ti­cle is MVC (Model View Con­troller).

MVC di­vides the de­sign into three parts – the data (model), the user in­ter­face (view) and the logic (con­troller), com­monly re­ferred to as ‘busi­ness logic’. The user has ac­cess to only one com­po­nent out of the three, i.e., the view. The in­put that the user gives to the view is han­dled by the con­troller. The con­troller acts as the mid­dle­man be­tween the view and the model. It pro­cesses the in­put, and in this process, it may ei­ther use the data stored in the model or store data in the model. Thus, each com­po­nent is de­pen­dent on both the other com­po­nents di­rectly or in­di­rectly.

In this ar­ti­cle, we are go­ing to look at the im­ple­men­ta­tion of MVC de­sign us­ing Moo­dle, a pop­u­lar learn­ing man­age­ment sys­tem. The ar­ti­cle demon­strates how MVC can be used to cre­ate a plug-in for Moo­dle (Mod­u­lar Ob­ject Ori­ented Dy­namic Learn­ing En­vi­ron­ment), an open source learn­ing man­age­ment sys­tem used widely across many ed­u­ca­tional in­sti­tu­tions and var­i­ous other do­mains to en­cour­age the learn­ing

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.