lib/ezdb/classes/ezdb.php

Show: inherited
Table of Contents

File containing the eZDB class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
lib  
Version
4.6.0  

\eZDB

Package: lib

File containing the eZDB class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Version
4.6.0  

Constants

Constant  ERROR_HANDLING_STANDARD = 1

Error handling mode

Constant  ERROR_HANDLING_EXCEPTIONS = 2

Properties

Propertyprotected  $errorHandling= 'self::ERROR_HANDLING_STANDARD'
static
Default valueself::ERROR_HANDLING_STANDARDDetails
Type
n/a

Methods

methodprivate__construct( ) : void

methodpubliccheckTransactionCounter( ) : void
static

methodpublichasInstance( ) : void
static

methodpublicinstance( string | false $databaseImplementation = false, array | false $databaseParameters = false, bool $forceNewInstance = false ) : \eZDBInterface
static

Returns a shared instance of the eZDBInterface class aka database object.

If you want to change the current database values you should use $forceNewInstance.

Parameters
Name Type Description
$databaseImplementation string | false
$databaseParameters array | false

If array, then key 'use_defaults' (bool) is used.

$forceNewInstance bool
Returns
Type Description
\eZDBInterface
methodpublicsetErrorHandling( int $errorHandling ) : void
static

Sets the default eZDB error handling mode.

Use eZDB::instance()->setErrorHandling() with the same parameters to set error handling for one instance only

Parameters
Name Type Description
$errorHandling int

Possible values are:pm - eZDB::ERROR_HANDLING_STANDARD: backward compatible error handling, using reportError - eZDB::ERROR_HANDLING_EXCEPTION: using exceptions

Throws
Exception Description
\RuntimeException thrown when an invalid error handling is given
Details
Access
private  
Since
4.5  
methodpublicsetInstance(  $instance ) : void
static

Parameters
Name Type Description
$instance
Documentation was generated by DocBlox 0.18.1.