|
Posted by Michael Fesser on 12/01/06 15:34
..oO(d.adamkiewicz@i7.com.pl)
>Anybody can show me real world singleton class example?
>Something that works (is implemented) as part of working solution.
>Does it make sense to create database handler class that way?
In my scripts I use a global application object, which is implemented as
a singleton. This application object uses a lot of child objects, for
example the db handler, configuration (registry), authentication, error
handling/logging, sitemap and all that stuff.
Micha
Navigation:
[Reply to this message]
|