Fix: Var can't be static
This commit is contained in:
parent
9200847eaa
commit
2a19e9d2a1
@ -38,9 +38,9 @@ class DoliDBMssql
|
|||||||
//! Database label
|
//! Database label
|
||||||
static $label='MSSQL';
|
static $label='MSSQL';
|
||||||
//! Charset used to force charset when creating database
|
//! Charset used to force charset when creating database
|
||||||
static $forcecharset='latin1';
|
var $forcecharset='latin1'; // Can't be static as it may be forced with a dynamic value
|
||||||
//! Collate used to force collate when creating database
|
//! Collate used to force collate when creating database
|
||||||
static $forcecollate='latin1_swedish_ci';
|
var $forcecollate='latin1_swedish_ci'; // Can't be static as it may be forced with a dynamic value
|
||||||
//! Version min database
|
//! Version min database
|
||||||
static $versionmin=array(2000);
|
static $versionmin=array(2000);
|
||||||
//! Resultset of last request
|
//! Resultset of last request
|
||||||
|
|||||||
@ -38,9 +38,9 @@ class DoliDBMysql
|
|||||||
//! Database label
|
//! Database label
|
||||||
static $label='MySQL';
|
static $label='MySQL';
|
||||||
//! Charset used to force charset when creating database
|
//! Charset used to force charset when creating database
|
||||||
static $forcecharset='utf8'; // latin1, utf8
|
var $forcecharset='utf8'; // latin1, utf8. Can't be static as it may be forced with a dynamic value
|
||||||
//! Collate used to force collate when creating database
|
//! Collate used to force collate when creating database
|
||||||
static $forcecollate='utf8_general_ci'; // latin1_swedish_ci, utf8_general_ci
|
var $forcecollate='utf8_general_ci'; // latin1_swedish_ci, utf8_general_ci. Can't be static as it may be forced with a dynamic value
|
||||||
//! Version min database
|
//! Version min database
|
||||||
static $versionmin=array(4,1,0);
|
static $versionmin=array(4,1,0);
|
||||||
//! Resultset of last request
|
//! Resultset of last request
|
||||||
|
|||||||
@ -38,9 +38,9 @@ class DoliDBMysqli
|
|||||||
//! Database label
|
//! Database label
|
||||||
static $label='MySQL';
|
static $label='MySQL';
|
||||||
//! Charset used to force charset when creating database
|
//! Charset used to force charset when creating database
|
||||||
static $forcecharset='utf8'; // latin1, utf8
|
var $forcecharset='utf8'; // latin1, utf8. Can't be static as it may be forced with a dynamic value
|
||||||
//! Collate used to force collate when creating database
|
//! Collate used to force collate when creating database
|
||||||
static $forcecollate='utf8_general_ci'; // latin1_swedish_ci, utf8_general_ci
|
var $forcecollate='utf8_general_ci'; // latin1_swedish_ci, utf8_general_ci. Can't be static as it may be forced with a dynamic value
|
||||||
//! Version min database
|
//! Version min database
|
||||||
static $versionmin=array(4,1,0);
|
static $versionmin=array(4,1,0);
|
||||||
//! Resultset of last request
|
//! Resultset of last request
|
||||||
@ -83,7 +83,7 @@ class DoliDBMysqli
|
|||||||
function DoliDBMysqli($type, $host, $user, $pass, $name='', $port=0)
|
function DoliDBMysqli($type, $host, $user, $pass, $name='', $port=0)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
// TODO error in strict mode (static property for "$forcecharset" and "$forcecollate")
|
// TODO error in strict mode (static property for "$forcecharset" and "$forcecollate")
|
||||||
//if (! empty($conf->db->character_set)) $this->forcecharset=$conf->db->character_set;
|
//if (! empty($conf->db->character_set)) $this->forcecharset=$conf->db->character_set;
|
||||||
//if (! empty($conf->db->dolibarr_main_db_collation)) $this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
//if (! empty($conf->db->dolibarr_main_db_collation)) $this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||||
|
|||||||
@ -40,7 +40,7 @@ class DoliDBPgsql
|
|||||||
//! Database label
|
//! Database label
|
||||||
static $label='PostgreSQL'; // Label of manager
|
static $label='PostgreSQL'; // Label of manager
|
||||||
//! Charset
|
//! Charset
|
||||||
static $forcecharset='latin1';
|
var $forcecharset='latin1'; // Can't be static as it may be forced with a dynamic value
|
||||||
//! Version min database
|
//! Version min database
|
||||||
static $versionmin=array(8,4,0); // Version min database
|
static $versionmin=array(8,4,0); // Version min database
|
||||||
|
|
||||||
@ -81,8 +81,9 @@ class DoliDBPgsql
|
|||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
$this->forcecharset=$conf->file->character_set_client;
|
if (! empty($conf->db->character_set)) $this->forcecharset=$conf->db->character_set;
|
||||||
$this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
if (! empty($conf->db->dolibarr_main_db_collation)) $this->forcecollate=$conf->db->dolibarr_main_db_collation;
|
||||||
|
|
||||||
$this->database_user=$user;
|
$this->database_user=$user;
|
||||||
|
|
||||||
$this->transaction_opened=0;
|
$this->transaction_opened=0;
|
||||||
|
|||||||
@ -38,9 +38,9 @@ class DoliDBSqlite
|
|||||||
//! Database label
|
//! Database label
|
||||||
static $label='PDO Sqlite';
|
static $label='PDO Sqlite';
|
||||||
//! Charset used to force charset when creating database
|
//! Charset used to force charset when creating database
|
||||||
static $forcecharset='utf8'; // latin1, utf8
|
var $forcecharset='utf8'; // latin1, utf8. Can't be static as it may be forced with a dynamic value
|
||||||
//! Collate used to force collate when creating database
|
//! Collate used to force collate when creating database
|
||||||
static $forcecollate='utf8_general_ci'; // latin1_swedish_ci, utf8_general_ci
|
var $forcecollate='utf8_general_ci'; // latin1_swedish_ci, utf8_general_ci. Can't be static as it may be forced with a dynamic value
|
||||||
//! Version min database
|
//! Version min database
|
||||||
static $versionmin=array(3,0,0);
|
static $versionmin=array(3,0,0);
|
||||||
//! Resultset of last request
|
//! Resultset of last request
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user