PHP Class Pimcore\Db

Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Свойство Type Description
$_logCaptureActive boolean
$_logProfilerWasEnabled boolean
$_sqlLogFilename string

Méthodes publiques

Méthode 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 méthode

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

close() public static méthode

public static close ( ) : void
Résultat void

errorHandler() public static méthode

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

get() public static méthode

public static get ( ) : mixed | Zend_Db_Adapter_Abstract
Résultat mixed | Zend_Db_Adapter_Abstract

getConnection() public static méthode

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

getType() public static méthode

public static getType ( ) : string
Résultat string

isDDLQuery() public static méthode

public static isDDLQuery ( $query ) : boolean
$query
Résultat boolean

isDMSQuery() public static méthode

public static isDMSQuery ( $query ) : boolean
$query
Résultat boolean

isWriteQuery() public static méthode

public static isWriteQuery ( $method, $args ) : boolean
$method
$args
Résultat boolean

logDefinitionModification() public static méthode

public static logDefinitionModification ( string $sql )
$sql string

reset() public static méthode

public static reset ( ) : Zend_Db_Adapter_Abstract
Résultat Zend_Db_Adapter_Abstract

set() public static méthode

public static set ( $connection )
$connection

startCapturingDefinitionModifications() public static méthode

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

stopCapturingDefinitionModifications() public static méthode

public static stopCapturingDefinitionModifications ( $connection )

Property Details

$_logCaptureActive protected_oe static_oe property

protected static bool $_logCaptureActive
Résultat boolean

$_logProfilerWasEnabled protected_oe static_oe property

protected static bool $_logProfilerWasEnabled
Résultat boolean

$_sqlLogFilename protected_oe static_oe property

protected static string $_sqlLogFilename
Résultat string