MIOLO20
Toggle main menu visibility
Página principal
Estruturas de dados
Estruturas de dados
Hierarquia de classes
Campos de dados
Tudo
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Funções
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variáveis
$
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Ficheiros
Lista de ficheiros
Globais
Tudo
$
_
a
c
d
e
f
g
i
l
m
o
p
r
s
u
Funções
Variáveis
$
_
c
e
f
l
m
o
p
s
Exemplos
▼
MIOLO20
►
Estruturas de dados
▼
Ficheiros
▼
Lista de ficheiros
▼
classes
►
contrib
►
database
►
doc
▼
extensions
▼
doctrine-dbal
▼
Doctrine
►
Common
▼
DBAL
▼
Driver
▼
IBMDB2
►
DB2Connection.php
►
DB2Driver.php
►
DB2Exception.php
►
DB2Statement.php
►
OCI8
►
PDOIbm
►
PDOMySql
►
PDOOracle
►
PDOPgSql
►
PDOSqlite
►
PDOSqlsrv
►
Connection.php
►
PDOConnection.php
►
PDOStatement.php
►
Statement.php
►
Event
►
Logging
►
Platforms
►
Schema
►
Tools
►
Types
►
Configuration.php
►
Connection.php
►
ConnectionException.php
►
DBALException.php
►
Driver.php
►
DriverManager.php
►
Events.php
►
LockMode.php
►
Statement.php
►
Version.php
►
Symfony
►
jasper
►
spaw
►
class.phpmailer.php
►
class.smtp.php
►
cpaint.inc.php
►
cpaint_proxy.php
►
ezpdf
►
flow
►
interfaces
►
model
►
persistence
►
pslib
►
security
►
services
►
tests
►
ui
►
utils
►
compatibility.class
►
miolo.class
►
Globais
►
Exemplos
•
Tudo
Estruturas de dados
Namespaces
Ficheiros
Funções
Variáveis
Carregando...
Procurando...
Nenhuma entrada encontrada
DB2Driver.php
Ir para a documentação deste ficheiro.
1
<?php
2
/*
3
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
*
15
* This software consists of voluntary contributions made by many individuals
16
* and is licensed under the LGPL. For more information, see
17
* <http://www.doctrine-project.org>.
18
*/
19
20
namespace
Doctrine\DBAL\Driver\IBMDB2
;
21
22
use
Doctrine\DBAL\Driver
,
23
Doctrine\DBAL\Connection
;
24
31
class
DB2Driver
implements
Driver
32
{
42
public
function
connect
(array $params, $username =
null
, $password =
null
, array $driverOptions = array())
43
{
44
if
( !isset($params[
'schema'
]) ) {
45
46
}
47
48
if
($params[
'host'
] !==
'localhost'
&& $params[
'host'
] !=
'127.0.0.1'
) {
49
// if the host isn't localhost, use extended connection params
50
$params[
'dbname'
] =
'DRIVER={IBM DB2 ODBC DRIVER}'
.
51
';DATABASE='
. $params[
'dbname'
] .
52
';HOSTNAME='
. $params[
'host'
] .
53
';PORT='
. $params[
'port'
] .
54
';PROTOCOL='
. $params[
'protocol'
] .
55
';UID='
. $username .
56
';PWD='
. $password .
';'
;
57
$username =
null
;
58
$password =
null
;
59
}
60
61
return
new
DB2Connection
($params, $username, $password, $driverOptions);
62
}
42
public
function
connect
(array $params, $username =
null
, $password =
null
, array $driverOptions = array()) {
…
}
63
70
public
function
getDatabasePlatform
()
71
{
72
return
new \Doctrine\DBAL\Platforms\DB2Platform;
73
}
70
public
function
getDatabasePlatform
() {
…
}
74
82
public
function
getSchemaManager
(
Connection
$conn)
83
{
84
return
new \Doctrine\DBAL\Schema\DB2SchemaManager($conn);
85
}
82
public
function
getSchemaManager
(
Connection
$conn) {
…
}
86
92
public
function
getName
()
93
{
94
return
'ibm_db2'
;
95
}
92
public
function
getName
() {
…
}
96
103
public
function
getDatabase
(\Doctrine\DBAL\
Connection
$conn)
104
{
105
$params = $conn->getParams();
106
return
$params[
'dbname'
];
107
}
103
public
function
getDatabase
(\Doctrine\DBAL\
Connection
$conn) {
…
}
108
}
31
class
DB2Driver
implements
Driver
{
…
};
Doctrine\DBAL\Connection
Definição
Connection.php:45
Doctrine\DBAL\Driver\IBMDB2\DB2Connection
Definição
DB2Connection.php:25
Doctrine\DBAL\Driver\IBMDB2\DB2Driver
Definição
DB2Driver.php:32
Doctrine\DBAL\Driver\IBMDB2\DB2Driver\getName
getName()
Definição
DB2Driver.php:92
Doctrine\DBAL\Driver\IBMDB2\DB2Driver\getSchemaManager
getSchemaManager(Connection $conn)
Definição
DB2Driver.php:82
Doctrine\DBAL\Driver\IBMDB2\DB2Driver\getDatabasePlatform
getDatabasePlatform()
Definição
DB2Driver.php:70
Doctrine\DBAL\Driver\IBMDB2\DB2Driver\getDatabase
getDatabase(\Doctrine\DBAL\Connection $conn)
Definição
DB2Driver.php:103
Doctrine\DBAL\Driver\IBMDB2\DB2Driver\connect
connect(array $params, $username=null, $password=null, array $driverOptions=array())
Definição
DB2Driver.php:42
Doctrine\DBAL\Driver
Definição
Driver.php:29
Doctrine\DBAL\Driver\IBMDB2
Definição
DB2Connection.php:22
Doctrine\DBAL\Driver
Definição
Connection.php:20
classes
extensions
doctrine-dbal
Doctrine
DBAL
Driver
IBMDB2
DB2Driver.php
Gerado por
1.10.0