errordisplay.php File Reference

Go to the source code of this file.

Namespaces

namespace  MythWeb

$BadItems

This is an associative array for keeping track of whether items have been marked as "bad" in order that they can properly be displayed with highlight_error().

mixed $GLOBALS['BadItems']

/*

global $BadItems = array()
 display_errors ($leading='< p align="center">', $trailing= '</p >')
 This function displays any errors or warnings, in a javascript alert if the browser has scripting enabled.
 highlight_error ($content, $field= '')
 This function just draws a simple red line around something, to mark it as containing erroneous data.
 add_error ($error, $fields=NULL)
 Add an error to the list.
 add_warning ($warning, $fields=NULL)
 Add a warning to the list.
 errors ()
 Test the existence of errors /*.
 warnings ()
 Test the existence of warnings /*.
 save_session_errors ()
 Save errors and warnings into a session error/warning variable /*.
 tailored_error ($error)
 Show one of the tailored error pages.
 custom_error ($text, $header='Error', $title='Error')
 Show the generic error page with a custom message.

Variables

$Errors
Error messages should prevent saving.

mixed $GLOBALS['Errors']

/*

global $Errors = array()
$Warnings
Warnings should warn, but not prevent saving.

mixed $GLOBALS['Warnings']

/*

global $Warnings = array()


Function Documentation

display_errors ( leading = '<p align="center">',
trailing = '</p>' 
)

This function displays any errors or warnings, in a javascript alert if the browser has scripting enabled.

/*

Definition at line 57 of file errordisplay.php.

highlight_error ( content,
field = '' 
)

This function just draws a simple red line around something, to mark it as containing erroneous data.

It really needs to be replaced with a style. /*

Definition at line 104 of file errordisplay.php.

add_error ( error,
fields = NULL 
)

Add an error to the list.

Parameters:
string $warning The warning to add
mixed $fields String or array of strings to add to $BadItems. /*

Definition at line 118 of file errordisplay.php.

add_warning ( warning,
fields = NULL 
)

Add a warning to the list.

Parameters:
string $warning The warning to add
mixed $fields String or array of strings to add to $BadItems. /*

Definition at line 138 of file errordisplay.php.

errors (  ) 

Test the existence of errors /*.

Definition at line 155 of file errordisplay.php.

Referenced by main().

warnings (  ) 

Test the existence of warnings /*.

Definition at line 162 of file errordisplay.php.

save_session_errors (  ) 

Save errors and warnings into a session error/warning variable /*.

Definition at line 169 of file errordisplay.php.

tailored_error ( error  ) 

Show one of the tailored error pages.

Parameters:
string $error The error template page to load /*

Definition at line 185 of file errordisplay.php.

custom_error ( text,
header = 'Error',
title = 'Error' 
)

Show the generic error page with a custom message.

Parameters:
string $title Page title.
string $header String for the error header.
string $text Error text. /*

Definition at line 197 of file errordisplay.php.


Variable Documentation

$Errors = array()

Definition at line 30 of file errordisplay.php.

$Warnings = array()

Definition at line 39 of file errordisplay.php.

$BadItems = array()

Definition at line 50 of file errordisplay.php.


Generated on Sat Dec 18 05:15:51 2010 for MythTV by  doxygen 1.5.5