[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/vendor/symfony/twig-bridge/Extension/ -> CodeExtension.php (summary)

(no description)

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

Defines 1 class

CodeExtension:: (13 methods):
  __construct()
  getFilters()
  abbrClass()
  abbrMethod()
  formatArgs()
  formatArgsAsText()
  fileExcerpt()
  formatFile()
  getFileLink()
  formatFileFromText()
  formatLogMessage()
  getName()
  fixCodeMarkup()


Class: CodeExtension  - X-Ref

Twig extension relate to PHP code and used by the profiler and the default exception templates.

__construct($fileLinkFormat, $rootDir, $charset)   X-Ref

param: string|FileLinkFormatter $fileLinkFormat The format for links to source files
param: string                   $rootDir        The project root directory
param: string                   $charset        The charset

getFilters()   X-Ref
{@inheritdoc}


abbrClass($class)   X-Ref
No description

abbrMethod($method)   X-Ref
No description

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

return: string
param: array $args The argument array

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

return: string
param: array $args The argument array

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

return: string An HTML string
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

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

return: string
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

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

return: string|false A link or false
param: string $file An absolute file path
param: int    $line The line number

formatFileFromText($text)   X-Ref
No description

formatLogMessage($message, array $context)   X-Ref


getName()   X-Ref
{@inheritdoc}


fixCodeMarkup($line)   X-Ref
No description



Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1