Hallo,
hier die Zeilen davor und danach:
<?php
class singleton
{
/*
Wie funktioniert das Verbinden mit einer Klasse? Ganz einfach:
$x = Singleton::connect( "Klassenname" ) ;
*/
private static $instanceMap = array();
// protected Konstruktor um die Instanzierung von außen zu verhindern
protected function __construct()
{
}
?>
grüße,
tobias h.