Error
final class Error (View source)
Methods
No description
Process backtrace to avoid path disclosures, objects and so on
Toggles location hiding
sets PhpMyAdmin\Error\Error::$_backtrace
sets PhpMyAdmin\Error\Error::$_line
sets PhpMyAdmin\Error\Error::$_file
returns unique PhpMyAdmin\Error\Error::$hash, if not exists it will be created
returns PhpMyAdmin\Error\Error::$_backtrace for first $count frames pass $count = -1 to get full backtrace.
returns PhpMyAdmin\Error\Error::$file
returns PhpMyAdmin\Error\Error::$line
returns type of error
No description
No description
No description
No description
No description
returns title prepared for HTML Title-Tag
returns title for error
Get HTML backtrace
return formatted backtrace field
Formats function call in a backtrace
Get a single function argument
Gets the error as string of HTML
whether this error is a user error
No description
return short relative path to phpMyAdmin basedir
Returns only message string without image & other HTML.
Details
__construct(int $errorNumber, string $errstr, string $errfile, int $errline)
No description
static array
processBacktrace(array $backtrace)
Process backtrace to avoid path disclosures, objects and so on
void
setHideLocation(bool $hide)
Toggles location hiding
void
setBacktrace(array $backtrace)
sets PhpMyAdmin\Error\Error::$_backtrace
We don't store full arguments to avoid wakeup or memory problems.
void
setLine(int $line)
sets PhpMyAdmin\Error\Error::$_line
void
setFile(string $file)
sets PhpMyAdmin\Error\Error::$_file
string
getHash()
returns unique PhpMyAdmin\Error\Error::$hash, if not exists it will be created
array
getBacktrace(int $count = -1)
returns PhpMyAdmin\Error\Error::$_backtrace for first $count frames pass $count = -1 to get full backtrace.
The same can be done by not passing $count at all.
string
getFile()
returns PhpMyAdmin\Error\Error::$file
int
getLine()
returns PhpMyAdmin\Error\Error::$line
string
getType()
returns type of error
string
getContext()
No description
void
setBBCode(bool $useBBCode)
No description
bool
isDisplayed()
No description
void
markDisplayed()
No description
string
getMessage()
No description
string
getHtmlTitle()
returns title prepared for HTML Title-Tag
string
getTitle()
returns title for error
string
getBacktraceDisplay()
Get HTML backtrace
static string
formatBacktrace(array $backtrace)
return formatted backtrace field
static string
getFunctionCall(array $step)
Formats function call in a backtrace
static string
getArg(mixed $arg, string $function)
Get a single function argument
if $function is one of include/require the $arg is converted to a relative path
string
getDisplay()
Gets the error as string of HTML
bool
isUserError()
whether this error is a user error
int
getErrorNumber()
No description
static string
relPath(string $path)
return short relative path to phpMyAdmin basedir
prevent path disclosure in error message, and make users feel safe to submit error reports
string
getOnlyMessage()
Returns only message string without image & other HTML.