ILIAS  release_8 Revision v8.24
class.ilDBWrapperFactory.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
33{
39 public static function getWrapper(string $a_type): \ilDBPdoInterface
40 {
41 switch ($a_type) {
42 case 'pdo-mysql-innodb':
45 break;
48 break;
49 default:
50 throw new ilDatabaseException("No viable database-type given: " . var_export($a_type, true));
51 }
52
53 return $ilDB;
54 }
55}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getWrapper(string $a_type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilDBPdoInterface.