PHP Class Pimcore\Db

Mostrar archivo Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Property Type Description
$_logCaptureActive boolean
$_logProfilerWasEnabled boolean
$_sqlLogFilename string

Public Methods

Method Description
cleanupBrokenViews ( ) check if autogenerated views (eg. localized fields, .
close ( ) : void
errorHandler ( $method, $args, $exception, boolean $logError = true )
get ( ) : mixed | Zend_Db_Adapter_Abstract
getConnection ( boolean $raw = false, boolean $writeOnly = false ) : Wrapper | Zend_Db_Adapter_Abstract
getType ( ) : string
isDDLQuery ( $query ) : boolean
isDMSQuery ( $query ) : boolean
isWriteQuery ( $method, $args ) : boolean
logDefinitionModification ( string $sql )
reset ( ) : Zend_Db_Adapter_Abstract
set ( $connection )
startCapturingDefinitionModifications ( $connection, string $method, array $args )
stopCapturingDefinitionModifications ( $connection )

Method Details

cleanupBrokenViews() public static method

..) are still valid, if not, they're removed
public static cleanupBrokenViews ( )

close() public static method

public static close ( ) : void
return void

errorHandler() public static method

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

get() public static method

public static get ( ) : mixed | Zend_Db_Adapter_Abstract
return mixed | Zend_Db_Adapter_Abstract

getConnection() public static method

public static getConnection ( boolean $raw = false, boolean $writeOnly = false ) : Wrapper | Zend_Db_Adapter_Abstract
$raw boolean
$writeOnly boolean
return Pimcore\Db\Wrapper | Zend_Db_Adapter_Abstract

getType() public static method

public static getType ( ) : string
return string

isDDLQuery() public static method

public static isDDLQuery ( $query ) : boolean
$query
return boolean

isDMSQuery() public static method

public static isDMSQuery ( $query ) : boolean
$query
return boolean

isWriteQuery() public static method

public static isWriteQuery ( $method, $args ) : boolean
$method
$args
return boolean

logDefinitionModification() public static method

public static logDefinitionModification ( string $sql )
$sql string

reset() public static method

public static reset ( ) : Zend_Db_Adapter_Abstract
return Zend_Db_Adapter_Abstract

set() public static method

public static set ( $connection )
$connection

startCapturingDefinitionModifications() public static method

public static startCapturingDefinitionModifications ( $connection, string $method, array $args )
$method string
$args array

stopCapturingDefinitionModifications() public static method

public static stopCapturingDefinitionModifications ( $connection )

Property Details

$_logCaptureActive protected_oe static_oe property

protected static bool $_logCaptureActive
return boolean

$_logProfilerWasEnabled protected_oe static_oe property

protected static bool $_logProfilerWasEnabled
return boolean

$_sqlLogFilename protected_oe static_oe property

protected static string $_sqlLogFilename
return string