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
►
OCI8
►
PDOIbm
►
PDOMySql
▼
PDOOracle
►
Driver.php
►
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
Driver.php
Ir para a documentação deste ficheiro.
1
<?php
2
/*
3
* $Id$
4
*
5
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
6
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
8
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
9
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
10
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
11
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
12
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
13
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
14
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
15
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16
*
17
* This software consists of voluntary contributions made by many individuals
18
* and is licensed under the LGPL. For more information, see
19
* <http://www.doctrine-project.org>.
20
*/
21
22
namespace
Doctrine\DBAL\Driver\PDOOracle
;
23
24
use
Doctrine\DBAL\Platforms
;
25
26
class
Driver
implements
\Doctrine\DBAL\Driver
27
{
28
public
function
connect
(array $params, $username =
null
, $password =
null
, array $driverOptions = array())
29
{
30
return
new \Doctrine\DBAL\Driver\PDOConnection(
31
$this->_constructPdoDsn($params),
32
$username,
33
$password,
34
$driverOptions
35
);
36
}
28
public
function
connect
(array $params, $username =
null
, $password =
null
, array $driverOptions = array()) {
…
}
37
43
private
function
_constructPdoDsn(array $params)
44
{
45
$dsn =
'oci:'
;
46
if
(isset($params[
'host'
])) {
47
$dsn .=
'dbname=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)'
.
48
'(HOST='
. $params[
'host'
] .
')'
;
49
50
if
(isset($params[
'port'
])) {
51
$dsn .=
'(PORT='
. $params[
'port'
] .
')'
;
52
}
else
{
53
$dsn .=
'(PORT=1521)'
;
54
}
55
56
$dsn .=
'))(CONNECT_DATA=(SID='
. $params[
'dbname'
] .
')))'
;
57
}
else
{
58
$dsn .=
'dbname='
. $params[
'dbname'
];
59
}
60
61
if
(isset($params[
'charset'
])) {
62
$dsn .=
';charset='
. $params[
'charset'
];
63
}
64
65
return
$dsn;
66
}
67
68
public
function
getDatabasePlatform
()
69
{
70
return
new \Doctrine\DBAL\Platforms\OraclePlatform();
71
}
68
public
function
getDatabasePlatform
() {
…
}
72
73
public
function
getSchemaManager
(\Doctrine\DBAL\
Connection
$conn)
74
{
75
return
new \Doctrine\DBAL\Schema\OracleSchemaManager($conn);
76
}
73
public
function
getSchemaManager
(\Doctrine\DBAL\
Connection
$conn) {
…
}
77
78
public
function
getName
()
79
{
80
return
'pdo_oracle'
;
81
}
78
public
function
getName
() {
…
}
82
83
public
function
getDatabase
(\Doctrine\DBAL\
Connection
$conn)
84
{
85
$params = $conn->getParams();
86
return
$params[
'user'
];
87
}
83
public
function
getDatabase
(\Doctrine\DBAL\
Connection
$conn) {
…
}
88
}
26
class
Driver
implements
\Doctrine\DBAL\Driver
{
…
};
Doctrine\DBAL\Driver\PDOOracle\Driver
Definição
Driver.php:27
Doctrine\DBAL\Driver\PDOOracle\Driver\getName
getName()
Definição
Driver.php:78
Doctrine\DBAL\Driver\PDOOracle\Driver\getDatabasePlatform
getDatabasePlatform()
Definição
Driver.php:68
Doctrine\DBAL\Driver\PDOOracle\Driver\getDatabase
getDatabase(\Doctrine\DBAL\Connection $conn)
Definição
Driver.php:83
Doctrine\DBAL\Driver\PDOOracle\Driver\connect
connect(array $params, $username=null, $password=null, array $driverOptions=array())
Definição
Driver.php:28
Doctrine\DBAL\Driver\PDOOracle\Driver\getSchemaManager
getSchemaManager(\Doctrine\DBAL\Connection $conn)
Definição
Driver.php:73
Doctrine\DBAL\Driver\Connection
Definição
Connection.php:31
Doctrine\DBAL\Driver
Definição
Driver.php:29
Doctrine\DBAL\Driver\PDOOracle
Definição
Driver.php:22
Doctrine\DBAL\Platforms
Definição
AbstractPlatform.php:20
classes
extensions
doctrine-dbal
Doctrine
DBAL
Driver
PDOOracle
Driver.php
Gerado por
1.10.0