ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDBWrapperFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
33{
39 public static function getWrapper(string $a_type): \ilDBPdoInterface
40 {
41 $ilDB = match ($a_type) {
42 'pdo-mysql-innodb', ilDBConstants::TYPE_INNODB => new ilDBPdoMySQLInnoDB(),
44 default => throw new ilDatabaseException("No viable database-type given: " . var_export($a_type, true)),
45 };
46
47 return $ilDB;
48 }
49}
Class ilDBPdoMySQLInnoDB.
Class ilDBPdoMySQLInnoDB.
Class ilDBWrapperFactory.
static getWrapper(string $a_type)
Class ilDatabaseException.
Interface ilDBPdoInterface.