DB_DataObject::factory('companies')->initCompanies($this, $opts);
}
+ $this->fixLinks();
+
}
function output() {
// loop through all the modules, and see if they have a importSQL method?
- print_r('run');exit;
+
$ff = HTML_Flexyframework::get();
$dburl = parse_url($ff->DB_DataObject['database']);
}
+ function fixLinks()
+ {
+
+ $ff = HTML_Flexyframework::get();
+
+ $dburl = parse_url($ff->DB_DataObject['database']);
+
+ $dbtype = $dburl['scheme'];
+
+ $scls = ucfirst($dbtype). 'Links';
+ $cls = 'Pman_Core_UpdateDatabase_'. $scls;
+ $fn = implode('/',explode('_', $cls)).'.php';
+ if (!file_exists(__DIR__.'/UpdateDatabase/'. $scls .'.php')) {
+ return;
+ }
+ require_once $fn;
+ $c = new $cls();
+
+
+
+ }
}
\ No newline at end of file