Symfony\Bundle\FrameworkBundle\Templating\Helper\CodeHelper
CodeHelper.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class CodeHelper
extends Helper
{
- // members
- protected $fileLinkFormat;
- protected $rootDir;
- protected $charset;
- // Inherited members from Helper
- protected string $charset;
- // methods
- public void __construct()
- public string formatArgsAsText()
- public void abbrClass()
- public void abbrMethod()
- public string formatArgs()
- public string fileExcerpt()
- public string formatFile()
- public string getFileLink()
- public void formatFileFromText()
- public string getName()
- protected static void fixCodeMarkup()
- // Inherited methods from Helper
- public void setCharset()
- public string getCharset()
Hierarchy
Members
protected
- $charset
- $charset
- $fileLinkFormat
- $rootDir
Methods
protected
public
- __construct() — Constructor.
- abbrClass()
- abbrMethod()
- fileExcerpt() — Returns an excerpt of a code file around the given line number.
- formatArgs() — Formats an array as a string.
- formatArgsAsText() — Formats an array as a string.
- formatFile() — Formats a file path.
- formatFileFromText()
- getFileLink() — Returns the link for a given file/line pair.
- getName() — Returns the canonical name of this helper.
Inherited from Symfony\Component\Templating\Helper\Helper
public
- getCharset() — Gets the default charset.
- setCharset() — Sets the default charset.