Nur zur Info....das Script, an dem ich gerade Arbeite, wird in ca 6-7 Monate fertig sein ....und beinhaltet dann nur PHP5-Klassen

PHP-Code:
    public static function getInstance()
    {
        if (
self::$instance == null)
        {
            
self::$instance = new admin($aname false);
        }
        return 
self::$instance;
    }

    protected function 
__construct($aname false)
    {
        if (
$aname !== false)
        {
            
$this->aname pAddslashes($aname);
        }
        
$this->sql1 false;
        
$this->data_db = array();
    }

    private function 
__clone()
    {
        die(
'Please use the instance');
    }