Return to Snippet

Revision: 11258
at January 29, 2009 07:56 by iroybot


Initial Code
public static function getInstance() {
		if(!is_a($_SESSION["MTVUsers"], "MTVUsers") || HTTPCache::shouldBeNoCache()) $_SESSION["MTVUsers"] = new MTVUsers($_SERVER['DOCUMENT_ROOT']."/capital_invest_de/Login/Users/Users.csv", "Username", "Password");
		return $_SESSION["MTVUsers"];
	}

Initial URL

                                

Initial Description

                                

Initial Title
Singleton Pattern

Initial Tags

                                

Initial Language
PHP