[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/error-handler/ErrorRenderer/ -> HtmlErrorRenderer.php (summary)

(no description)

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

Defines 1 class

HtmlErrorRenderer:: (21 methods):
  __construct()
  render()
  getBody()
  getStylesheet()
  isDebug()
  getAndCleanOutputBuffer()
  renderException()
  formatArgs()
  formatArgsAsText()
  escape()
  abbrClass()
  getFileRelative()
  getFileLink()
  formatFile()
  fileExcerpt()
  fixCodeMarkup()
  formatFileFromText()
  formatLogMessage()
  addElementToGhost()
  include()
  setTemplate()


Class: HtmlErrorRenderer  - X-Ref


__construct($debug = false, string $charset = null, $fileLinkFormat = null, string $projectDir = null, $outputBuffer = '', LoggerInterface $logger = null)   X-Ref

param: bool|callable                 $debug          The debugging mode as a boolean or a callable that should return it
param: string|FileLinkFormatter|null $fileLinkFormat
param: bool|callable                 $outputBuffer   The output buffer as a string or a callable that should return it

render(\Throwable $exception)   X-Ref
{@inheritdoc}


getBody(FlattenException $exception)   X-Ref
Gets the HTML content associated with the given exception.


getStylesheet()   X-Ref
Gets the stylesheet associated with the given exception.


isDebug(RequestStack $requestStack, bool $debug)   X-Ref
No description

getAndCleanOutputBuffer(RequestStack $requestStack)   X-Ref
No description

renderException(FlattenException $exception, string $debugTemplate = 'views/exception_full.html.php')   X-Ref
No description

formatArgs(array $args)   X-Ref
Formats an array as a string.


formatArgsAsText(array $args)   X-Ref
No description

escape(string $string)   X-Ref
No description

abbrClass(string $class)   X-Ref
No description

getFileRelative(string $file)   X-Ref
No description

getFileLink(string $file, int $line)   X-Ref
Returns the link for a given file/line pair.

return: string|false

formatFile(string $file, int $line, string $text = null)   X-Ref
Formats a file path.

param: string $file An absolute file path
param: int    $line The line number
param: string $text Use this text for the link rather than the file path

fileExcerpt(string $file, int $line, int $srcContext = 3)   X-Ref
Returns an excerpt of a code file around the given line number.

param: string $file       A file path
param: int    $line       The selected line number
param: int    $srcContext The number of displayed lines around or -1 for the whole file

fixCodeMarkup(string $line)   X-Ref
No description

formatFileFromText(string $text)   X-Ref
No description

formatLogMessage(string $message, array $context)   X-Ref
No description

addElementToGhost()   X-Ref
No description

include(string $name, array $context = [])   X-Ref
No description

setTemplate(string $template)   X-Ref
Allows overriding the default non-debug template.

param: string $template path to the custom template file to render



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