eZ Publish  [4.2]
eZDebugSetting Class Reference

Conditional debug output. More...

List of all members.

Public Member Functions

 eZDebugSetting ()

Static Public Member Functions

static addTimingPoint ($conditionName, $label="")
static changeLabel ($conditionName, $label)
static isConditionTrue ($conditionName, $messageType)
static setDebugINI ($ini)
static writeDebug ($conditionName, $string, $label="")
static writeError ($conditionName, $string, $label="")
static writeNotice ($conditionName, $string, $label="")
static writeWarning ($conditionName, $string, $label="")

Detailed Description

Conditional debug output.

This works as a wrapper for the eZDebug class by checking some conditions defined in site.ini before writing the message. The condition must be true for the message to be written.

It will check the debug.ini file and first see if conditions are enabled globally by reading DebugSettings/ConditionDebug. If true if will then see if the condition exists in the GeneralCondition group, if so it will use it for condition check. If it doesn't exists generally it will check it specifically according to the message type for instance ErrorCondition, DebugCondition etc.

Example of debug.ini:

[DebugSettings]
ConditionDebug=enabled

[GeneralCondition]
my-flag=enabled
other-flag=disabled

[ErrorCondition]
bad-name-flag=disabled

Definition at line 65 of file ezdebugsetting.php.


Member Function Documentation

static eZDebugSetting::addTimingPoint ( conditionName,
label = "" 
) [static]

Adds the timing point if the condition $conditionName is enabled.

Definition at line 160 of file ezdebugsetting.php.

static eZDebugSetting::changeLabel ( conditionName,
label 
) [static]

Creates a new debug label from the original and the condition and returns it.

Definition at line 104 of file ezdebugsetting.php.

Referenced by addTimingPoint(), writeDebug(), writeError(), writeNotice(), and writeWarning().

eZDebugSetting::eZDebugSetting ( )

Constructor

Definition at line 70 of file ezdebugsetting.php.

static eZDebugSetting::isConditionTrue ( conditionName,
messageType 
) [static]
Returns:
true if the condition $conditionName is considered enabled.

Definition at line 78 of file ezdebugsetting.php.

Referenced by addTimingPoint(), writeDebug(), writeError(), writeNotice(), and writeWarning().

static eZDebugSetting::setDebugINI ( ini) [static]

Sets the INI object

Definition at line 171 of file ezdebugsetting.php.

Referenced by eZScript\initialize().

static eZDebugSetting::writeDebug ( conditionName,
string,
label = "" 
) [static]

Writes a debug message if the condition $conditionName is enabled.

Definition at line 149 of file ezdebugsetting.php.

Referenced by eZDFSFileHandler\__construct(), eZDFSFileHandlerMySQLBackend\_checkCacheGenerationTimeout(), eZDBFileHandlerMysqlBackend\_checkCacheGenerationTimeout(), eZDBFileHandlerMysqlBackend\_endCacheGeneration(), eZFS2FileHandler\_expire(), eZUser\_loginUser(), eZFS2FileHandler\_recursiveExpire(), eZDFSFileHandlerMySQLBackend\_startCacheGeneration(), eZDBFileHandlerMysqlBackend\_startCacheGeneration(), eZDBFileHandlerMysqlBackend\_verifyExclusiveLock(), eZFS2FileHandler\abortCacheGeneration(), eZDFSFileHandler\abortCacheGeneration(), eZSimplifiedXMLInputParser\appendLineParagraph(), eZSearch\buildSearchArray(), eZTemplateTreeCache\cachedTree(), eZContentObject\canCreateClassList(), eZContentObjectTreeNode\canCreateClassList(), eZContentClass\canInstantiateClassList(), eZApproveType\checkApproveCollaboration(), eZFS2FileHandler\checkCacheGenerationTimeout(), eZDFSFileHandler\checkCacheGenerationTimeout(), eZSSLZone\checkModuleView(), eZSSLZone\checkNodePath(), eZClusterFileHandler\cleanupEmptyDirectories(), eZSSLZone\clearCache(), eZContentCacheManager\clearObjectViewCache(), eZContentObject\copy(), eZContentObject\copyVersion(), eZNotificationEventType\create(), eZNotificationEvent\create(), eZUser\createHash(), eZFS2FileHandler\delete(), eZFSFileHandler\delete(), eZDBFileHandler\delete(), eZDFSFileHandler\delete(), eZFS2FileHandler\deleteLocal(), eZFSFileHandler\deleteLocal(), eZDBFileHandler\deleteLocal(), eZDFSFileHandler\deleteLocal(), eZFS2FileHandler\endCacheGeneration(), eZDFSFileHandler\endCacheGeneration(), eZApproveType\execute(), eZContentCache\exists(), eZFSFileHandler\exists(), eZDBFileHandler\exists(), eZDFSFileHandler\exists(), eZDBFileHandler\eZDBFileHandler(), eZFSFileHandler\eZFSFileHandler(), eZPostgreSQLDB\eZPostgreSQLDB(), eZFSFileHandler\fetch(), eZDBFileHandler\fetch(), eZFSFileHandler\fetchContents(), eZDFSFileHandler\fetchContents(), eZDBFileHandler\fetchContents(), eZWorkflow\fetchEventIndexed(), eZCollaborationItem\fetchListTool(), eZUserType\fetchObjectAttributeHTTPInput(), eZFSFileHandler\fetchUnique(), eZDFSFileHandler\fetchUnique(), eZDBFileHandler\fetchUnique(), eZFSFileHandler\fileCopy(), eZDBFileHandler\fileCopy(), eZDFSFileHandler\fileCopy(), eZFS2FileHandler\fileDelete(), eZFSFileHandler\fileDelete(), eZDBFileHandler\fileDelete(), eZDFSFileHandler\fileDelete(), eZFS2FileHandler\fileDeleteByDirList(), eZFSFileHandler\fileDeleteByDirList(), eZDBFileHandler\fileDeleteByDirList(), eZDFSFileHandler\fileDeleteByDirList(), eZFSFileHandler\fileDeleteByRegex(), eZDBFileHandler\fileDeleteByRegex(), eZDFSFileHandler\fileDeleteByRegex(), eZFSFileHandler\fileDeleteByWildcard(), eZDBFileHandler\fileDeleteByWildcard(), eZDFSFileHandler\fileDeleteByWildcard(), eZFSFileHandler\fileDeleteLocal(), eZDBFileHandler\fileDeleteLocal(), eZDFSFileHandler\fileDeleteLocal(), eZFSFileHandler\fileExists(), eZDBFileHandler\fileExists(), eZDFSFileHandler\fileExists(), eZFSFileHandler\fileFetch(), eZDBFileHandler\fileFetch(), eZDFSFileHandler\fileFetch(), eZFSFileHandler\fileFetchContents(), eZDFSFileHandler\fileFetchContents(), eZDBFileHandler\fileFetchContents(), eZFSFileHandler\fileLinkCopy(), eZDBFileHandler\fileLinkCopy(), eZDFSFileHandler\fileLinkCopy(), eZFSFileHandler\fileMove(), eZDBFileHandler\fileMove(), eZDFSFileHandler\fileMove(), eZDBFileHandler\fileStore(), eZDFSFileHandler\fileStore(), eZFSFileHandler\fileStore(), eZDBFileHandler\fileStoreContents(), eZDFSFileHandler\fileStoreContents(), eZFSFileHandler\fileStoreContents(), eZSearch\getEngine(), eZDBFileHandler\getFileList(), eZDFSFileHandler\getFileList(), eZContentObjectTreeNode\getLimitationList(), eZSubTreeHandler\handle(), eZCollaborationNotificationHandler\handle(), eZGeneralDigestHandler\handle(), eZTemplateCompiler\hasCompiledTemplate(), eZWeb\init(), eZCurrentTimeType\initializeEvent(), eZPublishType\initializeEvent(), eZCollaborationEventType\initializeEvent(), eZNotificationEvent\initializeEventType(), eZSimplifiedXMLInput\inputXML(), eZSSLZone\isKeepModeView(), eZPolicy\limitationList(), eZLDAPUser\loginUser(), eZTextFileUser\loginUser(), eZFSFileHandler\move(), eZDBFileHandler\move(), eZDFSFileHandler\move(), eZFSFileHandler\mtime(), eZDBFileHandler\mtime(), eZDFSFileHandler\mtime(), eZFSFileHandler\name(), eZDBFileHandler\name(), eZDFSFileHandler\name(), eZUserType\objectAttributeContent(), eZFSFileHandler\passthrough(), eZDBFileHandler\passthrough(), eZDFSFileHandler\passthrough(), eZXMLInputParser\process(), eZFS2FileHandler\processCache(), eZDBFileHandler\processCache(), eZFSFileHandler\processCache(), eZDFSFileHandler\processCache(), eZXMLInputParser\processNewElements(), eZXMLInputParser\processSubtree(), eZDFSFileHandler\purge(), eZContentObject\relatedContentObjectCount(), eZContentObject\relatedContentObjectList(), eZContentCache\restore(), eZWorkflowProcess\run(), eZSubTreeHandler\sendMessage(), eZWebDAVContentServer\setCurrentSite(), eZWebDAVContentBackend\setCurrentSite(), eZNotificationSchedule\setDateForItem(), eZFSFileHandler\size(), eZDBFileHandler\size(), eZDFSFileHandler\size(), eZFS2FileHandler\startCacheGeneration(), eZDFSFileHandler\startCacheGeneration(), eZFSFileHandler\stat(), eZDBFileHandler\stat(), eZDFSFileHandler\stat(), eZFS2FileHandler\storeCache(), eZDBFileHandler\storeCache(), eZDFSFileHandler\storeCache(), eZDBFileHandler\storeContents(), eZDFSFileHandler\storeContents(), eZFSFileHandler\storeContents(), eZCollaborationGroup\subTree(), eZSSLZone\switchIfNeeded(), eZDBSchemaInterface\transformData(), eZDBSchemaInterface\transformSchema(), eZURLWildcard\translate(), eZURLWildcard\translateWithCache(), and eZSimplifiedXMLInput\validateInput().

static eZDebugSetting::writeError ( conditionName,
string,
label = "" 
) [static]

Writes a debug error if the condition $conditionName is enabled.

Definition at line 138 of file ezdebugsetting.php.

Referenced by eZGZIPShellCompressionHandler\doSeek(), eZWaitUntilDateType\execute(), and eZApproveType\execute().

static eZDebugSetting::writeNotice ( conditionName,
string,
label = "" 
) [static]

Writes a debug notice if the condition $conditionName is enabled.

Definition at line 116 of file ezdebugsetting.php.

Referenced by eZTSTranslator\loadTranslationFile(), eZPackage\storeDOM(), and eZPackage\storeString().

static eZDebugSetting::writeWarning ( conditionName,
string,
label = "" 
) [static]

Writes a debug warning if the condition $conditionName is enabled.

Definition at line 127 of file ezdebugsetting.php.

Referenced by eZContentObjectTreeNode\createClassFilteringSQLString(), and eZContentObjectTreeNode\subTreeCountByNodeID().


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