);
+ var $cli_options = false;
+
var $cli = false;
function getAuth() {
function get($args, $opt)
{
+
+ $this->cli_options = $opt;
+
if($args == 'Person'){
if(empty($opt['source']) || empty($opt['prefix'])){
die("Missing Source directory for person json files or prefix for the passwrod! Try -f [JSON file path] -p [prefix] \n");
die("DONE! \n");
}
+
+
if($args == 'Company'){
if(empty($opt['name']) || empty($opt['comptype'])){
die("Missing company name or type! Try --name=[the name of company] -- comptype=[the type of company] \n");
foreach($ar as $m) {
+ // if init has been called
+ // look in pgsql.ini
+ if (!empty($this->cli_options['init'])) {
+ $this->importpgsqldir($dburl, $this->rootDir. "/Pman/$m/pgsql.init");
+ $this->importpgsqldir($dburl, $this->rootDir. "/Pman/$m/pgsql.initdata", );
+
+
+ }
+
+
+
$fd = $this->rootDir. "/Pman/$m/DataObjects";
$this->importpgsqldir($dburl, $fd);