ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
5 include_once ("./Services/Database/classes/class.ilDBMySQL.php");
6 
18 class 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 
47  $this->query("SET SESSION STORAGE_ENGINE = 'INNODB'");
48  }
49 
53  function supportsFulltext()
54  {
55  return false;
56  }
57 
58  protected function getCreateTableOptions()
59  {
60  // InnoDB is default engine for MySQL >= 5.5
61  return array('type' => 'InnoDB');
62  }
63 
64 }
65 ?>