Introduce method for future

This commit is contained in:
Laurent Destailleur 2022-01-20 18:50:18 +01:00
parent db903ad64d
commit 8c3b28b0d0

View File

@ -70,6 +70,18 @@ abstract class DoliDB implements Database
/** @var string */
public $error;
/**
* Return the DB prefix
*
* @return string The DB prefix
*/
public function prefix()
{
return (empty($this->prefix_db) ? MAIN_DB_PREFIX : $this->prefix_db);
}
/**
* Format a SQL IF
*