From e4e78bdd3e2f2ee02371efd4455b8877085bc48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Sat, 15 Mar 2014 06:45:17 +0100 Subject: [PATCH] Database: factorized getLabel() --- htdocs/core/db/DoliDB.class.php | 10 ++++++++++ htdocs/core/db/mssql.class.php | 10 ---------- htdocs/core/db/mysql.class.php | 10 ---------- htdocs/core/db/mysqli.class.php | 10 ---------- htdocs/core/db/pgsql.class.php | 10 ---------- htdocs/core/db/sqlite.class.php | 9 --------- 6 files changed, 10 insertions(+), 49 deletions(-) diff --git a/htdocs/core/db/DoliDB.class.php b/htdocs/core/db/DoliDB.class.php index 5fae6dab374..3413e381547 100644 --- a/htdocs/core/db/DoliDB.class.php +++ b/htdocs/core/db/DoliDB.class.php @@ -135,6 +135,16 @@ abstract class DoliDB implements Database return explode('.',$this->getVersion()); } + /** + * Return label of manager + * + * @return string Label + */ + function getLabel() + { + return $this->label; + } + /** * Define sort criteria of request * diff --git a/htdocs/core/db/mssql.class.php b/htdocs/core/db/mssql.class.php index 7459b4c0019..f96423b1a66 100644 --- a/htdocs/core/db/mssql.class.php +++ b/htdocs/core/db/mssql.class.php @@ -173,16 +173,6 @@ class DoliDBMssql extends DoliDB return $this->db; } - /** - * Return label of manager - * - * @return string Label - */ - function getLabel() - { - return $this->label; - } - /** * Return version of database server * diff --git a/htdocs/core/db/mysql.class.php b/htdocs/core/db/mysql.class.php index 2bf0474157f..4f06fb772b8 100644 --- a/htdocs/core/db/mysql.class.php +++ b/htdocs/core/db/mysql.class.php @@ -201,16 +201,6 @@ class DoliDBMysql extends DoliDB return $this->db; } - /** - * Return label of manager - * - * @return string Label - */ - function getLabel() - { - return $this->label; - } - /** * Return version of database server * diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index bf9808a39e2..33cea437afe 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -205,16 +205,6 @@ class DoliDBMysqli extends DoliDB return $this->db; } - /** - * Return label of manager - * - * @return string Label - */ - function getLabel() - { - return $this->label; - } - /** * Return version of database server * diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index a284756caed..bb14ebade32 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -402,16 +402,6 @@ class DoliDBPgsql extends DoliDB return $this->db; } - /** - * Return label of manager - * - * @return string Label - */ - function getLabel() - { - return $this->label; - } - /** * Return version of database server * diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php index a631fad8220..f4cf57bb9be 100644 --- a/htdocs/core/db/sqlite.class.php +++ b/htdocs/core/db/sqlite.class.php @@ -323,15 +323,6 @@ class DoliDBSqlite extends DoliDB return $this->db; } - /** - * Return label of manager - * - * @return string Label - */ - function getLabel() - { - return $this->label; - } /** * Return version of database server