Hi,
Lars Kneschke schrieb:
“jaytraxx” christian@jaytraxx.de schrieb:
Hi all,
I wonder what’s the best way to get an instance of the html class. The
class provides a method “singleton” with the example:
$my_html =& html::singleton();
Two questions on that:
- does this get autoloaded?
I don’t know.
Sure it does, the singleton in the html class, is simply a static
method, which check’s if the html class is instanciated in it’s usual
place ($GLOBALS[‘egw’]->html), instanciates it there if not, and returns
it’s reference.
- should I omit the reference operator in php5?
I think so. That’s not needed for PHP5 anymore.
Nope, by the time I put it there, we still had php4 compatibility. In
php5 it serves no purpose.
Ralf
Ralf Becker
eGroupWare Training & Support ==> http://www.egroupware-support.de
Outdoor Unlimited Training GmbH [www.outdoor-training.de]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 (0)631 31657-0
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers