eZPublish  4.7
eZDB Class Reference

The eZDB class provides database wrapper functions The eZ db library procides a database independent framework for SQL databases. The current supported databases are: PostgreSQL and MySQL. More...

Static Public Member Functions

static checkTransactionCounter ()
 
static hasInstance ()
 
static instance ($databaseImplementation=false, $databaseParameters=false, $forceNewInstance=false)
 Returns a shared instance of the eZDBInterface class aka database object. More...
 
static setErrorHandling ($errorHandling)
 Sets the default eZDB error handling mode. More...
 
static setInstance ($instance)
 

Public Attributes

const ERROR_HANDLING_EXCEPTIONS = 2
 
const ERROR_HANDLING_STANDARD = 1
 Error handling mode. More...
 

Static Protected Attributes

static $errorHandling = self::ERROR_HANDLING_STANDARD
 

Private Member Functions

 __construct ()
 

Detailed Description

The eZDB class provides database wrapper functions The eZ db library procides a database independent framework for SQL databases. The current supported databases are: PostgreSQL and MySQL.

eZ db is designed to be used with the following type subset of SQL: int, float, varchar and text.

To store date and time values int's are used. eZ locale is used to present the date and times on a localized format. That way we don't have to worry about the different date and time formats used in the different databases.

Auto incrementing numbers, sequences, are used to generate unique id's for a table row. This functionality is abstracted as it works different in the different databases.

Limit and offset functionality is also abstracted by the eZ db library.

eZ db is designed to use lowercase in all table/column names. This is done to prevent errors as the different databases handles this differently. Especially when returning the data as an associative array.

// Get the current database instance
// will create a new database object and connect to the database backend
// if there is already created an instance for this session the existing
// object will be returned.
// the settings for the database connections are set in site.ini
// Run a simple query
$db->query( 'DELETE FROM sql_test' );
// insert some data
$str = $db->escapeString( "Testing escaping'\"" );
$db->query( "INSERT INTO sql_test ( name, description ) VALUES ( 'New test', '$str' )" );
// Get the last serial value for the sql_test table
$rowID = $db->lastSerialID( 'sql_test', 'id' );
// fetch some data into an array of associative arrays
$rows = $db->arrayQuery( 'SELECT * FROM sql_test' );
foreach ( $rows as $row )
{
print( $row['name'] );
}
// fetch some data with a limit
// will return the 10 first rows in the result
$ret = $db->arrayQuery( 'SELECT id, name, description, rownum FROM sql_test',
array( 'offset' => 0, 'limit' => 10 ) );
// check which implementation we're running
print( $db->databaseName() );
See Also
eZLocale eZINI

Constructor & Destructor Documentation

eZDB::__construct ( )
private

Constructor. NOTE: Should not be used.

Member Function Documentation

static eZDB::checkTransactionCounter ( )
static

Checks transaction counter If the current transaction counter is 1 or higher means 1 or more transactions are running and a negative value means something is wrong. Prints the error.

Referenced by eZScript\shutdown().

static eZDB::hasInstance ( )
static

Returns an instance of the database object.

Referenced by eZDBCleanup(), and eZScript\shutdown().

static eZDB::instance (   $databaseImplementation = false,
  $databaseParameters = false,
  $forceNewInstance = false 
)
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
string | false$databaseImplementation
array | false$databaseParametersIf array, then key 'use_defaults' (bool) is used.
bool$forceNewInstance
Returns
eZDBInterface

Referenced by eZUser\_loginUser(), eZShopOperationCollection\activateOrder(), eZOrder\active(), eZOrder\activeCount(), eZISBN10To13Converter\addAllClasses(), eZContentOperationCollection\addAssignment(), eZContentObjectTreeNode\addChildTo(), eZContentObject\addContentObjectRelation(), eZCollaborationItemGroupLink\addItem(), eZContentLanguage\addLanguage(), eZCollaborationItemMessageLink\addMessage(), eZSearchEngine\addObject(), eZSearchLog\addPhrase(), eZShopOperationCollection\addToBasket(), eZContentObject\allowedAssignStateIDList(), eZContentCacheManager\appendKeywordNodeIDs(), eZPolicy\appendLimitation(), eZRole\appendPolicy(), applyChanges(), eZOrder\archiveOrder(), eZContentObject\assignDefaultStates(), eZContentObject\assignedNodes(), eZContentObjectTreeNode\assignSectionToSubTree(), eZContentObject\assignState(), eZRole\assignToUser(), eZIdentifierType\assignValue(), eZContentObject\authorArray(), backupTables(), eZStringType\batchInitializeObjectAttributeData(), eZOptionType\batchInitializeObjectAttributeData(), eZMatrixType\batchInitializeObjectAttributeData(), eZMultiOption2Type\batchInitializeObjectAttributeData(), eZXMLTextType\batchInitializeObjectAttributeData(), eZContentOperationCollection\beginPublish(), eZSearchEngine\buildTempTablesForFullTextSearch(), eZSearchEngine\buildWordIDArray(), eZContentClassAttribute\cachedInfo(), eZProductCollectionItem\calculatePriceWithOptions(), eZContentObjectTreeNode\calendar(), eZContentObject\canCreateClassList(), eZContentObjectTreeNode\canCreateClassList(), eZContentClass\canInstantiateClassList(), eZMultiPriceData\changeCurrency(), eZShopFunctions\changeCurrency(), changeDBCharset(), changeDBCharsetORACLE(), eZContentOperationCollection\changeSortOrder(), eZStepInstaller\checkDatabaseRequirements(), checkDBCharset(), checkDBDriver(), checkDBExtraConditions(), checkDBExtraConditionsORACLE(), checkNodeActions(), checkNodeAssignments(), checkNodeMovements(), eZTipafriendRequest\checkReceiver(), checkRelationActions(), checkRelationAssignments(), checkTransactionCounter(), eZContentObjectTreeNode\childrenByName(), ezpContentPublishingQueueProcessor\childSignalHandler(), eZContentClassAttribute\classAttributeIdentifiersHash(), eZUserType\classAttributeRemovableInformation(), eZContentLanguage\classCount(), eZContentClass\classIdentifiersHash(), eZContentObject\className(), eZISBNGroup\cleanAll(), eZISBNGroupRange\cleanAll(), eZISBNRegistrantRange\cleanAll(), eZDBTool\cleanup(), eZForgotPassword\cleanup(), eZTipafriendRequest\cleanup(), eZGeneralDigestUserSettings\cleanup(), eZNotificationCollectionItem\cleanup(), eZTipafriendCounter\cleanup(), ezpSessionHandlerPHP\cleanup(), eZCollaborationNotificationRule\cleanup(), eZURLWildcard\cleanup(), eZOrderItem\cleanup(), eZNotificationEventFilter\cleanup(), eZContentBrowseBookmark\cleanup(), eZNotificationCollection\cleanup(), eZOperationMemento\cleanup(), eZNotificationEvent\cleanup(), eZInformationCollectionAttribute\cleanup(), eZWishList\cleanup(), eZContentBrowseRecent\cleanup(), eZPreferences\cleanup(), ezpSessionHandlerDB\cleanup(), eZBasket\cleanup(), eZCollaborationItem\cleanup(), eZSubtreeNotificationRule\cleanup(), eZWorkflowProcess\cleanup(), eZInformationCollection\cleanup(), eZOrder\cleanup(), eZSearchEngine\cleanup(), eZRole\cleanupByNode(), eZBasket\cleanupCurrentBasket(), eZBasket\cleanupExpired(), eZProductCollectionItemOption\cleanupList(), eZProductCollection\cleanupList(), eZProductCollectionItem\cleanupList(), eZOrder\cleanupOrder(), eZWorkflow\cleanupWorkFlowProcess(), eZEnumType\cloneClassAttribute(), eZContentObjectAttribute\cloneContentObjectAttribute(), eZDBGarbageCollector\collectBaskets(), eZDBGarbageCollector\collectProductCollectionItemOptions(), eZDBGarbageCollector\collectProductCollectionItems(), eZDBGarbageCollector\collectProductCollections(), eZPersistentObject\conditionTextByRow(), connectToDatabase(), eZInformationCollectionAttribute\contentClassAttributeName(), eZContentObject\contentObjectAttributes(), eZNodeviewfunctions\contentViewGenerate(), convertSerializedData(), convertXMLData(), eZProductCollection\copy(), eZRole\copy(), eZPolicy\copy(), eZContentObject\copy(), copyBinaryfilesToDB(), eZContentObject\copyContentObjectRelations(), copyImagesToDB(), copyMediafilesToDB(), copyObject(), eZWebDAVContentBackend\copyObject(), eZWebDAVContentBackend\copyObjectSameDirectory(), eZRole\copyPolicies(), copySubtree(), eZContentObject\copyVersion(), eZURLAliasQuery\count(), ezpSessionHandlerDB\count(), eZContentFunctions\createAndPublishObject(), eZContentObjectTreeNode\createAttributeFilterSQLStrings(), createContentClassAttributeTempTable(), eZShopFunctions\createCurrency(), eZContentOperationCollection\createFeedForNode(), eZWebDAVContentServer\createFolder(), eZWebDAVContentBackend\createFolder(), eZUser\createHash(), eZSimplifiedXMLEditOutput\createLinksArray(), eZContentBrowseBookmark\createNew(), eZContentBrowseRecent\createNew(), eZContentObject\createNewVersion(), eZContentObjectTreeNode\createNodesConditionSQLStringFromPath(), eZContentObjectTreeNode\createObjectNameFilterConditionSQLString(), eZBasket\createOrder(), eZContentObjectTreeNode\createPathConditionAndNotEqParentSQLStrings(), eZContentObjectTreeNode\createPermissionCheckingSQL(), eZMultiPriceData\createPriceListForCurrency(), eZSearchEngine\createTemporaryTable(), eZRole\createTemporaryVersion(), createURLListCondition(), eZContentObject\createWithNodeAssignment(), eZContentObjectTreeNode\creator(), eZBasket\currentBasket(), eZOrder\customerCount(), eZOrder\customerList(), eZPublishSDK\databaseRelease(), eZPublishSDK\databaseVersion(), eZSiteInstaller\dbBegin(), eZSiteInstaller\dbCommit(), ezpSessionHandlerDB\deleteByUserIDs(), eZUserType\deleteStoredObjectAttribute(), eZURLType\deleteStoredObjectAttribute(), eZKeywordType\deleteStoredObjectAttribute(), eZXMLTextType\deleteStoredObjectAttribute(), eZObjectRelationListType\deleteStoredObjectAttribute(), ezpSessionHandlerDB\destroy(), eZOrder\detachProductCollection(), eZDiscount\discountPercent(), eZContentOperationCollection\endPublish(), eZPersistentObject\escapeArray(), updateNodeAssignment\execute(), eZModuleOperationInfo\execute(), eZStaticCache\executeActions(), eZContentObject\exists(), eZDBCleanup(), eZFetchActiveSessionCount(), eZFetchActiveSessions(), eZUser\failedLoginAttemptsByUserID(), eZKeyword\fetch(), eZContentObject\fetch(), eZContentObjectTreeNode\fetch(), eZContentObjectTreeNode\fetchAliasesFromNodeList(), eZURLAliasQuery\fetchAll(), eZUser\fetchAnonymousCount(), eZContentObjectVersion\fetchAttributes(), eZContentObject\fetchAttributesByIdentifier(), eZShopFunctionCollection\fetchBestSellList(), eZURLAliasML\fetchByAction(), eZContentObjectStateGroup\fetchByConditions(), eZContentObjectState\fetchByConditions(), eZContentObjectStateGroup\fetchByIdentifier(), eZContentObjectState\fetchByIdentifier(), eZContentObject\fetchByNodeID(), eZURLAliasML\fetchByParentID(), eZURLAliasML\fetchByPath(), eZContentObject\fetchByRemoteID(), eZRole\fetchByUser(), eZUserDiscountRule\fetchByUserIDArray(), eZNodeAssignment\fetchChildCountByVersionStatus(), eZNodeAssignment\fetchChildListByVersionStatus(), eZContentClassClassGroup\fetchClassList(), eZClassFunctionCollection\fetchClassListByGroups(), eZInformationCollection\fetchCollectionCountForObject(), eZUser\fetchContentList(), eZOrderStatusHistory\fetchCount(), eZVatRule\fetchCountByCategory(), eZInformationCollection\fetchCountForAttribute(), eZInformationCollection\fetchCountList(), eZMultiPriceData\fetchDataListWithoutPriceInCurrency(), eZVatType\fetchDependentClassesCount(), eZVatType\fetchDependentProductsCount(), eZWorkflowProcess\fetchForStatus(), eZGeneralDigestHandler\fetchHandlersForUser(), fetchHistoricRedirectionChunk(), fetchHistoricRedirectionCount(), fetchHistoricURLChunk(), fetchHistoricURLCount(), fetchHistoricWildcardChunk(), fetchHistoricWildcardCount(), eZContentObject\fetchIDArray(), eZRole\fetchIDListByUser(), eZContentClass\fetchIDListContainingDatatype(), eZImageFile\fetchImageAttributesByFilepath(), eZGeneralDigestHandler\fetchItemsForUser(), eZContentFunctionCollection\fetchKeyword(), eZContentFunctionCollection\fetchKeywordCount(), eZContentObjectTreeNode\fetchList(), eZOrderStatusHistory\fetchListByOrder(), eZContentObjectTreeNode\fetchListCount(), eZCollaborationItem\fetchListTool(), fetchLockedObjects(), eZUser\fetchLoggedInCount(), eZUser\fetchLoggedInList(), fetchMaskByNodeID(), eZContentObjectTreeNode\fetchNode(), eZContentObjectTreeNode\fetchNodesByPathString(), eZEnumType\fetchObjectAttributeHTTPInput(), eZContentObject\fetchObjectCountByUserID(), eZPersistentObject\fetchObjectList(), eZURLAliasML\fetchPathByActionList(), fetchPathIdentificationString(), fetchPathIdentificationStringChunk(), fetchPathIdentificationStringCount(), eZOrderStatus\fetchPolicyList(), eZProductCategory\fetchProductCountByCategory(), eZShopFunctionCollection\fetchRelatedPurchaseList(), eZRole\fetchRolesByLimitation(), eZContentFunctionCollection\fetchSameClassAttributeNodeList(), eZSearchFunctionCollection\fetchSearchListCount(), eZViewCounter\fetchTopList(), eZSearchEngine\fetchTotalObjectCount(), eZRole\fetchUserByRole(), eZUser\fetchUserClassList(), eZRole\fetchUserID(), eZSubtreeNotificationRule\fetchUserList(), eZContentObject\fillNodeListAttributes(), eZPolicyLimitation\findByType(), eZContentObjectTreeNode\findMainNode(), eZContentObjectTreeNode\findMainNodeArray(), eZContentObjectTreeNode\findNode(), eZURLAliasML\findUniqueText(), eZContentObject\fixReverseRelations(), ezpSessionHandlerPHP\gc(), ezpSessionHandlerDB\gc(), eZStaticCache\generateCache(), eZURLAliasML\generateCond(), eZURLAliasML\generateGlobCond(), eZUser\generateGroupIdList(), eZUserDiscountRule\generateIDListByUserID(), eZStaticCache\generateNodeListCache(), eZURLAliasQuery\generateSQL(), eZPackage\getInstallState(), eZContentObjectTreeNode\getName(), eZOrder\getNewID(), eZURLAliasML\getNewID(), eZLDAPUser\getNodeAssignmentsForGroupName(), eZContentObjectTreeNode\getParentNodeId(), eZContentObjectTreeNode\getParentNodeIdListByContentObjectID(), eZPathElement\getPath(), eZURLAliasML\getPath(), eZPathElement\getPathArray(), eZTemplateCacheBlock\getSubtreeModification(), eZContentObject\getVersionCount(), eZUser\groups(), eZCollaborationItemHandler\handleCollaborationEvent(), eZBinaryFileType\handleDownload(), eZURL\handleList(), handleNodeTemplate(), eZContentUpload\handleUpload(), eZShopOperationCollection\handleUserCountry(), eZRSSFunctionCollection\hasExportByNode(), eZISBN13\hasRangeData(), eZUser\hasStoredLogin(), eZContentObjectTreeNode\hideSubTree(), eZDataType\importDBDataFromDBAFile(), importRSSItem(), eZViewCounter\increase(), eZSearchEngine\indexWords(), eZInformationCollection\informationCollectionAttributes(), eZStepSiteDetails\init(), eZScript\initialize(), eZEnumType\initializeClassAttribute(), eZContentClass\initializeCopy(), eZEnumType\initializeObjectAttribute(), eZContentClassAttribute\initializeObjectAttributes(), eZStepCreateSites\initializePackage(), eZBinaryFileType\insertHTTPFile(), eZDBPackageHandler\install(), eZINIAddonPackageHandler\install(), eZDbSchema\instance(), eZCollaborationGroup\instantiate(), eZContentClass\instantiate(), ezpSessionHandlerDB\isConnected(), eZDBTool\isEmpty(), eZUser\isUserLoggedIn(), eZCollaborationGroup\itemCount(), eZContentLanguage\languagesSQLFilter(), eZUser\lastVisit(), eZContentObjectState\limitationList(), eZContentObjectStateGroup\limitations(), eZUser\limitList(), loadDatabaseSchema(), eZUser\loginCount(), eZUser\loginFailed(), eZLDAPUser\loginUser(), eZTextFileUser\loginUser(), eZUser\logoutCurrent(), markAsImported(), eZOrder\modifyStatus(), eZSearchLog\mostFrequentPhraseArray(), eZContentObjectTreeNodeOperations\move(), eZContentObjectTreeNode\move(), eZImageFile\moveFilepath(), eZContentObject\names(), eZPersistentObject\newObjectOrder(), eZContentObject\nextVersion(), eZContentObjectVersion\nonTranslatableAttributesToUpdate(), eZContentObjectState\objectCount(), eZContentLanguage\objectCount(), eZContentClass\objectCount(), eZContentLanguage\objectInitialCount(), eZOrder\orderList(), eZOrder\orderStatistics(), eZOrderStatus\orderStatusCount(), parseCustomSerializedDataOption(), eZXMLOutputHandler\prefetch(), eZSearchEngine\prepareWordIDArrays(), eZSearchEngine\prepareWordIDArraysForPattern(), eZContentObject\previousVersion(), eZNotificationEventFilter\process(), processDropdownLimitations(), eZVatRule\productCategories(), eZOrder\productList(), ezpContentPublishingProcess\publish(), eZContentObject\publishContentObjectRelations(), eZContentOperationCollection\publishNode(), eZLDAPUser\publishUpdateUser(), eZNodeAssignment\purge(), eZOrder\purge(), eZContentObject\purge(), eZNodeAssignment\purgeByID(), eZContentObjectTrashNode\purgeForObject(), ezpSessionHandlerDB\read(), ezpSessionHandlerPHP\regenerate(), ezpSessionHandlerDB\regenerate(), eZContentOperationCollection\registerSearchObject(), eZURL\registerURLArray(), eZContentObject\relatedObjectCount(), eZKeyword\relatedObjects(), eZContentObject\relatedObjects(), eZContentObject\remoteID(), eZContentClass\removableInformation(), eZNodeAssignment\remove(), eZContentObjectVersion\removeAssignment(), eZContentOperationCollection\removeAssignment(), eZContentClass\removeAttributes(), eZURLAliasML\removeByAction(), eZGeneralDigestUserSettings\removeByAddress(), eZProductCategory\removeByID(), eZMultiPriceData\removeByID(), eZPolicyLimitation\removeByID(), eZNodeAssignment\removeByID(), eZContentObjectStateGroup\removeByID(), eZContentObjectState\removeByID(), eZContentBrowseBookmark\removeByNodeID(), eZMultiPriceData\removeByOAID(), eZInformationCollection\removeCollection(), eZInformationCollection\removeContentObject(), eZContentObject\removeContentObjectRelation(), eZShopFunctions\removeCurrency(), eZCurrencyData\removeCurrencyList(), eZNotificationCollection\removeEmpty(), eZWorkflow\removeEvents(), eZWorkflowFunctions\removeGroup(), eZOrder\removeHistory(), eZContentObjectTreeNode\removeNodeFromTree(), eZContentOperationCollection\removeNodes(), eZPersistentObject\removeObject(), eZSearchEngine\removeObject(), eZContentOperationCollection\removeOldNodes(), eZOrder\removeOrderItems(), eZRole\removePolicies(), eZRole\removePolicy(), eZMultiPriceData\removePriceListForCurrency(), eZVatRule\removeProductCategories(), eZContentBrowseRecent\removeRecentByNodeID(), eZVatRule\removeReferencesToProductCategory(), eZContentObject\removeReverseRelations(), eZURLAliasML\removeSingleEntry(), eZContentObjectStateGroup\removeStatesByID(), eZSearchLog\removeStatistics(), eZContentObjectTreeNode\removeSubtrees(), eZWorkflow\removeTemporary(), eZRole\removeTemporary(), eZContentClass\removeTemporary(), eZWorkflow\removeThis(), eZProductCollectionItem\removeThis(), eZRSSExport\removeThis(), eZPolicy\removeThis(), eZVatType\removeThis(), eZOrderStatus\removeThis(), eZRole\removeThis(), eZContentClassAttribute\removeThis(), eZWorkflowProcess\removeThis(), eZContentObjectVersion\removeThis(), eZContentObject\removeThis(), eZContentObjectTreeNode\removeThis(), eZContentObjectVersion\removeTranslation(), eZContentClass\removeTranslation(), eZContentObject\removeTranslation(), eZTrigger\removeTriggerForWorkflow(), removeURLList(), eZRole\removeUserAssignment(), eZRole\removeUserAssignmentByID(), eZVatRule\removeVatRule(), eZContentObjectVersion\removeVersions(), eZPersistentObject\reorderObject(), eZContentObjectStateGroup\reorderStates(), eZVatType\resetToDefaultInProducts(), eZContentObject\restoreObjectAttributes(), restoreSerializedData(), eZContentObjectTreeNode\reverseRelatedCount(), eZURLAliasML\reverseTranslate(), eZRole\revertFromTemporaryVersion(), eZContentObject\revertTo(), eZScriptTrashPurge\run(), eZTrigger\runWorkflow(), eZSearchEngine\search(), eZSection\sectionCount(), sectionEditActionCheck(), eZContentObjectVersion\serialize(), eZContentClass\setAlwaysAvailableLanguageID(), eZContentObjectVersion\setAlwaysAvailableLanguageID(), eZContentObject\setAlwaysAvailableLanguageID(), eZUser\setFailedLoginAttempts(), eZPackage\setInstalled(), eZURLAliasML\setLangMaskAlwaysAvailable(), eZCollaborationItemParticipantLink\setLastRead(), eZContentObject\setName(), eZNodeAssignment\setNewMainAssignment(), eZContentOperationCollection\setObjectStatusPublished(), eZContentObjectAssignmentHandler\setupAssignments(), eZPreferences\setValue(), eZEnum\setValue(), eZEnum\setVersion(), eZSiteInstaller\setVersion(), eZContentObjectTreeNode\setVersionByObjectID(), eZScript\shutdown(), eZContentLanguage\sqlFilter(), eZContentObject\stateIDArray(), eZContentObject\stateIdentifierArray(), eZKeyword\store(), eZPDFExport\store(), eZRSSExport\store(), eZVatRule\store(), eZContentObject\store(), eZWorkflow\store(), eZWorkflowEvent\store(), eZContentObjectAttribute\store(), eZContentObjectStateGroup\store(), eZContentObjectState\store(), eZContentClass\store(), eZContentObjectTreeNode\store(), eZOrderStatus\storeCustom(), eZWorkflow\storeDefined(), eZWorkflowEvent\storeDefined(), eZContentObject\storeInput(), storeNodeAssignments(), eZContentObject\storeNodeModified(), eZPersistentObject\storeObject(), eZURLAliasML\storePath(), eZRSSEditFunction\storeRSSExport(), storeRSSImport(), eZContentObjectTrashNode\storeToTrash(), eZContentClassAttribute\storeVersioned(), eZContentClass\storeVersioned(), eZContentStructureTreeOperator\subTree(), eZCollaborationGroup\subTree(), eZContentObjectTreeNode\subTreeByNodeID(), eZContentObjectTreeNode\subTreeCountByNodeID(), eZContentObjectTreeNode\subTreeMultiPaths(), eZContentObjectTreeNode\subtreeSoleNodeCount(), eZContentOperationCollection\swapNode(), eZSiteInstaller\swapNodes(), eZPersistentObject\swapRow(), eZURLAliasML\translate(), eZContentObjectAttribute\translateTo(), eZContentObjectVersion\translationList(), eZContentObjectTrashNode\trashList(), eZOrder\unArchiveOrder(), eZContentObjectTreeNode\unhideSubTree(), unlockObject(), eZContentObjectVersion\unpublish(), eZContentObjectVersion\unserialize(), eZContentObject\unserialize(), eZContentFunctions\updateAndPublishObject(), eZContentObjectTreeNode\updateAndStoreModified(), eZMultiPriceData\updateAutoprices(), eZISBN10To13Converter\updateClassAttributeToISBN13(), eZISBN10To13Converter\updateContentISBNNumber(), eZUser\updateLastVisit(), eZContentObjectTreeNode\updateMainNodeID(), eZContentBrowseRecent\updateNodeID(), eZContentObjectTreeNode\updateNodeVisibility(), eZPersistentObject\updateObjectList(), eZSearchEngine\updateObjectsSection(), eZBasket\updatePrices(), eZContentOperationCollection\updatePriority(), eZContentOperationCollection\updateSectionID(), eZURL\url(), eZURL\urlByMD5(), eZURL\urlByURL(), eZPreferences\value(), eZPreferences\values(), verifyDataInternal(), and ezpSessionHandlerDB\write().

static eZDB::setErrorHandling (   $errorHandling)
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
int$errorHandlingPossible values are:pm
Exceptions
RuntimeExceptionthrown when an invalid error handling is given private
Since
4.5

Member Data Documentation

eZDB::$errorHandling = self::ERROR_HANDLING_STANDARD
staticprotected

Referenced by setErrorHandling().

const eZDB::ERROR_HANDLING_EXCEPTIONS = 2
const eZDB::ERROR_HANDLING_STANDARD = 1

Error handling mode.

Referenced by eZMySQLiDB\query(), eZMySQLDB\query(), and eZDBInterface\setErrorHandling().


The documentation for this class was generated from the following file: