[Typo3-dev] singletons instead of pre-loaded objects
Peter Niederlag
niederlag at ikd01.de
Fri Aug 13 11:46:46 CEST 2004
Hi,
Martin T. Kutschker schrieb am 9.08.2004 um 19:04 Uhr CEST
> Robert Lemke wrote:
> > On Mon, 2004-08-09 at 20:47, Martin T. Kutschker wrote:
> >
> >>Why? You need some place to store the object references. As options
> >I >see either a global array, a master object known to be loaded or
> >factory >objects for every singleton (the object has a method with a
> >static var >as storage).
> >
> > Because the recommended way for implementing the Singleton pattern
> > is not to store instantiation information in a global variable but
> > use a static variable within the class itself (at least that's what
> > I remember from the GOF book).
>
> Have this seen in implementations (XOOPS).
BTW. afair XOOPS claimed to be an OO-rewrite of phpnuke. So one could go
and have a look:
* how much work it has been
* how the project is doing
* ask about gains of the redesign
In case somebody real badly wants to devote some time into this issue.
;)
Cheers,
PeterN
--
Peter Niederlag
*** Typo3 und IT-Dienstleistungen ***
http://www.niekom.de
http://typo3.naw.de
More information about the TYPO3-dev
mailing list