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.469 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


15
comments: 3 | views: 26516
11
comments: 4 | views: 17319
10
comments: 1 | views: 6521
10
comments: 6 | views: 12443
8
comments: 2 | views: 4914
 
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: 312
Registered: 107.587
Comments: 1.493
Articles: 7.189
© 2005-2018 EIOBA group.