}
- function get($k = '',$opts)
+ function get($k = '',$opts=array())
{
$k = strtolower($k);
HTML_FlexyFramework::get()->generateDataobjectsCache(true);
$this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$dbtype}.initdata");
- $this->{'fixSequences'. $dbtype}();
+ // fixSequences does nto appar to work on postgres anymore
+ //$this->{'fixSequences'. $dbtype}();
}
// 'location', //?? just check hat one exists.
) : array($k);
-
- $core_opts = HTML_FlexyFramework::get()->page->opts;
- if (!empty($core_opts['init'])) {
+ $core_opts = HTML_FlexyFramework::get()->page->opts;
+
+ if (!empty($core_opts['base'])) {
+ DB_DataObject::DebugLevel(1);
+ DB_DataObject::factory('curr_symbol')->importFromArray($this, array($core_opts['base']));
DB_DataObject::factory('curr_symbol')->setBase($this, $core_opts['base']);
}
$this->updateMetricValue();
- $this->addAccounts();
- $this->addBankAccounts();
-
+ $this->addAccounts();
+
}
-
-
-
-
-
-
-
-
-
-
-
- /*
-
- function updateData($k='')
- {
-
-
- }
- */
return;
}
+ // this might want to be configurable -- so that we could use different 'base files' for the accounts..
require_once 'File/Convert.php';
$cp = $this->tempName('xls');
copy(dirname(__FILE__).'/Setup/accounts_sample.xls', $cp);