[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/maximebf/debugbar/src/DebugBar/DataCollector/ -> DataCollector.php (summary)

Abstract class for data collectors

File Size: 234 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 18 functions

  setDefaultDataFormatter()
  getDefaultDataFormatter()
  setDataFormatter()
  getDataFormatter()
  getXdebugLink()
  setDefaultVarDumper()
  getDefaultVarDumper()
  setVarDumper()
  getVarDumper()
  formatVar()
  formatDuration()
  formatBytes()
  getXdebugLinkTemplate()
  setXdebugLinkTemplate()
  getXdebugShouldUseAjax()
  getXdebugReplacements()
  setXdebugReplacements()
  setXdebugReplacement()

Functions
Functions that are not part of a class:

setDefaultDataFormatter(DataFormatterInterface $formater)   X-Ref
Sets the default data formater instance used by all collectors subclassing this class

param: DataFormatterInterface $formater

getDefaultDataFormatter()   X-Ref
Returns the default data formater

return: DataFormatterInterface

setDataFormatter(DataFormatterInterface $formater)   X-Ref
Sets the data formater instance used by this collector

param: DataFormatterInterface $formater
return: $this

getDataFormatter()   X-Ref

return: DataFormatterInterface

getXdebugLink($file, $line = 1)   X-Ref
Get an Xdebug Link to a file

param: string $file
param: int    $line
return: array {

setDefaultVarDumper(DebugBarVarDumper $varDumper)   X-Ref
Sets the default variable dumper used by all collectors subclassing this class

param: DebugBarVarDumper $varDumper

getDefaultVarDumper()   X-Ref
Returns the default variable dumper

return: DebugBarVarDumper

setVarDumper(DebugBarVarDumper $varDumper)   X-Ref
Sets the variable dumper instance used by this collector

param: DebugBarVarDumper $varDumper
return: $this

getVarDumper()   X-Ref
Gets the variable dumper instance used by this collector; note that collectors using this
instance need to be sure to return the static assets provided by the variable dumper.

return: DebugBarVarDumper

formatVar($var)   X-Ref


formatDuration($seconds)   X-Ref


formatBytes($size, $precision = 2)   X-Ref


getXdebugLinkTemplate()   X-Ref

return: string

setXdebugLinkTemplate($xdebugLinkTemplate, $shouldUseAjax = false)   X-Ref

param: string $xdebugLinkTemplate
param: bool $shouldUseAjax

getXdebugShouldUseAjax()   X-Ref

return: bool

getXdebugReplacements()   X-Ref
returns an array of filename-replacements

this is useful f.e. when using vagrant or remote servers,
where the path of the file is different between server and
development environment

return: array key-value-pairs of replacements, key = path on server, value = replacement

setXdebugReplacements($xdebugReplacements)   X-Ref

param: array $xdebugReplacements

setXdebugReplacement($serverPath, $replacement)   X-Ref
No description



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer