ILIAS  release_8 Revision v8.24
ilDBWrapperFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilDBWrapperFactory:

Static Public Member Functions

static getWrapper (string $a_type)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilDBWrapperFactory

DB Wrapper Factory. Delivers a DB wrapper object depending on given DB type and DSN.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 32 of file class.ilDBWrapperFactory.php.

Member Function Documentation

◆ getWrapper()

static ilDBWrapperFactory::getWrapper ( string  $a_type)
static
Parameters
string$a_type
Returns
ilDBPdoInterface
Exceptions
ilDatabaseException

Definition at line 39 of file class.ilDBWrapperFactory.php.

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 }
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...
Interface ilDBPdoInterface.

References $ilDB, ilDBConstants\TYPE_GALERA, and ilDBConstants\TYPE_INNODB.

Referenced by ilDatabaseCreatedObjective\achieve(), ilDatabaseExistsObjective\achieve(), ilDatabaseInitializedObjective\achieve(), ilDatabaseServerIsConnectableObjective\achieve(), ilSoapInstallationInfoXMLWriter\buildClient(), ilInitialisation\initDatabase(), and ilDatabaseCreatedObjective\isApplicable().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: