Class Connection
Connection wrapper for Doctrine DBAL Connection
- Doctrine\DBAL\Connection
- Xoops\Core\Database\Connection
Namespace: Xoops\Core\Database
Package: Connection
Category: Xoops\Core\Database\Connection
Copyright: 2013-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: readheadedrod redheadedrod@hotmail.com
Author: Richard Griffith richard@geekwright.com
Version: Release: 2.6
Since: 2.6.0
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Database/Connection.php
Package: Connection
Category: Xoops\Core\Database\Connection
Copyright: 2013-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: readheadedrod redheadedrod@hotmail.com
Author: Richard Griffith richard@geekwright.com
Version: Release: 2.6
Since: 2.6.0
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Database/Connection.php
public static
|
|
public static
boolean
|
|
public static
|
|
public static
boolean
|
|
public
|
#
__construct( array $params, Doctrine\DBAL\Driver $driver, Doctrine\DBAL\Configuration $config = null, Doctrine\Common\EventManager $eventManager = null )
Initializes a new instance of the Connection class. |
public static
string
|
|
public
integer
|
#
insertPrefix( string $tableName, array $data, array $types = array() )
Inserts a table row with specified data. |
public
integer
|
#
updatePrefix( string $tableName, array $data, array $identifier, array $types = array() )
Executes an SQL UPDATE statement on a table. |
public
integer
|
|
public
Doctrine\DBAL\Driver\Statement
|
#
executeQuery( string $query, array $params = array(), array $types = array(), Doctrine\DBAL\Cache\QueryCacheProfile $qcp = null )
Executes an, optionally parametrized, SQL query. |
public
integer
|
#
executeUpdate( string $query, array $params = array(), array $types = array() )
Executes an SQL INSERT/UPDATE/DELETE query with the given parameters and returns the number of affected rows. |
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
boolean
|
|
public
mixed
|
#
quoteSlash( string $input )
Duplicates original xoops quote. Name changed to not confuse normal usage of quote. |
public
|
protected static
boolean
|
$safe
$safe true means it is safe to write to database removed allowedWebChanges as unnecessary. Using this instead. |
|
protected static
boolean
|
$force
$force true means force writing to database even if safe is not true. |
|
protected static
boolean
|
$transactionActive
$transactionActive true means a transaction is in process. |