CodeHelper
class CodeHelper extends Helper
CodeHelper.
Methods
__construct(string $fileLinkFormat, string $rootDir, string $charset)
Constructor.
string
formatArgsAsText(array $args)
Formats an array as a string.
abbrClass($class)
No description
abbrMethod($method)
No description
string
formatArgs(array $args)
Formats an array as a string.
string
fileExcerpt(string $file, int $line)
Returns an excerpt of a code file around the given line number.
string
formatFile(string $file, int $line, string $text = null)
Formats a file path.
string
getFileLink(string $file, int $line)
Returns the link for a given file/line pair.
formatFileFromText($text)
No description
string
getName()
Returns the canonical name of this helper.
Details
in Helper at line line 31
setCharset(string $charset)
Sets the default charset.
in Helper at line line 41
string
getCharset()
Gets the default charset.
at line line 34
__construct(string $fileLinkFormat, string $rootDir, string $charset)
Constructor.
at line line 48
string
formatArgsAsText(array $args)
Formats an array as a string.
at line line 53
abbrClass($class)
at line line 61
abbrMethod($method)
at line line 82
string
formatArgs(array $args)
Formats an array as a string.
at line line 118
string
fileExcerpt(string $file, int $line)
Returns an excerpt of a code file around the given line number.
at line line 155
string
formatFile(string $file, int $line, string $text = null)
Formats a file path.
at line line 186
string
getFileLink(string $file, int $line)
Returns the link for a given file/line pair.
at line line 195
formatFileFromText($text)
at line line 205
string
getName()
Returns the canonical name of this helper.