ILIAS  release_7 Revision v7.30-3-g800a261c036
interface.ilDBPdoInterface.php
Go to the documentation of this file.
1<?php
2
7{
8
13 public function getServerVersion($native = false);
14
15
22 public function queryCol($query, $type = ilDBConstants::FETCHMODE_DEFAULT, $colnum = 0);
23
24
31 public function queryRow($query, $types = null, $fetchmode = ilDBConstants::FETCHMODE_DEFAULT);
32
33
39 public function escape($value, $escape_wildcards = false);
40
41
46 public function escapePattern($text);
47
48
55
56
60 public function supportsEngineMigration();
61
62
69
70
74 public function supportsCollationMigration();
75
76
83 public function addUniqueConstraint($table, $fields, $name = "con");
84
85
91 public function dropUniqueConstraint($table, $name = "con");
92
93
99 public function dropUniqueConstraintByFields($table, $fields);
100
101
106 public function checkIndexName($name);
107
108
112 public function getLastInsertId();
113
114
121 public function prepare($query, $types = null, $result_types = null);
122
123
129 public function uniqueConstraintExists($table, array $fields);
130
131
135 public function dropPrimaryKey($table_name);
136
137
142 public function executeMultiple($stmt, $data);
143
144
150 public function fromUnixtime($expr, $to_text = true);
151
152
156 public function unixTimestamp();
157
158
174 public function autoExecute($tablename, $fields, $mode = ilDBConstants::AUTOQUERY_INSERT, $where = false);
175
176
182 public function getDBVersion();
183}
An exception for terminatinating execution or to throw for unit testing.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilDBPdoInterface.
executeMultiple($stmt, $data)
escape($value, $escape_wildcards=false)
queryCol($query, $type=ilDBConstants::FETCHMODE_DEFAULT, $colnum=0)
uniqueConstraintExists($table, array $fields)
autoExecute($tablename, $fields, $mode=ilDBConstants::AUTOQUERY_INSERT, $where=false)
Generate an insert, update or delete query and call prepare() and execute() on it.
migrateAllTablesToCollation($collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4)
getDBVersion()
returns the Version of the Database (e.g.
fromUnixtime($expr, $to_text=true)
dropPrimaryKey($table_name)
escapePattern($text)
addUniqueConstraint($table, $fields, $name="con")
checkIndexName($name)
dropUniqueConstraintByFields($table, $fields)
prepare($query, $types=null, $result_types=null)
dropUniqueConstraint($table, $name="con")
migrateAllTablesToEngine($engine=ilDBConstants::MYSQL_ENGINE_INNODB)
getServerVersion($native=false)
queryRow($query, $types=null, $fetchmode=ilDBConstants::FETCHMODE_DEFAULT)
if($format !==null) $name
Definition: metadata.php:230
$query
$type
$data
Definition: storeScorm.php:23