Login or e-mail Password   

Php patterns: Registry

Rate:
0

ratings: 0   
Views: 924

The Registry is one of those Patterns where once you understand it, it seems so incredibly useful. Think of it as a basket; using a Registry you can add data (both values and objects) to the basket, and retrieve them as required from other parts of an application. Since all such data is handled by a single Registry object, it makes passing data and objects around an application far more simple than passing all such values as individual parameters to a constructor or setup method. In a similar fashion, a Registry can replace the need to have every object you need global access to acting as a Singleton.



Read other articles from category: Technology





No messages


Add your opinion
You must be logged in to write a comment. If you're not a registered member, please register. It takes only few seconds, and you get an access to additional functions .
Rate article:
 
Author
Article
Additional information
Groups


Sites linking to aritcle




About EIOBA
Articles
Explore
Publish
Community
Statistics
Users online: 280
Comments: 564
Articles: 65.259
EIOBA World

© 2005-8 EIOBA group. All rights reserved