Reputation: 1511
I have to understand a script to make some additions and I have some short questions.
There are these few lines:
if(!isset($GLOBALS['DB'])){
$DB = new System\Database\MySQL(DB_SERVER,DB_USER,DB_PASSWORD,DB_NAME,DB_PORT);
}
new System\SessionHandler();
I don't understand which path System\Database\MySQL and System\ defines, because there are no folders with these names.
Upvotes: 0
Views: 109
Reputation: 87
System\Database\MySQL
may not neccessary match the path actually. This is just namespace. It depends on autoloader implementation. But in your case it can absent and you should look for manual include/require somewhere else up in the code.
Upvotes: 0
Reputation: 2910
As John and Elon are saying they are namescpaces. This is creating a new object MySQL with the parameters: Server, User, Password, Database and Port.
Upvotes: 1