class CodeHelper extends Helper
CodeHelper.
Methods
|
setCharset(string $charset)
Sets the default charset. |
from Helper | |
| string |
getCharset()
Gets the default charset. |
from Helper |
|
__construct(string $fileLinkFormat, string $rootDir, string $charset)
Constructor. |
||
| string |
formatArgsAsText(array $args)
Formats an array as a string. |
|
| abbrClass($class) | ||
| abbrMethod($method) | ||
| 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, integer $line, string $text = null)
Formats a file path. |
|
| string |
getFileLink(string $file, integer $line)
Returns the link for a given file/line pair. |
|
| formatFileFromText($text) | ||
| string |
getName()
Returns the canonical name of this helper. |
Details
in Helper at line 35
public
setCharset(string $charset)
Sets the default charset.
in Helper at line 47
public string
getCharset()
Gets the default charset.
at line 38
public
__construct(string $fileLinkFormat, string $rootDir, string $charset)
Constructor.
at line 52
public string
formatArgsAsText(array $args)
Formats an array as a string.
at line 57
public
abbrClass($class)
at line 65
public
abbrMethod($method)
at line 86
public string
formatArgs(array $args)
Formats an array as a string.
at line 122
public string
fileExcerpt(string $file, int $line)
Returns an excerpt of a code file around the given line number.
at line 157
public string
formatFile(string $file, integer $line, string $text = null)
Formats a file path.
at line 185
public string
getFileLink(string $file, integer $line)
Returns the link for a given file/line pair.
at line 194
public
formatFileFromText($text)
at line 208
public string
getName()
Returns the canonical name of this helper.