added table names as const
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
d769a5cc0b
commit
bc50b00127
|
@ -12,6 +12,12 @@ class DatabaseConnection
|
|||
{
|
||||
private PDO $dbConnection;
|
||||
|
||||
const TABLE_PREFIX = "";
|
||||
const TABLE_DOMAINS = self::TABLE_PREFIX . "domains";
|
||||
const TABLE_NAMESERVERS = self::TABLE_PREFIX . "nameservers";
|
||||
const TABLE_PANELS = self::TABLE_PREFIX . "panels";
|
||||
const TABLE_USER = self::TABLE_PREFIX . "user";
|
||||
|
||||
public function __construct(private array $config)
|
||||
{
|
||||
extract($this->config);
|
||||
|
|
Loading…
Reference in New Issue