Version: @(#) $Id: markup_filter_validator.php,v 1.30 2009/10/31 20:55:11 mlemos Exp $
Markup validator
Manuel Lemos (mlemos-at-acm.org)
Copyright © (C) Manuel Lemos 2009
@(#) $Id: markup_filter_validator.php,v 1.30 2009/10/31 20:55:11 mlemos Exp $
.
.
string
''
Store the message that is returned when an error occurs.
Check this variable to understand what happened when a call to any of the class functions has failed.
This class uses cumulative error handling. This means that if one class functions that may fail is called and this variable was already set to an error message due to a failure in a previous call to the same or other function, the function will also fail and does not do anything.
This allows programs using this class to safely call several functions that may fail and only check the failure condition after the last function call.
Just set this variable to an empty string to clear the error condition.
int
0
Store the code that is returned when an error occurs.
Check this variable to understand what happened when a call to any of the class functions has failed.
int
-1
Point to the position of the markup data or file that refers to the last error that occurred.
Check this variable to determine the relevant position of the document when a parsing error occurs.
int
8000
Maximum length of the chunks of markup data that the class parse at one time.
Adjust this value according to the available memory.
bool
1
Specify whether the class should ignore syntax errors in malformed documents.
Set this variable to 0 if it is necessary to verify whether markup data may be corrupted due to to eventual bugs in the program that generated the document.
Currently the class only ignores some types of syntax errors. Other syntax errors may still cause the Parse to fail.
array
array()
Return a list of positions of the original document that contain syntax errors.
Check this variable to retrieve eventual document syntax errors that were ignored when the ignore_syntax_errors is set to 1.
The indexes of this array are the positions of the errors. The array values are the corresponding syntax error messages.
bool
1
.
.
bool
0
.
.
array
array()
.
.
string
''
.
.
array
array()
.
.
array
array()
.
.