Login or e-mail Password   

Php patterns: Registry

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 ob...
Views: 5.425 Created 07/30/2006

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.

Similar articles


10
comments: 6 | views: 12331
15
comments: 3 | views: 26282
2
comments: 1 | views: 5729
7
comments: 0 | views: 7631
 
Author
Article
Additional information
Groups




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 .
 


About EIOBA
Articles
Explore
Publish
Community
Statistics
Users online: 192
Registered: 107.587
Comments: 1.493
Articles: 7.175
© 2005-2018 EIOBA group.