eZ Publish  [4.0]
eZDebug Class Reference

Advanced debug/log system. More...

List of all members.

Public Member Functions

 __construct ()
 errorHandler ($errno, $errstr, $errfile, $errline)
 isDebugAllowed ()
 isGlobalLogFileEnabled ()
 isLogFileEnabled ($type)
 logFiles ()
 messageName ($messageType)
 messageTypes ()
 reset ()
 setIsGlobalLogFileEnabled ($enabled)
 setIsLogFileEnabled ($type, $enabled)
 setLogOnly ($enabled)
 setMessageOutput ($output)
 setStoreLog ($store)

Static Public Member Functions

static accumulatorStart ($key, $inGroup=false, $name=false, $recursive=false)
static accumulatorStop ($key, $recursive=false)
static addTimingPoint ($description="")
static alwaysLogMessage ($level)
static appendBottomReport ($reportName, $reportContent)
static appendTopReport ($reportName, $reportContent)
static checkDebugByUser ()
static createAccumulator ($key, $inGroup=false, $name=false)
static createAccumulatorGroup ($key, $name=false)
static instance ()
static isDebugEnabled ()
static isIPInNet ($ipaddress, $network, $mask=24)
static isLogOnlyEnabled ()
static maxLogrotateFiles ()
static maxLogSize ()
static printBottomReportsList ()
static printReport ($newWindow=false, $as_html=true, $returnReport=false, $allowedDebugLevels=false, $useAccumulators=true, $useTiming=true, $useIncludedFiles=false)
static printTopReportsList ()
static rotateLog ($fileName)
static setHandleType ($type)
static setLogFileEnabled ($enabled, $types=false)
static setLogrotateFiles ($files)
static setMaxLogSize ($size)
static setScriptStart ($time=false)
static setUseExternalCSS ($use)
static showMessage ($type)
static showTypes ($types=false)
static updateSettings ($settings)
static writeDebug ($string, $label="", $backgroundClass="")
static writeError ($string, $label="", $backgroundClass="")
static writeNotice ($string, $label="", $backgroundClass="")
static writeStrict ($string, $label="", $backgroundClass="")
static writeWarning ($string, $label="", $backgroundClass="")

Public Attributes

 $bottomReportsList
 A list of debug reports that appears at the bottom of debug output.
 $DebugStrings = array()
 String array containing the debug information.
 $GlobalLogFileEnabled
 Controls whether logfiles are used at all.
 $HandleType
 Determines what to do with php errors, ignore, fetch or output.
 $LogFileEnabled
 A map with message types and whether they should do file logging.
 $LogFiles
 An array of logfiles used by the debug class with each key being the debug level.
 $MessageOutput
 Determines how messages are output (screen/log)
 $MessageTypes
 A list of message types.
 $OutputFormat
 An array of the outputformats for the different debug levels.
 $OverrideList
 A list of override directories.
 $PercentAccuracy = 4
 How many places behing . should be displayed when showing percentages.
 $ScriptStart
 The time when the script was started.
 $ShowTypes
 Determines which debug messages should be shown.
 $TimeAccumulatorList = array()
 Array wich contains time accumulators.
 $TimePoints = array()
 Array which contains the time points.
 $TimingAccuracy = 4
 How many places behing . should be displayed when showing times.
 $TmpTimePoints
 Array which contains the temporary time points.
 $topReportsList
 A list of debug reports that appears at the top of debug output.
 $UseCSS
 Whether to use external CSS or output own CSS. True if external is to be used.
const HANDLE_FROM_PHP = 1
const HANDLE_NONE = 0
const HANDLE_TO_PHP = 2
const LEVEL_DEBUG = 5
const LEVEL_ERROR = 3
const LEVEL_NOTICE = 1
const LEVEL_STRICT = 6
const LEVEL_TIMING_POINT = 4
const LEVEL_WARNING = 2
const MAX_LOGFILE_SIZE = 204800
const MAX_LOGROTATE_FILES = 3
const OUTPUT_MESSAGE_SCREEN = 1
const OUTPUT_MESSAGE_STORE = 2
const SHOW_ALL = 63
const SHOW_DEBUG = 16
const SHOW_ERROR = 4
const SHOW_NOTICE = 1
const SHOW_STRICT = 32
const SHOW_TIMING_POINT = 8
const SHOW_WARNING = 2
const XDEBUG_SIGNATURE = '--XDEBUG--'

Private Member Functions

 printReportInternal ($as_html=true, $returnReport=true, $allowedDebugLevels=false, $useAccumulators=true, $useTiming=true, $useIncludedFiles=false)
 write ($string, $verbosityLevel=self::LEVEL_NOTICE, $label="", $backgroundClass="", $alwaysLog=false)
 writeFile (&$logFileData, &$string, $verbosityLevel, $alwaysLog=false)

Static Private Member Functions

static dumpVariable ($var)
static isAllowedByCurrentIP ($allowedIpList)
static timeToFloat ($mtime)

Detailed Description

Advanced debug/log system.

The eZ debug library is used to handle debug information. It can display information on screen and/or write it to log files.

You can enable on-screen debug information for specific IP addresses.

Timing points can be placed in the code to time the different sections of code.

Each debug message can be turned on/off by using the showTypes() function.

PHP error messages can also be shown using setHandleType().

  require_once( "lib/ezutils/classes/ezdebug.php" );

  // write a temporary debug message
  eZDebug::writeDebug( "Test" );

  // write a notice
  eZDebug::writeNotice( "Image found" );

  // write a warning
  eZDebug::writeWarning( "Image not found, using default" );

  // write an error
  eZDebug::writeError( "Object not found, bailing.." );

  // add a timing points
  eZDebug::addTimingPoint( "Module Found" );

  //.... code

  eZDebug::addTimingPoint( "Module loading" );

  // print the results on screen.
  eZDebug::printReport();

Definition at line 79 of file ezdebug.php.


Constructor & Destructor Documentation

eZDebug::__construct ( )

Creates a new debug object.

Definition at line 111 of file ezdebug.php.


Member Function Documentation

static eZDebug::accumulatorStart ( key,
inGroup = false,
name = false,
recursive = false 
) [static]

Starts an time count for the accumulator $key. You can also specify a name which will be displayed.

Definition at line 1288 of file ezdebug.php.

Referenced by eZDBFileHandlerMysqlBackend\_query(), eZDBFileHandlerMysqlBackend\_selectOne(), eZImageAliasHandler\aliasList(), eZMySQLiDB\arrayQuery(), eZMySQLDB\arrayQuery(), eZContentCacheManager\clearContentCache(), eZContentCacheManager\clearContentCacheIfNeeded(), eZContentCacheManager\clearObjectViewCache(), eZContentObjectAttribute\contentClassAttribute(), eZContentObjectAttribute\contentClassAttributeCanTranslate(), eZContentObjectAttribute\contentClassAttributeIdentifier(), eZContentObjectAttribute\contentClassAttributeIsInformationCollector(), eZContentObjectAttribute\contentClassAttributeIsRequired(), eZContentObjectAttribute\contentClassAttributeName(), eZTextCodec\convertCodepage(), eZTextCodec\convertCodepageMapper(), eZTextCodec\convertCodepageRev(), eZTextCodec\convertCodepageToUnicode(), eZTextCodec\convertMBString(), eZTextCodec\convertString(), eZTextCodec\convertUnicodeToCodepage(), eZTextCodec\convertUnicodeToUTF8(), eZTextCodec\convertUTF8ToUnicode(), eZFSFileHandler\delete(), eZTemplate\fetch(), eZFSFileHandler\fetchContents(), eZFSFileHandler\fileCopy(), eZFSFileHandler\fileDelete(), eZFSFileHandler\fileDeleteByDirList(), eZFSFileHandler\fileDeleteByRegex(), eZFSFileHandler\fileDeleteByWildcard(), eZFSFileHandler\fileExists(), eZFSFileHandler\fileFetchContents(), eZFSFileHandler\fileLinkCopy(), eZFSFileHandler\fileMove(), eZFSFileHandler\fileStoreContents(), eZContentCacheManager\generateObjectViewCache(), eZTemplateDesignResource\handleResource(), eZTemplateFileResource\handleResourceData(), eZTSTranslator\initialize(), eZTemplate\loadAndRegisterFunctions(), eZINI\loadCache(), eZFSFileHandler\loadMetaData(), eZTSTranslator\loadTranslationFile(), eZFSFileHandler\move(), eZTemplateMultiPassParser\parse(), eZINI\parseFile(), eZFSFileHandler\passthrough(), eZTemplateDebugFunction\process(), eZPostgreSQLDB\query(), eZMySQLiDB\query(), eZMySQLDB\query(), and eZFSFileHandler\storeContents().

static eZDebug::accumulatorStop ( key,
recursive = false 
) [static]

Stops a previous time count and adds the total time to the accumulator $key.

Definition at line 1315 of file ezdebug.php.

Referenced by eZDBFileHandlerMysqlBackend\_query(), eZDBFileHandlerMysqlBackend\_selectOne(), eZImageAliasHandler\aliasList(), eZMySQLiDB\arrayQuery(), eZMySQLDB\arrayQuery(), eZContentCacheManager\clearContentCache(), eZContentCacheManager\clearContentCacheIfNeeded(), eZContentCacheManager\clearObjectViewCache(), eZContentObjectAttribute\contentClassAttribute(), eZContentObjectAttribute\contentClassAttributeCanTranslate(), eZContentObjectAttribute\contentClassAttributeIdentifier(), eZContentObjectAttribute\contentClassAttributeIsInformationCollector(), eZContentObjectAttribute\contentClassAttributeIsRequired(), eZContentObjectAttribute\contentClassAttributeName(), eZTextCodec\convertCodepage(), eZTextCodec\convertCodepageMapper(), eZTextCodec\convertCodepageRev(), eZTextCodec\convertCodepageToUnicode(), eZTextCodec\convertMBString(), eZTextCodec\convertString(), eZTextCodec\convertUnicodeToCodepage(), eZTextCodec\convertUnicodeToUTF8(), eZTextCodec\convertUTF8ToUnicode(), eZFSFileHandler\delete(), eZTemplate\fetch(), eZFSFileHandler\fetchContents(), eZFSFileHandler\fileCopy(), eZFSFileHandler\fileDelete(), eZFSFileHandler\fileDeleteByDirList(), eZFSFileHandler\fileDeleteByRegex(), eZFSFileHandler\fileDeleteByWildcard(), eZFSFileHandler\fileExists(), eZFSFileHandler\fileFetchContents(), eZFSFileHandler\fileLinkCopy(), eZFSFileHandler\fileMove(), eZFSFileHandler\fileStoreContents(), eZContentCacheManager\generateObjectViewCache(), eZTemplateDesignResource\handleResource(), eZTemplateFileResource\handleResourceData(), eZTSTranslator\initialize(), eZTemplate\loadAndRegisterFunctions(), eZINI\loadCache(), eZFSFileHandler\loadMetaData(), eZTSTranslator\loadTranslationFile(), eZFSFileHandler\move(), eZTemplateMultiPassParser\parse(), eZINI\parseFile(), eZFSFileHandler\passthrough(), eZTemplateDebugFunction\process(), eZPostgreSQLDB\query(), eZMySQLiDB\query(), eZMySQLDB\query(), and eZFSFileHandler\storeContents().

static eZDebug::addTimingPoint ( description = "") [static]
static eZDebug::alwaysLogMessage ( level) [static]
Returns:
true if the debug level $level should always log to file.

Definition at line 243 of file ezdebug.php.

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

static eZDebug::appendBottomReport ( reportName,
reportContent 
) [static]

Appends report to 'bottom' reports list.

Definition at line 1806 of file ezdebug.php.

static eZDebug::appendTopReport ( reportName,
reportContent 
) [static]

Appends report to 'top' reports list.

Definition at line 1784 of file ezdebug.php.

static eZDebug::checkDebugByUser ( ) [static]

Final checking for debug by user id. Checks if we should enable debug.

Returns false if debug-by-user is not active, was already checked before or if there is no current user. Returns true otherwise.

Definition at line 1106 of file ezdebug.php.

static eZDebug::createAccumulator ( key,
inGroup = false,
name = false 
) [static]

Creates a new accumulator entry if one does not already exist and initializes with default data. If $name is not supplied name is taken from $key. If $inGroup is supplied it will place the accumulator under the specified group.

Definition at line 1260 of file ezdebug.php.

static eZDebug::createAccumulatorGroup ( key,
name = false 
) [static]

Creates an accumulator group with key $key and group name $name. If $name is not supplied name is taken from $key.

Definition at line 1241 of file ezdebug.php.

Referenced by eZMySQLDB\eZMySQLDB(), eZMySQLiDB\eZMySQLiDB(), eZTemplate\eZTemplate(), and eZTSTranslator\initialize().

static eZDebug::dumpVariable ( var) [static, private]

Dumps the variables contents using the var_dump function

Definition at line 610 of file ezdebug.php.

Referenced by writeDebug(), writeError(), writeNotice(), writeStrict(), eZPaymentLogger\writeString(), eZPaymentLogger\writeTimedString(), and writeWarning().

eZDebug::errorHandler ( errno,
errstr,
errfile,
errline 
)

Handles PHP errors, creates notice, warning and error messages for the various PHP error types.

Definition at line 327 of file ezdebug.php.

static eZDebug::isAllowedByCurrentIP ( allowedIpList) [static, private]

If debugging is allowed for the current IP address.

Definition at line 1836 of file ezdebug.php.

Referenced by updateSettings().

eZDebug::isDebugAllowed ( )

If debugging is allowed, given the limitations of the DebugByIP and DebugByUser settings.

Definition at line 1828 of file ezdebug.php.

static eZDebug::isDebugEnabled ( ) [static]
Returns:
true if debug should be enabled.
Note:
Will return false until the real settings has been updated with updateSettings()

Definition at line 1003 of file ezdebug.php.

Referenced by accumulatorStart(), accumulatorStop(), addTimingPoint(), createAccumulator(), createAccumulatorGroup(), errorHandler(), printReport(), eZScript\shutdown(), write(), writeDebug(), writeError(), writeFile(), writeNotice(), writeStrict(), and writeWarning().

eZDebug::isGlobalLogFileEnabled ( )
Returns:
true if the message type $type has logging to file enabled.
See also:
isLogFileEnabled, setIsGlobalLogFileEnabled

Definition at line 950 of file ezdebug.php.

Referenced by isLogFileEnabled().

static eZDebug::isIPInNet ( ipaddress,
network,
mask = 24 
) [static]

Determine if an ipaddress is in a network. E.G. 120.120.120.120 in 120.120.0.0/24.

Returns:
true or false.

Definition at line 1033 of file ezdebug.php.

Referenced by eZUser\isUserIPInList().

eZDebug::isLogFileEnabled ( type)
Returns:
true if the message type $type has logging to file enabled.
See also:
isGlobalLogFileEnabled, setIsLogFileEnabled

Definition at line 939 of file ezdebug.php.

Referenced by write(), and writeFile().

static eZDebug::isLogOnlyEnabled ( ) [static]
Returns:
true if there should only be logging of debug strings to file.
Note:
Will return false until the real settings has been updated with updateSettings()

Definition at line 1018 of file ezdebug.php.

Referenced by write().

eZDebug::logFiles ( )

Returns an associative array of all the log files used by this class where each key is the debug level (self::LEVEL_NOTICE, self::LEVEL_WARNING or self::LEVEL_ERROR or self::LEVEL_DEBUG).

Definition at line 993 of file ezdebug.php.

Referenced by write().

static eZDebug::maxLogrotateFiles ( ) [static]
Returns:
the maxium number of logrotate files to keep.

Definition at line 792 of file ezdebug.php.

Referenced by rotateLog().

static eZDebug::maxLogSize ( ) [static]
Returns:
the maxium size for a log file in bytes.

Definition at line 770 of file ezdebug.php.

Referenced by writeFile().

eZDebug::messageName ( messageType)
Returns:
the name of the message type.

Definition at line 212 of file ezdebug.php.

eZDebug::messageTypes ( )
Returns:
an array with the available message types.

Definition at line 984 of file ezdebug.php.

static eZDebug::printBottomReportsList ( ) [static]

Prints all 'bottom' reports

Definition at line 1815 of file ezdebug.php.

Referenced by printReportInternal().

static eZDebug::printReport ( newWindow = false,
as_html = true,
returnReport = false,
allowedDebugLevels = false,
useAccumulators = true,
useTiming = true,
useIncludedFiles = false 
) [static]

Prints the debug report

Definition at line 1146 of file ezdebug.php.

Referenced by eZFatalError(), eZDBInterface\reportError(), and eZScript\shutdown().

eZDebug::printReportInternal ( as_html = true,
returnReport = true,
allowedDebugLevels = false,
useAccumulators = true,
useTiming = true,
useIncludedFiles = false 
) [private]

Prints a full debug report with notice, warnings, errors and a timing report.

Definition at line 1350 of file ezdebug.php.

static eZDebug::printTopReportsList ( ) [static]

Prints all 'top' reports

Definition at line 1793 of file ezdebug.php.

Referenced by printReportInternal().

eZDebug::reset ( )

Definition at line 195 of file ezdebug.php.

static eZDebug::rotateLog ( fileName) [static]

Rotates logfiles so the current logfile is backed up, old rotate logfiles are rotated once more and those that exceed maxLogrotateFiles() will be removed. Rotated files will get the extension .1, .2 etc.

Definition at line 817 of file ezdebug.php.

Referenced by writeFile().

static eZDebug::setHandleType ( type) [static]

Determines how PHP errors are handled. If $type is self::HANDLE_TO_PHP all error messages is sent to PHP using trigger_error(), if $type is self::HANDLE_FROM_PHP all error messages from PHP is fetched using a custom error handler and output as a usual eZDebug message. If $type is self::HANDLE_NONE there is no error exchange between PHP and eZDebug.

Definition at line 267 of file ezdebug.php.

Referenced by eZFatalError(), eZScript\initialize(), eZDBInterface\reportError(), eZScript\startup(), updateSettings(), and writeFile().

eZDebug::setIsGlobalLogFileEnabled ( enabled)

Sets whether logfiles are enabled or disabled globally. Sets the value to $enabled.

See also:
isLogFileEnabled, isGlobalLogFileEnabled

Definition at line 968 of file ezdebug.php.

eZDebug::setIsLogFileEnabled ( type,
enabled 
)

Sets whether the logfile $type is enabled or disabled to $enabled.

See also:
isLogFileEnabled

Definition at line 959 of file ezdebug.php.

static eZDebug::setLogFileEnabled ( enabled,
types = false 
) [static]

Enables or disables logging to file for a given message type. If $types is not supplied it will do the operation for all types.

Definition at line 918 of file ezdebug.php.

Referenced by writeFile().

eZDebug::setLogOnly ( enabled)

Sets whether debug output should be logged only

Definition at line 976 of file ezdebug.php.

static eZDebug::setLogrotateFiles ( files) [static]

Sets the maxium number of logrotate files to keep to $files.

Definition at line 805 of file ezdebug.php.

static eZDebug::setMaxLogSize ( size) [static]

Sets the maxium size for a log file to $size.

Definition at line 783 of file ezdebug.php.

eZDebug::setMessageOutput ( output)

Determines the way messages are output, the $output parameter is self::OUTPUT_MESSAGE_SCREEN and self::OUTPUT_MESSAGE_STORE ored together.

Definition at line 644 of file ezdebug.php.

static eZDebug::setScriptStart ( time = false) [static]

Sets the time of the start of the script ot $time. If $time is not supplied it gets the current microtime( true ). This is used to calculate total execution time and percentages.

Definition at line 1229 of file ezdebug.php.

eZDebug::setStoreLog ( store)

Definition at line 651 of file ezdebug.php.

static eZDebug::setUseExternalCSS ( use) [static]

Enables/disables the use of external CSS. If false a <style> tag is output before the debug list. Default is to use internal css.

Definition at line 635 of file ezdebug.php.

static eZDebug::showMessage ( type) [static]

Returns true if the message type $type can be shown.

Definition at line 234 of file ezdebug.php.

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

static eZDebug::showTypes ( types = false) [static]

Sets types to be shown to $types and returns the old show types. If $types is not supplied the current value is returned and no change is done. $types is one or more of self::SHOW_NOTICE, self::SHOW_WARNING, self::SHOW_ERROR, self::SHOW_TIMING_POINT or'ed together.

Definition at line 310 of file ezdebug.php.

static eZDebug::timeToFloat ( mtime) [static, private]

Returns the microtime as a float value. $mtime must be in microtime() format.

Definition at line 1216 of file ezdebug.php.

static eZDebug::updateSettings ( settings) [static]

Updates the settings for debug handling with the settings array $settings. The array must contain the following keys.

  • debug-enabled - boolean which controls debug handling
  • debug-by-ip - boolean which controls IP controlled debugging
  • debug-ip-list - array of IPs which gets debug
  • debug-by-user - boolean which controls userID controlled debugging
  • debug-user-list - array of UserIDs which gets debug

Definition at line 1054 of file ezdebug.php.

Referenced by eZScript\updateDebugSettings().

eZDebug::write ( string,
verbosityLevel = self::LEVEL_NOTICE,
label = "",
backgroundClass = "",
alwaysLog = false 
) [private]

Writes a debug log message.

Definition at line 697 of file ezdebug.php.

static eZDebug::writeError ( string,
label = "",
backgroundClass = "" 
) [static]

Writes a debug error.

The global variable 'eZDebugError' will be set to true if the notice is added.

Parameters:
$labelThis label will be associated with the notice, e.g. to say where the notice came from.

Definition at line 526 of file ezdebug.php.

Referenced by eZDB\__construct(), eZDBFileHandlerMysqlBackend\_copyInner(), eZDBFileHandlerMysqlBackend\_deleteByDirListInner(), eZDBFileHandlerMysqlBackend\_die(), eZTARArchiveHandler\_error(), eZDBFileHandlerMysqlBackend\_error(), eZDBFileHandlerMysqlBackend\_fetch(), eZDBFileHandlerMysqlBackend\_fetchContents(), eZDBFileHandlerMysqlBackend\_handleErrorType(), eZDBFileHandlerMysqlBackend\_passThrough(), eZDBFileHandlerMysqlBackend\_protect(), eZDBFileHandlerMysqlBackend\_rename(), eZPHPCreator\_restoreCall(), eZDBFileHandlerMysqlBackend\_selectOne(), eZDBFileHandlerMysqlBackend\_store(), eZModule\actionParameter(), eZURLAliasML\actionToUrl(), eZContentObject\addContentObjectRelation(), eZContentLanguage\addLanguage(), eZCollaborationItemMessageLink\addMessage(), Cpdf\addPngFromFile(), eZImageInterface\allocateColor(), eZPolicyLimitation\allValuesAsArrayWithNames(), eZCodeTemplate\apply(), eZKeyword\attribute(), eZWaitUntilDate\attribute(), eZXMLText\attribute(), eZContentObjectTranslation\attribute(), eZNotificationEventHandler\attribute(), eZBinaryFileHandler\attribute(), eZEnum\attribute(), eZXMLInputHandler\attribute(), eZMatrixDefinition\attribute(), eZRangeOption\attribute(), eZCollaborationItemHandler\attribute(), eZNotificationEventType\attribute(), eZSysInfo\attribute(), eZContentBrowse\attribute(), eZXMLOutputHandler\attribute(), eZWizardBase\attribute(), eZDiffContent\attribute(), eZDate\attribute(), eZContentUpload\attribute(), eZImageInterface\attribute(), eZAuthor\attribute(), eZTemplateSectionIterator\attribute(), eZOption\attribute(), eZPackageInstallationHandler\attribute(), eZPackageCreationHandler\attribute(), eZTime\attribute(), eZDateTime\attribute(), eZHTTPFile\attribute(), eZDBInterface\attribute(), eZWorkflowType\attribute(), eZDataType\attribute(), eZPackage\attribute(), eZMultiOption\attribute(), eZURI\attribute(), eZMultiOption2\attribute(), eZLocale\attribute(), eZModule\attribute(), eZMatrix\attribute(), eZSys\attribute(), eZPersistentObject\attribute(), eZContentBrowse\browse(), eZPDFTable\callImage(), eZOrder\canModifyStatus(), eZImageHandler\changeFilePermissions(), eZSSLZone\checkModuleView(), eZSSLZone\checkNodeID(), eZSSLZone\checkObject(), eZDB\checkTransactionCounter(), eZDefaultVATHandler\chooseVatType(), eZContentObject\cleanupAllInternalDrafts(), eZContentObject\cleanupInternalDrafts(), eZFileHandler\close(), eZImageInterface\color(), eZDBInterface\commit(), eZPersistentObject\conditionTextByRow(), eZMySQLDB\connect(), eZMySQLiDB\connect(), eZDataType\contentActionList(), eZImageShellHandler\convert(), eZImageGDHandler\convert(), eZImageManager\convert(), eZFileHandler\copy(), eZDir\copy(), eZNodeAssignment\create(), eZImageManager\createAliasFromINI(), eZContentFunctions\createAndPublishObject(), eZContentObjectTreeNode\createAttributeFilterSQLStrings(), eZWizardBaseClassLoader\createClass(), eZImageTextLayer\createForText(), eZImageShellHandler\createFromINI(), eZImageGDHandler\createFromINI(), eZImageManager\createImageAlias(), eZObjectRelationListType\createNewObject(), eZImageVariation\createOriginal(), eZWorkflowType\createType(), eZINIAddonPackageHandler\currentID(), eZEnumType\customClassAttributeHTTPAction(), eZMatrixType\customClassAttributeHTTPAction(), eZObjectRelationType\customClassAttributeHTTPAction(), eZObjectRelationListType\customClassAttributeHTTPAction(), eZMatrixType\customObjectAttributeHTTPAction(), eZOptionType\customObjectAttributeHTTPAction(), eZMultiPriceType\customObjectAttributeHTTPAction(), eZAuthorType\customObjectAttributeHTTPAction(), eZMultiOptionType\customObjectAttributeHTTPAction(), eZMultiOption2Type\customObjectAttributeHTTPAction(), eZObjectRelationType\customObjectAttributeHTTPAction(), eZObjectRelationListType\customObjectAttributeHTTPAction(), eZWaitUntilDateType\customWorkflowEventHTTPAction(), eZPostgreSQLDB\databaseServerVersion(), eZCodeMapper\decodeCommand(), eZTemplateCacheBlock\decodeNodeID(), eZSOAPResponse\decodeStream(), eZFSFileHandler\delete(), eZXML\domTree(), eZGZIPZLIBCompressionHandler\doSeek(), eZXMLInputType\editorName(), eZSys\environmentVariable(), eZFileHandler\eof(), eZCodeMapper\error(), eZTemplate\error(), errorHandler(), eZOperationHandler\execute(), eZModuleOperationInfo\execute(), eZFunctionHandler\execute(), eZModuleFunctionInfo\execute(), eZFunctionHandler\executeAlias(), eZModuleOperationInfo\executeBody(), eZCodeMapper\executeCommandCode(), eZTemplateCompiler\executeCompilation(), eZCodeMapper\expandInheritance(), eZDBFileHandler\eZDBFileHandler(), eZLocale\eZLocale(), eZMBStringMapper\eZMBStringMapper(), eZPostgreSQLDB\eZPostgreSQLDB(), eZTextCodec\eZTextCodec(), eZHTTPFile\fetch(), eZContentObject\fetch(), eZContentObject\fetchByNodeID(), eZXMLText\fetchHandler(), eZUser\fetchLoggedInList(), eZObjectRelationListType\fetchObjectAttributeHTTPInput(), eZMediaType\fetchObjectAttributeHTTPInput(), eZBinaryFileType\fetchObjectAttributeHTTPInput(), eZContentObjectPackageHandler\fetchObjectFromFile(), eZURLAliasML\fetchPathByActionList(), eZWorkflowType\fetchRegisteredTypes(), eZPgsqlSchema\fetchTableIndexes(), eZTemplateExecuteOperator\fetchTransform(), eZFSFileHandler\fileDelete(), eZFSFileHandler\fileDeleteByRegex(), eZContentUpload\findHandler(), eZContentObjectTreeNode\findMainNode(), eZFileHandler\flush(), eZMutex\fp(), eZPgsqlSchema\generateAddIndexSql(), eZCodeMapper\generateCharsetMappingTable(), eZCodeMapper\generateCommandCode(), eZContentObjectPackageHandler\generateFetchAliasArray(), eZStaticCache\generateNodeListCache(), eZURLAliasQuery\generateSQL(), eZFile\getContents(), eZDefaultVATHandler\getProductCategory(), eZSSLZone\getSSLZones(), eZVATManager\getUserCountry(), eZVATManager\getUserCountryAttributeName(), eZLDAPUser\getUserGroupsTree(), eZLDAPUser\goAndPublishGroups(), eZINI\group(), eZCharTransform\groupCommands(), eZCollaborationItemHandler\handleCollaborationEvent(), eZTSTranslator\handleContextNode(), eZTSTranslator\handleMessageNode(), eZSubTreeHandler\handlePublishEvent(), eZUser\hasAccessToView(), eZPackage\import(), eZContentObjectEditHandler\initialize(), eZImageAliasHandler\initializeFromFile(), eZDBSchemaInterface\insertSchema(), eZDBPackageHandler\install(), eZPackage\installItem(), eZContentObjectPackageHandler\installOverrides(), eZContentObjectPackageHandler\installSuspendedNodeAssignment(), eZContentObjectPackageHandler\installSuspendedObjectRelations(), eZClusterFileHandler\instance(), eZDbSchema\instance(), eZNotificationTransport\instance(), eZXMLInputType\instance(), eZDB\instance(), eZBinaryFileHandler\instance(), eZPostgreSQLDB\lastSerialID(), eZFileHandler\link(), eZCodePageMapper\load(), eZImageInterface\load(), eZNotificationEventType\loadAndRegisterType(), eZWorkflowType\loadAndRegisterType(), eZDataType\loadAndRegisterType(), eZShippingManager\loadBasketInfoHandler(), eZINI\loadCache(), eZModuleFunctionInfo\loadDefinition(), eZModuleOperationInfo\loadDefinition(), eZNotificationEventFilter\loadHandler(), eZDBSchemaInterface\loadSchemaTransformationRules(), eZShippingManager\loadShippingHandler(), eZTSTranslator\loadTranslationFile(), eZVATManager\loadVATHandler(), eZLDAPUser\loginUser(), eZPackage\md5sum(), eZWordToImageOperator\modify(), eZPDF\modify(), eZTopMenuOperator\modify(), eZKernelOperator\modify(), eZTemplateImageOperator\modify(), eZContentObjectTreeNodeOperations\move(), eZFileHandler\move(), eZContentObjectAssignmentHandler\nodeID(), eZIniSettingType\onPublish(), eZFileHandler\open(), eZPHPCreator\open(), eZXML\parseAttributes(), eZINI\parseFile(), eZCLI\parseOptionString(), eZFileHandler\passtrough(), eZContentObjectTreeNode\pathWithNames(), eZSOAPRequest\payload(), eZModuleFunctionInfo\preExecute(), eZNotificationEventFilter\process(), eZGIFImageAnalyzer\process(), eZTemplateDoFunction\process(), eZTemplateWhileFunction\process(), eZTemplateIfFunction\process(), eZDBFileHandler\processCache(), eZFSFileHandler\processCache(), eZURLAliasFilter\processFilters(), eZTemplate\processNode(), eZTemplate\processURI(), eZLDAPUser\publishUpdateUser(), eZPostgreSQLDB\query(), eZMySQLiDB\query(), eZMySQLDB\query(), eZDbSchema\read(), eZFileHandler\read(), eZModule\redirect(), eZModule\redirectionURI(), eZPaymentGatewayType\registerGateway(), eZTranslatorGroup\registerHandler(), eZWorkflowType\registerType(), eZPostgreSQLDB\relationCount(), eZMySQLiDB\relationCount(), eZMySQLDB\relationCount(), eZPostgreSQLDB\relationList(), eZMySQLiDB\relationList(), eZMySQLDB\relationList(), eZImageAliasHandler\removeAliases(), eZPostgreSQLDB\removeRelation(), eZMySQLiDB\removeRelation(), eZMySQLDB\removeRelation(), eZObjectRelationListType\removeRelationObject(), eZPathElement\removeThis(), eZContentClassAttribute\removeThis(), eZUser\removeUser(), eZContentObjectVersion\removeVersions(), eZSiteInstaller\reportError(), eZDBInterface\reportError(), eZImageVariation\requestVariation(), eZContentBrowse\result(), eZURLAliasML\reverseTranslate(), eZFileHandler\rewind(), eZDBInterface\rollback(), eZPackageInstallationHandler\rootDOMNode(), eZWorkflowProcess\run(), eZModule\run(), eZModule\runHooks(), eZINI\save(), eZINI\saveCache(), eZFileHandler\seek(), eZMailNotificationTransport\send(), eZMailTransport\send(), eZSMTPTransport\sendMail(), eZFileTransport\sendMail(), eZSendmailTransport\sendMail(), eZDateTimeType\serializeContentClassAttribute(), eZDataType\serializeContentObjectAttribute(), eZObjectRelationListType\serializeContentObjectAttribute(), eZSys\serverVariable(), eZPersistentObject\setAttribute(), eZURLAliasML\setLangMaskAlwaysAvailable(), eZCodePageMapper\setSubstituteCharacter(), eZURLWildcard\setupMatchCallbacks(), eZVATManager\setUserCountry(), eZPreferences\setValue(), eZOrder\statusModificationList(), eZHTTPFile\store(), eZPathElement\store(), eZImageInterface\store(), eZPHPCreator\store(), eZFSFileHandler\storeCache(), eZDBFileHandler\storeCache(), eZPackage\storeDOM(), eZImageAliasHandler\storeDOMTree(), eZURLAliasML\storePath(), eZPackage\storeString(), eZContentObjectTreeNode\subTreeCountByNodeID(), eZContentObjectTreeNode\subTreeGroupByDateField(), eZFileHandler\symlink(), eZFileHandler\tell(), eZExpiryHandler\timestamp(), eZURLWildcard\translate(), eZPackage\uninstallItem(), eZFileHandler\unlink(), eZContentObjectTreeNode\unserialize(), eZDateTimeType\unserializeContentClassAttribute(), eZEnumType\unserializeContentObjectAttribute(), eZBinaryFileType\unserializeContentObjectAttribute(), eZDataType\unserializeContentObjectAttribute(), eZINI\variable(), eZINI\variableMulti(), eZFileHandler\write(), and writeFile().

eZDebug::writeFile ( &$  logFileData,
&$  string,
verbosityLevel,
alwaysLog = false 
) [private]

Writes the log message $string to the file $fileName.

Definition at line 854 of file ezdebug.php.

Referenced by write().

static eZDebug::writeNotice ( string,
label = "",
backgroundClass = "" 
) [static]

Writes a debug notice.

The global variable 'eZDebugNotice' will be set to true if the notice is added.

Parameters:
$labelThis label will be associated with the notice, e.g. to say where the notice came from.
$backgroundClassA string defining the class to use in the HTML debug output.

Definition at line 440 of file ezdebug.php.

Referenced by eZDBFileHandlerMysqlBackend\_report(), eZINI\appendOverrideDir(), eZLocale\countryFile(), eZContentObjectTreeNode\createAttributeFilterSQLStrings(), eZWizardBaseClassLoader\createClass(), eZPDF\createPDF(), eZContentUpload\detectLocations(), eZPackageHandler\errorChoosenAction(), errorHandler(), eZDiff\eZDiff(), eZMediaType\fetchObjectAttributeHTTPInput(), eZDefaultVATHandler\getProductCategory(), eZVATManager\getVAT(), eZTemplateFileResource\handleResourceData(), eZINIAddonPackageHandler\iniDOMTree(), eZSys\init(), eZIniSettingType\initializeObjectAttribute(), eZContentClassPackageHandler\install(), eZLocale\languageFile(), eZINI\loadCache(), eZLocale\localeFile(), eZPDF\modify(), eZTreeMenuOperator\modify(), eZIniSettingType\onPublish(), eZINI\parseFile(), eZTextInputParser\parseText(), eZINI\prependOverrideDir(), eZLDAPUser\publishUpdateUser(), eZDBInterface\reportQuery(), eZTemplate\resourceFor(), eZINI\saveCache(), eZObjectRelationType\serializeContentObjectAttribute(), eZDiff\setDiffEngineType(), eZWizardBase\setMetaData(), eZVATManager\setUserCountry(), eZMutex\steal(), eZStaticCache\storeCache(), eZContentObjectTreeNode\subTreeByNodeID(), eZContentObjectTreeNode\subTreeCountByNodeID(), eZContentClassPackageHandler\uninstall(), eZContentObjectPackageHandler\uninstall(), eZContentObject\unserialize(), eZBinaryFileType\unserializeContentObjectAttribute(), eZMediaType\unserializeContentObjectAttribute(), eZIniSettingType\validateClassAttributeHTTPInput(), eZFloatType\validateClassAttributeHTTPInput(), eZIntegerType\validateClassAttributeHTTPInput(), and eZContentObject\versionLanguageName().

static eZDebug::writeStrict ( string,
label = "",
backgroundClass = "" 
) [static]

Writes a strict debug message.

The global variable 'eZDebugStrict' will be set to true if the notice is added.

Parameters:
$labelThis label will be associated with the strict message, e.g. to say where the message came from.
$backgroundClassA string defining the class to use in the HTML debug output.

Definition at line 395 of file ezdebug.php.

Referenced by errorHandler().

static eZDebug::writeWarning ( string,
label = "",
backgroundClass = "" 
) [static]

Writes a debug warning.

The global variable 'eZDebugWarning' will be set to true if the notice is added.

Parameters:
$labelThis label will be associated with the notice, e.g. to say where the notice came from.

Definition at line 483 of file ezdebug.php.

Referenced by eZFSFileHandler\_exclusiveLock(), eZImageManager\_exclusiveLock(), eZTARArchiveHandler\_warning(), accumulatorStop(), eZExtension\activateExtensions(), eZModule\activeModuleRepositories(), eZContentObject\addContentObjectRelation(), eZContentLanguage\addLanguage(), eZImageObject\appendLayer(), eZImageInterface\attribute(), eZModuleManager\aviableModules(), eZXMLInputParser\callInputHandler(), eZSimplifiedXMLEditOutput\callOutputHandler(), eZXMLInputParser\callOutputHandler(), eZXMLOutputHandler\callTagRenderHandler(), eZMySQLiDB\checkCharsetPriv(), eZMySQLDB\checkCharsetPriv(), eZURLAliasML\choosePrioritizedRow(), eZSiteInstaller\classByIdentifier(), eZContentCacheManager\clearViewCache(), eZMySQLDB\connect(), eZMySQLiDB\connect(), eZImageShellHandler\convert(), eZImageGDHandler\convert(), eZImageManager\convert(), eZImageAnalyzer\create(), eZImageInterface\createImage(), eZImageManager\createImageAlias(), eZContentObjectTreeNode\createSortingSQLStrings(), eZModule\currentAction(), eZTemplateDesignResource\designSetting(), eZBinaryFileHandler\downloadURL(), eZImageInterface\drawText(), errorHandler(), eZFunctionHandler\executeAlias(), eZFilePasstroughHandler\eZFilePasstroughHandler(), eZImageAliasHandler\eZImageAliasHandler(), eZMySQLDB\eZMySQLDB(), eZMySQLiDB\eZMySQLiDB(), eZPostgreSQLDB\eZPostgreSQLDB(), eZImageManager\factoryFor(), eZContentObjectTreeNode\fetch(), eZContentObjectTreeNode\fetchByCRC(), eZContentObjectTreeNode\fetchByURLPath(), eZInformationCollection\fetchCollectionsList(), eZCollaborationItem\fetchListTool(), eZRSSExport\fetchRSS1_0(), eZRSSExport\fetchRSS2_0(), eZDBFileHandler\fileDeleteByRegex(), eZDBFileHandler\fileDeleteByWildcard(), eZExtension\findExtensionType(), eZModule\findModule(), eZObjectRelationListType\fixRelatedObjectItem(), eZImageObject\flatten(), eZObjectRelationListType\fromString(), eZInformationCollection\getSortArrayFromParam(), eZHTTPTool\getVariable(), eZVATManager\getVAT(), eZLDAPUser\goAndPublishGroups(), eZModule\handleError(), eZSerializedObjectNameList\hasNameInLocale(), eZXHTMLXMLOutput\initHandlerEmbed(), eZXHTMLXMLOutput\initHandlerLink(), eZSiteInstaller\initSettings(), eZSiteInstaller\initSteps(), eZDataType\insertHTTPFile(), eZDataType\insertRegularFile(), eZDataType\insertSimpleString(), eZContentClassPackageHandler\install(), eZSiteInstaller\instance(), eZUserLoginHandler\instance(), eZUser\instance(), eZCollaborationItemHandler\instantiate(), eZPackage\languageInfoFromPackageList(), eZLintSchema\lintCheckSchema(), eZCodePageMapper\load(), eZCodePage\load(), eZDataType\loadAndRegisterType(), eZDBSchemaInterface\loadSchemaTransformationRules(), eZTSTranslator\loadTranslationFile(), eZBinaryFile\metaData(), eZMimeType\mimeTypeFor(), eZXMLOutputHandler\outputTag(), eZSiteInstaller\packageFileItemPath(), eZObjectRelationListType\postUnserializeContentObjectAttribute(), eZHTTPTool\postVariable(), eZImageObject\prependLayer(), eZContentLanguage\prioritizedLanguages(), eZImageInterface\processImage(), eZDataType\productOptionInformation(), eZLDAPUser\publishNewUserGroup(), eZLDAPUser\publishUpdateUser(), eZImageAnalyzer\readAnalyzerSettingsFromINI(), eZImageManager\readImageAliasesFromINI(), eZImageManager\readImageHandlersFromINI(), eZSiteInstaller\removeContentObject(), eZSubtreeCache\renameDir(), eZTranslationCache\restoreCache(), eZTemplateTreeCache\restoreCache(), eZWorkflowProcess\run(), eZProcess\runFile(), eZModule\runHooks(), eZSendmailTransport\sendMail(), eZContentObjectVersion\serialize(), eZXMLInputParser\setAttributes(), eZTemplateTreeCache\setCachedTree(), eZTranslationCache\setContextCache(), eZSerializedObjectNameList\setDefaultLanguageByLocale(), eZTemplateDesignResource\setDesignSetting(), eZSerializedObjectNameList\setNameByLanguageLocale(), eZMultiPrice\setPriceByCurrency(), eZSiteInstaller\setting(), eZSiteInstaller\solutionName(), eZSiteInstaller\solutionVersion(), eZContentObjectTreeNode\sortFieldID(), eZContentObjectTreeNode\sortFieldName(), eZTranslationCache\storeCache(), eZTemplateTreeCache\storeCache(), eZSOAPResponse\stripHTTPHeader(), eZCollaborationGroup\subTree(), eZTemplateCacheBlock\subtreeCacheSubDirForNode(), eZContentObjectTreeNode\subTreeMultiPaths(), eZXMLTextType\transformRemoteLinksToLinks(), eZDBSchemaInterface\transformSchema(), eZContentObjectVersion\unpublish(), eZContentObjectTreeNode\updateURLAlias(), eZCodeMapper\warning(), and eZTemplate\warning().


Member Data Documentation

eZDebug::$bottomReportsList

A list of debug reports that appears at the bottom of debug output.

Definition at line 1923 of file ezdebug.php.

eZDebug::$DebugStrings = array()

String array containing the debug information.

Definition at line 1872 of file ezdebug.php.

eZDebug::$GlobalLogFileEnabled

Controls whether logfiles are used at all.

Definition at line 1914 of file ezdebug.php.

eZDebug::$HandleType

Determines what to do with php errors, ignore, fetch or output.

Definition at line 1887 of file ezdebug.php.

eZDebug::$LogFileEnabled

A map with message types and whether they should do file logging.

Definition at line 1911 of file ezdebug.php.

eZDebug::$LogFiles

An array of logfiles used by the debug class with each key being the debug level.

Definition at line 1893 of file ezdebug.php.

eZDebug::$MessageOutput

Determines how messages are output (screen/log)

Definition at line 1905 of file ezdebug.php.

eZDebug::$MessageTypes

A list of message types.

Definition at line 1908 of file ezdebug.php.

eZDebug::$OutputFormat

An array of the outputformats for the different debug levels.

Definition at line 1890 of file ezdebug.php.

eZDebug::$OverrideList

A list of override directories.

Definition at line 1920 of file ezdebug.php.

eZDebug::$PercentAccuracy = 4

How many places behing . should be displayed when showing percentages.

Definition at line 1899 of file ezdebug.php.

eZDebug::$ScriptStart

The time when the script was started.

Definition at line 1917 of file ezdebug.php.

eZDebug::$ShowTypes

Determines which debug messages should be shown.

Definition at line 1884 of file ezdebug.php.

eZDebug::$TimeAccumulatorList = array()

Array wich contains time accumulators.

Definition at line 1881 of file ezdebug.php.

eZDebug::$TimePoints = array()

Array which contains the time points.

Definition at line 1875 of file ezdebug.php.

eZDebug::$TimingAccuracy = 4

How many places behing . should be displayed when showing times.

Definition at line 1896 of file ezdebug.php.

eZDebug::$TmpTimePoints

Array which contains the temporary time points.

Definition at line 1878 of file ezdebug.php.

eZDebug::$topReportsList

A list of debug reports that appears at the top of debug output.

Definition at line 1926 of file ezdebug.php.

eZDebug::$UseCSS

Whether to use external CSS or output own CSS. True if external is to be used.

Definition at line 1902 of file ezdebug.php.

Definition at line 97 of file ezdebug.php.

Referenced by eZScript\initialize().

Definition at line 96 of file ezdebug.php.

Referenced by __construct(), eZFatalError(), eZDBInterface\reportError(), and setHandleType().

Definition at line 98 of file ezdebug.php.

Referenced by eZScript\startup().

Definition at line 86 of file ezdebug.php.

Referenced by eZScript\getOptions(), and eZScript\updateDebugSettings().

Definition at line 84 of file ezdebug.php.

Referenced by eZDebugSetting\addTimingPoint().

const eZDebug::MAX_LOGFILE_SIZE = 204800

Definition at line 103 of file ezdebug.php.

Referenced by maxLogSize().

Definition at line 104 of file ezdebug.php.

Referenced by maxLogrotateFiles().

Definition at line 100 of file ezdebug.php.

Definition at line 101 of file ezdebug.php.

Referenced by __construct().

const eZDebug::SHOW_ALL = 63

Definition at line 94 of file ezdebug.php.

Referenced by __construct().

const eZDebug::SHOW_DEBUG = 16

Definition at line 92 of file ezdebug.php.

Definition at line 90 of file ezdebug.php.

Definition at line 88 of file ezdebug.php.

Definition at line 93 of file ezdebug.php.

Definition at line 91 of file ezdebug.php.

Definition at line 89 of file ezdebug.php.

const eZDebug::XDEBUG_SIGNATURE = '--XDEBUG--'

Definition at line 106 of file ezdebug.php.

Referenced by dumpVariable().


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