|
eZ Publish
[4.0]
|
Conditional debug output. More...
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="") |
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 68 of file ezdebugsetting.php.
| static eZDebugSetting::addTimingPoint | ( | $ | conditionName, |
| $ | label = "" |
||
| ) | [static] |
Adds the timing point if the condition $conditionName is enabled.
Definition at line 163 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 107 of file ezdebugsetting.php.
Referenced by addTimingPoint(), writeDebug(), writeError(), writeNotice(), and writeWarning().
| eZDebugSetting::eZDebugSetting | ( | ) |
Constructor
Definition at line 73 of file ezdebugsetting.php.
| static eZDebugSetting::isConditionTrue | ( | $ | conditionName, |
| $ | messageType | ||
| ) | [static] |
Definition at line 81 of file ezdebugsetting.php.
Referenced by addTimingPoint(), writeDebug(), writeError(), writeNotice(), and writeWarning().
| static eZDebugSetting::setDebugINI | ( | $ | ini | ) | [static] |
Sets the INI object
Definition at line 174 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 152 of file ezdebugsetting.php.
Referenced by eZSimplifiedXMLInputParser\appendLineParagraph(), eZSearch\buildSearchArray(), eZTemplateTreeCache\cachedTree(), eZContentObject\canCreateClassList(), eZContentObjectTreeNode\canCreateClassList(), eZContentClass\canInstantiateClassList(), eZApproveType\checkApproveCollaboration(), eZSSLZone\checkModuleView(), eZSSLZone\checkNodePath(), eZSSLZone\clearCache(), eZContentCacheManager\clearObjectViewCache(), eZContentObject\copy(), eZContentObject\copyVersion(), eZNotificationEventType\create(), eZNotificationEvent\create(), eZUser\createHash(), eZFSFileHandler\delete(), eZDBFileHandler\delete(), eZFSFileHandler\deleteLocal(), eZDBFileHandler\deleteLocal(), eZApproveType\execute(), eZContentCache\exists(), eZFSFileHandler\exists(), eZDBFileHandler\exists(), eZDBFileHandler\eZDBFileHandler(), eZFSFileHandler\eZFSFileHandler(), eZPostgreSQLDB\eZPostgreSQLDB(), eZURLWildcardTranslateWithCache(), eZFSFileHandler\fetch(), eZDBFileHandler\fetch(), eZFSFileHandler\fetchContents(), eZDBFileHandler\fetchContents(), eZWorkflow\fetchEventIndexed(), eZCollaborationItem\fetchListTool(), eZUserType\fetchObjectAttributeHTTPInput(), eZFSFileHandler\fetchUnique(), eZDBFileHandler\fetchUnique(), eZFSFileHandler\fileCopy(), eZDBFileHandler\fileCopy(), eZFSFileHandler\fileDelete(), eZDBFileHandler\fileDelete(), eZFSFileHandler\fileDeleteByDirList(), eZDBFileHandler\fileDeleteByDirList(), eZFSFileHandler\fileDeleteByRegex(), eZDBFileHandler\fileDeleteByRegex(), eZFSFileHandler\fileDeleteByWildcard(), eZDBFileHandler\fileDeleteByWildcard(), eZFSFileHandler\fileDeleteLocal(), eZDBFileHandler\fileDeleteLocal(), eZFSFileHandler\fileExists(), eZDBFileHandler\fileExists(), eZFSFileHandler\fileFetch(), eZDBFileHandler\fileFetch(), eZFSFileHandler\fileFetchContents(), eZDBFileHandler\fileFetchContents(), eZFSFileHandler\fileLinkCopy(), eZDBFileHandler\fileLinkCopy(), eZFSFileHandler\fileMove(), eZDBFileHandler\fileMove(), eZDBFileHandler\fileStore(), eZFSFileHandler\fileStore(), eZDBFileHandler\fileStoreContents(), eZFSFileHandler\fileStoreContents(), eZSearch\getEngine(), eZDBFileHandler\getFileList(), eZContentObjectTreeNode\getLimitationList(), eZSubTreeHandler\handle(), eZCollaborationNotificationHandler\handle(), eZGeneralDigestHandler\handle(), eZTemplateCompiler\hasCompiledTemplate(), eZWeb\init(), eZPublishType\initializeEvent(), eZCurrentTimeType\initializeEvent(), eZCollaborationEventType\initializeEvent(), eZNotificationEvent\initializeEventType(), eZSimplifiedXMLInput\inputXML(), eZSSLZone\isKeepModeView(), eZPolicy\limitationList(), eZLDAPUser\loginUser(), eZTextFileUser\loginUser(), eZUser\loginUser(), eZFSFileHandler\move(), eZDBFileHandler\move(), eZFSFileHandler\mtime(), eZDBFileHandler\mtime(), eZFSFileHandler\name(), eZDBFileHandler\name(), eZUserType\objectAttributeContent(), eZFSFileHandler\passthrough(), eZDBFileHandler\passthrough(), eZXMLInputParser\process(), eZDBFileHandler\processCache(), eZFSFileHandler\processCache(), eZXMLInputParser\processNewElements(), eZXMLInputParser\processSubtree(), eZContentObject\relatedContentObjectCount(), eZContentObject\relatedContentObjectList(), eZContentCache\restore(), eZWorkflowProcess\run(), eZSubTreeHandler\sendMessage(), eZWebDAVContentServer\setCurrentSite(), eZNotificationSchedule\setDateForItem(), eZURLWildcard\setupMatchCallbacks(), eZFSFileHandler\size(), eZDBFileHandler\size(), eZFSFileHandler\stat(), eZDBFileHandler\stat(), eZDBFileHandler\storeCache(), eZDBFileHandler\storeContents(), eZFSFileHandler\storeContents(), eZCollaborationGroup\subTree(), eZSSLZone\switchIfNeeded(), eZDBSchemaInterface\transformData(), eZDBSchemaInterface\transformSchema(), eZURLWildcard\translate(), and eZSimplifiedXMLInput\validateInput().
| static eZDebugSetting::writeError | ( | $ | conditionName, |
| $ | string, | ||
| $ | label = "" |
||
| ) | [static] |
Writes a debug error if the condition $conditionName is enabled.
Definition at line 141 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 119 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 130 of file ezdebugsetting.php.
Referenced by eZContentObjectTreeNode\createClassFilteringSQLString(), and eZContentObjectTreeNode\subTreeCountByNodeID().