static function import($name = NULL, $set_owner = NULL) { if (!$name) { $name = data_db_name(); } $export_filename = static::$config_prefix . $name; return parent::import($export_filename, $set_owner); }
function __construct($init = []) { $this->_tables = []; if (is_array($init)) { parent::__construct($init); } else { $this->name = $init; } if (!$this->name) { $this->name = data_db_name(); } static::$list[$this->name] = $this; }
static function db_config_name() { return Database::config_name(Database::by_name(data_db_name())); }