Zend Framework
3.0
|
Public Member Functions | ||||
__construct ($connectionInfo) | ||||
Constructor. | ||||
setDriver (Sqlsrv $driver) | ||||
Set driver. | ||||
getCurrentSchema () | ||||
Get current schema.
| ||||
setResource ($resource) | ||||
Set resource. | ||||
connect () | ||||
Connect.
| ||||
isConnected () | ||||
Is connected.
| ||||
disconnect () | ||||
Disconnect.
| ||||
beginTransaction () | ||||
Begin transaction.
| ||||
commit () | ||||
Commit.
| ||||
rollback () | ||||
Rollback.
| ||||
execute ($sql) | ||||
Execute.
| ||||
prepare ($sql) | ||||
Prepare. | ||||
getLastGeneratedValue ($name=null) | ||||
Get last generated id.
| ||||
Public Member Functions inherited from AbstractConnection | ||||
disconnect () | ||||
Disconnect.
| ||||
getConnectionParameters () | ||||
Get connection parameters. | ||||
getDriverName () | ||||
Get driver name. | ||||
getProfiler () | ||||
getResource () | ||||
Get resource.
| ||||
inTransaction () | ||||
Checks whether the connection is in transaction state. | ||||
setConnectionParameters (array $connectionParameters) | ||||
setProfiler (ProfilerInterface $profiler) | ||||
| ||||
Protected Attributes | |
$driver = null | |
Protected Attributes inherited from AbstractConnection | |
$connectionParameters = [] | |
$driverName | |
$inTransaction = false | |
$nestedTransactionsCount = 0 | |
$profiler | |
$resource | |
__construct | ( | $connectionInfo | ) |
Constructor.
array | resource | $connectionInfo |
\Zend\Db\Adapter\Exception\InvalidArgumentException |
beginTransaction | ( | ) |
commit | ( | ) |
connect | ( | ) |
Connect.
Exception\RuntimeException |
Implements ConnectionInterface.
disconnect | ( | ) |
execute | ( | $sql | ) |
Execute.
string | $sql |
Exception\RuntimeException |
Implements ConnectionInterface.
getCurrentSchema | ( | ) |
getLastGeneratedValue | ( | $name = null | ) |
Get last generated id.
null | $name | Ignored |
Implements ConnectionInterface.
isConnected | ( | ) |
prepare | ( | $sql | ) |
Prepare.
string | $sql |
rollback | ( | ) |
setResource | ( | $resource | ) |
Set resource.
resource | $resource |
Exception\InvalidArgumentException |
|
protected |