Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.

Similar presentations


Presentation on theme: " Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry."— Presentation transcript:

1

2  Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry are: DB Handler Template Management Email Sending User Authentication Registry Files Management

3  Database handler needs to have following functionality:  Connection to Database  Managing multiple database connections  Performing queries  Return common query information  Caching queries  Making common queries easier

4  Database Handler may have following extra functions:  Inheritance ▪ Base functions of any database  Abstracting the logic to queries ▪ Pass query information only and hide other detail  Debugging Information ▪ Debug and optimize slow queries

5  User Authentication object needs the following functions  Process Login Request  Check to see if the user logged in  Logout user  Maintain information about logged in user

6  Email object required the following functions:  Email Parsing  Security Management  Files system Management  Email Parsing  Running an online helpdesk ▪ Replies to customers queries, assign categories and departments to queries  Running online basic email services to customers

7  Security Management  Manage a ban list  Validation of certain data of email  Files Management  Create files and folders on server  Manage permissions of files  Process upload files  Delete files  Display files and directory

8  Password protected pages  Restrict access to page based permissions  Easy way to add CSS and Javascript files to pages  Loading ‘onLoad’ function on page tag

9  Core task of framework are managed in registry with its single instance  Core functions are required almost on each pages  Framework must know  what code should run and when to run?  Framework decides using two ways:  URL  User behavior or input

10  If true  Return the page  If false/else  Match first part of the URL in DB  Call appropriate controller www.olx.com/Products/vie w/someprod Controller Databas e User Input View/Browser Found? truefalse

11  Qurick and easy method  Inflexible method  we may have different request formats to be sent to different models

12  We create a router responsible for  Matching the pattern of the URL  Routes the request in specified format

13

14  Where is the E-Commerce in framework we have studied?  E-Commerce functionality will fit into it by ▪ Adding models and controller of each function ▪ Like category management, products, checkout etc.

15  Each object can be a part of registry  Example: A basket containing different products in it  Easy way for users to view pages with shopping basket with items containing in it.  Not good for practice  During execution process, we will use call back to call a function  Where and when a callback is called and what callback did.


Download ppt " Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry."

Similar presentations


Ads by Google