ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilDBInnoDB.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once ("./Services/Database/classes/class.ilDBMySQL.php");
6
18class ilDBInnoDB extends ilDBMySQL
19{
20
24 function getDBType()
25 {
26 return "innodb";
27 }
28
32 function initConnection()
33 {
34 // SET 'max_allowed_packet' (only possible for mysql version 4)
35 $this->setMaxAllowedPacket();
36
37 // NOTE: Two sourcecodes use this or a similar handling:
38 // - classes/class.ilDB.php
39 // - setup/classes/class.ilClient.php
40
41 $this->query("SET NAMES utf8");
42 if (DEVMODE == 1)
43 {
44 $this->query("SET SESSION SQL_MODE = 'ONLY_FULL_GROUP_BY'");
45 }
46 $this->setStorageEngine('INNODB');
47 }
48
53 {
54 return false;
55 }
56
57 protected function getCreateTableOptions()
58 {
59 // InnoDB is default engine for MySQL >= 5.5
60 return array('type' => 'InnoDB');
61 }
62
63}
64?>
MySQL InnoDB Database Wrapper.
initConnection()
Initialize the database connection.
supportsFulltext()
Is fulltext index supported?
getDBType()
Get DB Type.
getCreateTableOptions()
Get options for the create table statement.
MySQL Database Wrapper.
query($sql, $a_handle_error=true)
Query.
setStorageEngine($a_storage_engine)
Set the storage engine.
setMaxAllowedPacket()
Set maximum allowed packet size.