- Description
-
Class trees
Index of elements
Todo List
Interfaces
Phpfox_Cache_Interface
Phpfox_Database_Interface
Phpfox_Gateway_Interface
Phpfox_Image_Interface
Phpfox_Mail_Interface
Classes
Database_Driver_Mssql
Database_Driver_Oracle
Database_Driver_Postgres
Database_Driver_Sqlite
Phpfox
Phpfox_Ajax
Phpfox_Api
Phpfox_Archive
Phpfox_Archive_Export
Phpfox_Archive_Extension_Tar
Phpfox_Archive_Extension_Xml
Phpfox_Archive_Extension_Zip
Phpfox_Archive_Import
Phpfox_Archive_Support
Phpfox_Cache
Phpfox_Cache_Abstract
Phpfox_Cache_Storage_File
Phpfox_Cache_Storage_Memcache
Phpfox_Cdn
Phpfox_Cdn_Abstract
Phpfox_Cdn_Module_S3
Phpfox_Component
Phpfox_Cron
Phpfox_Database
Phpfox_Database_Dba
Phpfox_Database_Driver_Mysql
Phpfox_Database_Driver_Mysqli
Phpfox_Database_Export
Phpfox_Database_Support
Phpfox_Date
Phpfox_Debug
Phpfox_Diff_Md5
Phpfox_Editor
Phpfox_Error
Phpfox_File
Phpfox_File_Minimize
Phpfox_Ftp
Phpfox_Gateway
Phpfox_Gateway_Api_2checkout
Phpfox_Gateway_Api_Paypal
Phpfox_Hash
Phpfox_Image
Phpfox_Image_Abstract
Phpfox_Image_Helper
Phpfox_Image_Library_Gd
Phpfox_Locale
Phpfox_Mail
Phpfox_Mail_Driver_Phpmailer_Mail
Phpfox_Mail_Driver_Phpmailer_Smtp
Phpfox_Module
Phpfox_Pager
Phpfox_Parse_Bbcode
Phpfox_Parse_Css
Phpfox_Parse_Format
Phpfox_Parse_Input
Phpfox_Parse_Output
Phpfox_Parse_Wiki
Phpfox_Plugin
Phpfox_Process
Phpfox_Request
Phpfox_Search
Phpfox_Search_Inline
Phpfox_Server
Phpfox_Service
Phpfox_Session
Phpfox_Session_Handler
Phpfox_Session_Handler_Default
Phpfox_Session_Handler_File
Phpfox_Session_Handler_Memcache
Phpfox_Session_Storage_Cookie
Phpfox_Session_Storage_Session
Phpfox_Setting
Phpfox_Spam
Phpfox_Spam_Hash
Phpfox_Template
Phpfox_Url
Phpfox_Validator
Phpfox_Xml_Builder
Phpfox_Xml_Parser
Functions
d
e
p
Files
2checkout.class.php
abstract.class.php
abstract.class.php
abstract.class.php
ajax.class.php
api.class.php
archive.class.php
bbcode.class.php
builder.class.php
cache.class.php
cdn.class.php
component.class.php
cookie.class.php
cron.class.php
css.class.php
database.class.php
date.class.php
dba.class.php
debug.class.php
default.class.php
editor.class.php
error.class.php
export.class.php
export.class.php
file.class.php
file.class.php
file.class.php
format.class.php
ftp.class.php
gateway.class.php
gd.class.php
handler.class.php
hash.class.php
hash.class.php
helper.class.php
image.class.php
import.class.php
inline.class.php
input.class.php
interface.class.php
interface.class.php
interface.class.php
interface.class.php
interface.class.php
locale.class.php
mail.class.php
mail.class.php
md5.class.php
memcache.class.php
memcache.class.php
minimize.class.php
module.class.php
mssql.class.php
mysql.class.php
mysqli.class.php
oracle.class.php
output.class.php
pager.class.php
parser.class.php
paypal.class.php
phpfox.class.php
plugin.class.php
postgres.class.php
process.class.php
request.class.php
s3.class.php
search.class.php
server.class.php
service.class.php
session.class.php
session.class.php
setting.class.php
smtp.class.php
spam.class.php
sqlite.class.php
support.class.php
support.class.php
tar.class.php
template.class.php
url.class.php
validator.class.php
wiki.class.php
xml.class.php
zip.class.php
Template-
Classes
Phpfox_Template_Cache
Files
cache.class.php
Phpfox_Error
Error handling for phpFox.
Within a controller you can exit the script by using the display() method like:
If using PHP logic that requires triggering a fatal error it can be done with:
The entire script has a built in error system and automatically displays errors when set with:
Located in /include/library/phpfox/error/error.class.php (line 31)
static bool
errorHandler
(int $nErrNo, string $sErrMsg, string $sFileName, int $nLinenum, array $aVars)
static array
$aErrors
= array() (line 39)
Holds an ARRAY of all the error messages we set
static bool
$_bDisplay
= true (line 47)
Holds a BOOL value if we should display the error messages or not
static bool
$_bSkipError
= false (line 55)
Holds a BOOL value if we should skip the error reporting or not
static display (line 63)
Displays the error message and directly creates a variable for the template engine
- string $sMsg: Error message you want to display on the current page the user is on.
static errorHandler (line 216)
This method handles the output of the error message PHP returns. We extend the PHP error reporting with providing more information on the error and where in the source code it can be found.
- int $nErrNo: The first parameter, errno, contains the level of the error raised, as an integer.
- string $sErrMsg: The second parameter, errstr, contains the error message, as a string.
- string $sFileName: The third parameter is optional, errfile, which contains the filename that the error was raised in, as a string.
- int $nLinenum: The fourth parameter is optional, errline, which contains the line number the error was raised at, as an integer.
- array $aVars: The fifth parameter is optional, errcontext, which is an array that points to the active symbol table at the point the error occurred. In other words, errcontext will contain an array of every variable that existed in the scope the error was triggered in. User error handler must not modify error context.
static get (line 113)
Get all the reported errors thus far set by the method set()
static getDisplay (line 135)
Gets the current display status of error reporting
static isPassed (line 161)
Returns if an error has accured up to this point. This is bassed on anything set by the method set(). This is used with IF conditional statments to see if we can continue with a routine or if an error has occured.
Example usage:
- {
- // Everything is okay do something here...
- }
- else
- {
- // Oh no there was an error. Display error messages here...
- }
static log (line 423)
Error messages can also be logged into a flat file on the server. The reason for this certain AJAX request or API callbacks may be hard to find error reports and by adding all error reports to a flat file it will help with debugging. This is automatically used with our error handler.
- string $sMessage: Error message to display
- string $sFile: Full path to the file
- int $iLine: Line number of where the error occured
static reset (line 174)
Reset the error messages. We do this automatically at the end of the entire routine to display a page, however if you need to reset it earlier it can be done with this method.
static set (line 99)
Set an error message that can be displayed at a later time
- string $sMsg: Error message you want to display
static setDisplay (line 124)
Sets the display status of error reporting.
- bool $bDisplay: Sets the display status
static skip (line 189)
If debug mode is enabled and you want to make sure to skip error reporting
you can use this method to force us to skip error reporting and then later turn it back on. We mainly use this when dealing with 3rd party libraries since we did not develop the code we are not fully aware of the coding standards applied.
- bool $bSkipError: TRUE to skip error reporting and FALSE to turn error reporting back on.
static trigger (line 80)
Display a warning or error message
- string $sMsg: is the Error message
- constant $sErrorCode: is the valid constant. (eg. E_USER_WARNING will be a warning message and E_USER_ERROR will be a fatal error message)
static _escapeCdata (line 465)
Removes any CDATA from a string.
- string $sXml: XML code to parse
Documentation generated on Tue, 28 Sep 2010 10:36:39 +0200 by phpDocumentor 1.4.0a2
static