Lee PHP wrote:
    public static function getInstance($url = null) {
        // Set the URL if one is provided.
        if (isset($url)) {
            $this->setUrl($url);
        }
// Instantiate the Singleton if not already instantiated.
        if(empty(self::$INSTANCE)) {
            self::$INSTANCE = new Database();
        }

        return self::$INSTANCE;
    }

Also, this is a static method so there is no $this available.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to