DB_DataObject::factory('companies')->initCompanies($this, $opts);
}
- $this->fixLinks();
+
+ $this->runExtensions();
}
}
- function fixLinks()
+ var $extensions = array(
+ 'EngineCharset',
+ 'Links',
+ );
+
+ function runExtensions()
{
$ff = HTML_Flexyframework::get();
$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;
+ foreach($this->extensions as $ext) {
+
+ $scls = ucfirst($dbtype). $ext;
+ $cls = 'Pman_Core_UpdateDatabase_'. $scls;
+ $fn = implode('/',explode('_', $cls)).'.php';
+ if (!file_exists(__DIR__.'/UpdateDatabase/'. $scls .'.php')) {
+ return;
+ }
+ require_once $fn;
+ $c = new $cls();
+
}
- require_once $fn;
- $c = new $cls();
-
-
}
}
\ No newline at end of file