die("Missing Source directory for json files or prefix for the passwrod! Try -f [JSON file path] -p [prefix] \n");
}
- $uinfo = posix_getpwuid( posix_getuid () );
- $file = $uinfo['dir'] ."/gitlive/Pman.Xtuple.Migrate/base_install_data/{$opt['source']}";
- if (!file_exists($file)) {
- die("can not found person json file : $file\n");
- }
-
- $persons = json_decode(file_get_contents($file),true);
-
- print_r($persons);exit;
+ DB_DataObject::factory('person')->createPerson();
die("DONE!");
}
$this->importSQL();