class Db (View source)

Methods

static string
getType()

No description

static Wrapper|Zend_Db_Adapter_Abstract
getConnection(bool $raw = false, bool $writeOnly = false)

No description

static Zend_Db_Adapter_Abstract
reset()

No description

static mixed|Zend_Db_Adapter_Abstract
get()

No description

static 
set($connection)

No description

static void
close()

No description

static bool
isDDLQuery($query)

No description

static bool
isDMSQuery($query)

No description

static 
startCapturingDefinitionModifications($connection, $method, $args)

No description

static 
stopCapturingDefinitionModifications($connection)

No description

static bool
isWriteQuery($method, $args)

No description

static 
logDefinitionModification(string $sql)

No description

static 
errorHandler($method, $args, $exception, bool $logError = true)

No description

static 
cleanupBrokenViews()

check if autogenerated views (eg. localized fields, .

Details

at line line 42
static string getType()

Return Value

string

at line line 54
static Wrapper|Zend_Db_Adapter_Abstract getConnection(bool $raw = false, bool $writeOnly = false)

Parameters

bool $raw
bool $writeOnly

Return Value

Wrapper|Zend_Db_Adapter_Abstract

Exceptions

Exception
Zend_Db_Profiler_Exception

at line line 119
static Zend_Db_Adapter_Abstract reset()

Return Value

Zend_Db_Adapter_Abstract

at line line 132
static mixed|Zend_Db_Adapter_Abstract get()

Return Value

mixed|Zend_Db_Adapter_Abstract

at line line 163
static set($connection)

Parameters

$connection

at line line 179
static void close()

Return Value

void

at line line 201
static bool isDDLQuery($query)

Parameters

$query

Return Value

bool

at line line 210
static bool isDMSQuery($query)

Parameters

$query

Return Value

bool

at line line 220
static startCapturingDefinitionModifications($connection, $method, $args)

Parameters

$connection
$method
$args

at line line 241
static stopCapturingDefinitionModifications($connection)

Parameters

$connection

at line line 266
static bool isWriteQuery($method, $args)

Parameters

$method
$args

Return Value

bool

at line line 284
static logDefinitionModification(string $sql)

Parameters

string $sql

at line line 316
static errorHandler($method, $args, $exception, bool $logError = true)

Parameters

$method
$args
$exception
bool $logError

Exceptions

Exception

at line line 358
static cleanupBrokenViews()

check if autogenerated views (eg. localized fields, .

..) are still valid, if not, they're removed