protected function getTableDatabase($table)
    {
        if (!array_key_exists($table, $this->tables)) {
            return false;
        }

        $database = $this->tables[$table];

        # If this table's database depends on the mode
        if (is_array($database)) {
            if (array_key_exists($this->mode, $database)) {
                $database = $database[$this->mode];
            } else {
                $database = $database["default"];
            }
        }

        return $database;
    }
protected function getTableDatabase($table)
    {
        if (!array_key_exists($table, $this->tables)) {
            return false;
        }

        $database = $this->tables[$table];

        # If this table's database depends on the mode
        if (is_array($database)) {
            if (array_key_exists($this->mode, $database)) {
                $database = $database[$this->mode];
            } else {
                $database = $database["default"];
            }
        }

        return $database;
    }
protected function getTableDatabase ( $ table ) { if ( ! array_key_exists ( $ table , $ this -> tables ) ) { return false ; } $ database = $ this -> tables [ $ table ] ; # If this table's database depends on the mode if ( is_array ( $ database ) ) { if ( array_key_exists ( $ this -> mode , $ database ) ) { $ database = $ database [ $ this -> mode ] ; } else { $ database = $ database [ "default" ] ; } } return $ database ; }
Get the database that should be used for this table
Get the database that should be used for this table