Method |
Description |
|
__construct ( string $code, string $type = WPDKResultType::STATUS, string $message = '', mixed $data = '' ) : WPDKResult |
Create an instance of WPDKError class |
|
display ( boolean $echo = true, WPDKWatchDog $log = null ) : string | void |
Display or return a formatted output for WP_Error object. For each error in WP_Error object a formatted
output is done with code error and error data. |
|
getVarDump ( mixed $content ) : string |
Return the var_dump of mixed input |
|
isError ( mixed $thing ) : boolean |
Looks at the object and if a WPDKError class. Does not check to see if the parent is also WPDKError or a
WPDKResult, so can't inherit both the classes and still use this function. |
|
isStatus ( mixed $thing ) : boolean |
Looks at the object and if a WPDKStatus class. Does not check to see if the parent is also WPDKStatus or a
WPDKResult, so can't inherit both the classes and still use this function. |
|
isWarning ( mixed $thing ) : boolean |
Looks at the object and if a WPDKWarning class. Does not check to see if the parent is also WPDKWarning or a
WPDKResult, so can't inherit both the classes and still use this function. |
|