Update the tools to use the new namespaces
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("domframework/getopts.php");
|
||||
require_once ("domframework/dblayeroo.php");
|
||||
require_once (__DIR__."/../src/Getopts.php");
|
||||
require_once (__DIR__."/../src/Dblayeroo.php");
|
||||
|
||||
/** Generate the model files from an existing database
|
||||
* Provide the DSN to connect to the database, and the program will generate
|
||||
@@ -33,7 +33,7 @@ class modelGenerator
|
||||
*/
|
||||
public function __construct ()
|
||||
{
|
||||
$getopts = new \getopts ();
|
||||
$getopts = new Domframework\Getopts ();
|
||||
$getopts->add ("Help", "?h", "help", "Help of the software");
|
||||
$getopts->add ("DSN", "", "dsn:", "DSN - Data Source Name\n".
|
||||
" Exemple : --dsn \"mysql:dbname=DBNAME\"",
|
||||
@@ -70,7 +70,7 @@ class modelGenerator
|
||||
$this->namespaceName = $getopts->get ("Namespace");
|
||||
try
|
||||
{
|
||||
$this->db = new \dblayeroo ($dsn,
|
||||
$this->db = new Domframework\Dblayeroo ($dsn,
|
||||
$getopts->get ("Username"),
|
||||
$getopts->get ("Password"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user