public static function type($key=null,$die=false,$type=null) {
global $DB_TYPES;
if (!$type) $type = self::$type;
+ if ($key == 'type') return $type;
# Load php file
static $require = array();
#return false;
# Test if type exists because of a bug from shell.php
-# NB 30.08.16 if ($this->db()->type) $this->fields();
- #$db = $this->db();
- #if ($db::$type) $this->fields();
+# NB 30.08.16 if ($this->db()->type('type')) $this->fields();
foreach ($extras as $k => $v) {
public function rows_begin_xml() {
return ''
.'<?xml version="1.0" encoding="utf-8"?>'.NB_EOL #<?
- #.'<database name="'.$this->db()->name.'" table="'.$this->name.'" type="'.$this->db()->type.'">'.NB_EOL
- .'<rows name="'.$this->name.'" database="'.$this->db()->name.'" database-type="'.$this->db()->type.'">'.NB_EOL
+ .'<rows name="'.$this->name.'" database="'.$this->db()->name.'" database-type="'.$this->db()->type('type').'">'.NB_EOL
;
}