Public Member Functions | |
| registerShutdownFunction ($cb) | |
| INSERT BRIEF DESCRIPTION HERE. | |
| setEmail ($email, $onFatal=true, $onError=false, $onWarning=false, $onDebug=false) | |
| INSERT BRIEF DESCRIPTION HERE. | |
Static Public Member Functions | |
| static | clearDebug () |
| Removes any pending debug messages. | |
| static | clearErrors () |
| Removes any pending errors. | |
| static | clearWarnings () |
| Removes any pending warnings. | |
| static | failsafe_show_errors () |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | getAllDebug ($all=false) |
| Retrieve all pending debug messages. | |
| static | getAllErrors ($all=false) |
| Retrieve all pending error messages. | |
| static | getAllWarnings ($all=false) |
| Retrieve all pending warning messages. | |
| static | getLastError ($all=false) |
| Retrieves the last system error. | |
| static | getLastWarning ($all=false) |
| Retrieves the last system warning. | |
| static | initialize () |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | php_error_handler ($errno, $errstr, $errfile, $errline, $errcontext) |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | prm_printMessages () |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | redirectPop ($type) |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | redirectPush ($type, $redir) |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | restoreDebug ($debug) |
| Sets pending debug array to given parameter. | |
| static | restoreErrors ($errors) |
| Sets pending errors array to given parameter. | |
| static | restoreWarnings ($warnings) |
| Sets pending warnings array to given parameter. | |
| static | setDebug ($msg) |
| Displays a debug message. | |
| static | setEnablePHPErrors ($enablePHP) |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | setError ($msg, $forUser=false) |
| Indicates an error has occurred. | |
| static | setUserError ($msg) |
Alias for setError($msg, true). | |
| static | setWarning ($msg) |
| Indicates a warning has occurred. | |
| static | sobj_setDebug ($msg, $ignoreHowMany=1) |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | sobj_setError ($msg, $forUser, $ignoreHowMany=1) |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | sobj_setWarning ($msg, $ignoreHowMany=1) |
| INSERT BRIEF DESCRIPTION HERE. | |
Private Member Functions | |
| __construct () | |
| INSERT BRIEF DESCRIPTION HERE. | |
Static Private Member Functions | |
| static | formatMessage ($typecnt, $bt, $place, $msg, $cls, $id) |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | formatMessageArray ($msg) |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | generateBacktraceHTML ($bt, &$place, $ignoreHowMany) |
| INSERT BRIEF DESCRIPTION HERE. | |
All errors are now reported through this interface. Errors, warnings and debug messages appear in a special part of the Flash slot at the top of the page. The existing system of setting errors on objects derived from SObject is still supported, but those errors will now also show up in the listing in the flash slot. INSERT BRIEF DESCRIPTION HERE INSERT FULL DESCRIPTION HERE
Definition at line 20 of file SErrorManager.php5.
| SErrorManager::__construct | ( | ) | [private] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
Definition at line 51 of file SErrorManager.php5.
| static SErrorManager::clearDebug | ( | ) | [static] |
Removes any pending debug messages.
You can use this as part of debug capturing (see also ~:getAllDebug% and ~:restoreDebug%)
Definition at line 309 of file SErrorManager.php5.
| static SErrorManager::clearErrors | ( | ) | [static] |
Removes any pending errors.
You can use this as part of error capturing (see also ~:getAllErrors% and ~:restoreErrors%)
Definition at line 291 of file SErrorManager.php5.
| static SErrorManager::clearWarnings | ( | ) | [static] |
Removes any pending warnings.
You can use this as part of warning capturing (see also ~:getAllWarnings% and ~:restoreWarnings%)
Definition at line 300 of file SErrorManager.php5.
| static SErrorManager::failsafe_show_errors | ( | ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Definition at line 631 of file SErrorManager.php5.
References SConfig::getOption().
| static SErrorManager::formatMessage | ( | $ | typecnt, | |
| $ | bt, | |||
| $ | place, | |||
| $ | msg, | |||
| $ | cls, | |||
| $ | id | |||
| ) | [static, private] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $typecnt | [TYPE]: DESCRIPTION | |
| $bt | [TYPE]: DESCRIPTION | |
| $place | [TYPE]: DESCRIPTION | |
| $msg | [TYPE]: DESCRIPTION | |
| $cls | [TYPE]: DESCRIPTION | |
| $id | [TYPE]: DESCRIPTION |
Definition at line 800 of file SErrorManager.php5.
| static SErrorManager::formatMessageArray | ( | $ | msg | ) | [static, private] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $msg | [TYPE]: DESCRIPTION |
Definition at line 816 of file SErrorManager.php5.
| static SErrorManager::generateBacktraceHTML | ( | $ | bt, | |
| &$ | place, | |||
| $ | ignoreHowMany | |||
| ) | [static, private] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $bt | [TYPE]: DESCRIPTION | |
| &$place | [TYPE]: DESCRIPTION | |
| $ignoreHowMany | [TYPE]: DESCRIPTION |
Definition at line 746 of file SErrorManager.php5.
| static SErrorManager::getAllDebug | ( | $ | all = false |
) | [static] |
Retrieve all pending debug messages.
| $all | [boolean]: if false, just get the messages in an array, if true, get additional information, which looks like this:
|
Definition at line 364 of file SErrorManager.php5.
| static SErrorManager::getAllErrors | ( | $ | all = false |
) | [static] |
Retrieve all pending error messages.
| $all | [boolean]: if false, just get the messages in an array, if true, get additional information, which looks like this:
|
Definition at line 324 of file SErrorManager.php5.
Referenced by STestReporter::registerErrors().
| static SErrorManager::getAllWarnings | ( | $ | all = false |
) | [static] |
Retrieve all pending warning messages.
| $all | [boolean]: if false, just get the messages in an array, if true, get additional information, which looks like this:
|
Definition at line 344 of file SErrorManager.php5.
Referenced by STestReporter::registerErrors().
| static SErrorManager::getLastError | ( | $ | all = false |
) | [static] |
Retrieves the last system error.
You can use this function to get the last relevant error for the purposes of embedding it in a string for the user
| $all | [boolean]: whether to just return the error string, or all of the information, which is an array with three elements: [0] error message, [1] backtrace, [2] IGNORED |
Definition at line 144 of file SErrorManager.php5.
| static SErrorManager::getLastWarning | ( | $ | all = false |
) | [static] |
Retrieves the last system warning.
You can use this function to get the last relevant warning for the purposes of embedding it in a string for the user
| $all | [boolean]: whether to just return the warning string, or all of the information, which is an array with three elements: [0] warning message, [1] backtrace, [2] IGNORED |
Definition at line 169 of file SErrorManager.php5.
| static SErrorManager::initialize | ( | ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Definition at line 60 of file SErrorManager.php5.
References SConfig::getOption().
| static SErrorManager::php_error_handler | ( | $ | errno, | |
| $ | errstr, | |||
| $ | errfile, | |||
| $ | errline, | |||
| $ | errcontext | |||
| ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $errno | [TYPE]: DESCRIPTION | |
| $errstr | [TYPE]: DESCRIPTION | |
| $errfile | [TYPE]: DESCRIPTION | |
| $errline | [TYPE]: DESCRIPTION | |
| $errcontext | [TYPE]: DESCRIPTION |
Definition at line 598 of file SErrorManager.php5.
References SConfig::getOption(), and SConfig::setOption().
| static SErrorManager::prm_printMessages | ( | ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Definition at line 836 of file SErrorManager.php5.
References SConfig::getOption().
Referenced by PageRender2::renderPrint().
| static SErrorManager::redirectPop | ( | $ | type | ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $type | [TYPE]: DESCRIPTION |
Definition at line 459 of file SErrorManager.php5.
Referenced by TKSnapInteractivateLessonPreview::getParameters(), TKSnapInteractivateInstructorPreview::getParameters(), and TKSDRResourceResultMetadata::layoutMetadata().
| static SErrorManager::redirectPush | ( | $ | type, | |
| $ | redir | |||
| ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $type | [TYPE]: DESCRIPTION | |
| $redir | [TYPE]: DESCRIPTION |
Definition at line 424 of file SErrorManager.php5.
Referenced by TKSnapInteractivateLessonPreview::getParameters(), TKSnapInteractivateInstructorPreview::getParameters(), and TKSDRResourceResultMetadata::layoutMetadata().
| SErrorManager::registerShutdownFunction | ( | $ | cb | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $cb | [TYPE]: DESCRIPTION |
Definition at line 76 of file SErrorManager.php5.
| static SErrorManager::restoreDebug | ( | $ | debug | ) | [static] |
Sets pending debug array to given parameter.
If you don't want your script to fail with errors, you should only pass in a value that was retrieved from ~:getAllDebug% with an argument of 'true'. See documentation for that function for more on the layout of the debug array. Note that the internal format is subject to change, so it may not be safe to rely on any details in your own code.
| $debug | [array]: array of debug information, as described in ~:getAllDebug% |
Definition at line 411 of file SErrorManager.php5.
| static SErrorManager::restoreErrors | ( | $ | errors | ) | [static] |
Sets pending errors array to given parameter.
If you don't want your script to fail with errors, you should only pass in a value that was retrieved from ~:getAllErrors% with an argument of 'true'. See documentation for that function for more on the layout of the errors array. Note that the internal format is subject to change, so it may not be safe to rely on any details in your own code.
| $errors | [array]: array of error information, as described in ~:getAllErrors% |
Definition at line 383 of file SErrorManager.php5.
| static SErrorManager::restoreWarnings | ( | $ | warnings | ) | [static] |
Sets pending warnings array to given parameter.
If you don't want your script to fail with errors, you should only pass in a value that was retrieved from ~:getAllWarnings% with an argument of 'true'. See documentation for that function for more on the layout of the warnings array. Note that the internal format is subject to change, so it may not be safe to rely on any details in your own code.
| $warnings | [array]: array of warning information, as described in ~:getAllWarnings% |
Definition at line 397 of file SErrorManager.php5.
| static SErrorManager::setDebug | ( | $ | msg | ) | [static] |
Displays a debug message.
This debug message will only show up on the dev site
| $msg | [string]: debug message |
Definition at line 267 of file SErrorManager.php5.
Referenced by SQL::doSQL(), SnapCache::dumpCache(), DBI2::query(), and SnapCache::showStats().
| SErrorManager::setEmail | ( | $ | email, | |
| $ | onFatal = true, |
|||
| $ | onError = false, |
|||
| $ | onWarning = false, |
|||
| $ | onDebug = false | |||
| ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| [TYPE]: DESCRIPTION | ||
| $onFatal | [TYPE]: DESCRIPTION | |
| $onError | [TYPE]: DESCRIPTION | |
| $onWarning | [TYPE]: DESCRIPTION | |
| $onDebug | [TYPE]: DESCRIPTION |
Definition at line 125 of file SErrorManager.php5.
| static SErrorManager::setEnablePHPErrors | ( | $ | enablePHP | ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $enablePHP | [TYPE]: DESCRIPTION |
Definition at line 104 of file SErrorManager.php5.
| static SErrorManager::setError | ( | $ | msg, | |
| $ | forUser = false | |||
| ) | [static] |
Indicates an error has occurred.
This error message will only show up on the dev site unless you pass in 'true' as the 2nd parameter, in which case it will also appear in the user flash spot.
| $msg | [string]: error message | |
| $forUser | [boolean]: whether to show message in user flash slot, which is visible regardless of server |
Definition at line 195 of file SErrorManager.php5.
Referenced by SDRService::buildMetadataFormObject().
| static SErrorManager::setUserError | ( | $ | msg | ) | [static] |
Alias for setError($msg, true).
| $msg | [string]: error message |
Definition at line 230 of file SErrorManager.php5.
| static SErrorManager::setWarning | ( | $ | msg | ) | [static] |
Indicates a warning has occurred.
This warning message will only show up on the dev site
| $msg | [string]: warning message |
Definition at line 241 of file SErrorManager.php5.
Referenced by SAutoLoad::addModule(), and DBI::query().
| static SErrorManager::sobj_setDebug | ( | $ | msg, | |
| $ | ignoreHowMany = 1 | |||
| ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $msg | [TYPE]: DESCRIPTION | |
| $ignoreHowMany | [TYPE]: DESCRIPTION |
Definition at line 567 of file SErrorManager.php5.
Referenced by DBI::query().
| static SErrorManager::sobj_setError | ( | $ | msg, | |
| $ | forUser, | |||
| $ | ignoreHowMany = 1 | |||
| ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $msg | [TYPE]: DESCRIPTION | |
| $forUser | [TYPE]: DESCRIPTION | |
| $ignoreHowMany | [TYPE]: DESCRIPTION |
Definition at line 500 of file SErrorManager.php5.
Referenced by SObject::setError(), SObject::setStaticError(), and SObject::setUserError().
| static SErrorManager::sobj_setWarning | ( | $ | msg, | |
| $ | ignoreHowMany = 1 | |||
| ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $msg | [TYPE]: DESCRIPTION | |
| $ignoreHowMany | [TYPE]: DESCRIPTION |
Definition at line 539 of file SErrorManager.php5.
Referenced by SObject::setStaticWarning(), and SObject::setWarning().
1.5.6