XPathBase**********************************************************************************************
=============================================================================================== X P a t h B a s e - Class =============================================================================================== **********************************************************************************************
Located in /web/phpsysinfo/includes/XPath.class.php (line 174)
| Class | Description |
|---|---|
XPathEngine
|
********************************************************************************************** |
void
_closeDebugFunction
($functionName $functionName, [$return_value $returnValue = ""], $bDebugFlag $bDebugFlag)
void
_displayError
($message $message, [$lineNumber $lineNumber = '-'], [$terminate $file = '-'], [ $terminate = TRUE])
mixed
$aDebugFunctions
= array(
mixed
$aDebugOpenLinks
= array() (line 185)
mixed
$bClassProfiling
= FALSE (line 181)
mixed
$bDebugXmlParse
= FALSE (line 178)
mixed
$iDebugNextLinkNumber
= 1 (line 184)
mixed
$_lastError
(line 175)
Resets the object so it's able to take a new xml sting/file
Constructing objects is slow. If you can, reuse ones that you have used already by using this reset() function.
Alter the verbose (error) level reporting.
Pass an int. >0 to turn on, 0 to turn off. The higher the number, the higher the level of verbosity. By default, the class has a verbose level of 1.
Retrieves a substring after a delimiter.
This method retrieves everything from a string after a given delimiter, not including the delimiter.
Called to begin the debug run of a function.
This method starts a <DIV>
Split a string by a searator-string -- BUT the separator-string must be located *outside* of any brackets.
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string separator.
This method checks the right amount and match of brackets
Called to end the debug run of a function.
This method ends a <DIV>
Displays an error message.
This method displays an error messages depending on the users verbose settings and sets the last error message.
If also possibly stops the execution of the script. ### Terminate should not be allowed --fab. Should it?? N.S.
Displays a diagnostic message
This method displays an error messages
Split a string at it's groups, ie bracketed expressions
Returns an array of strings, when concatenated together would produce the original string. ie a(b)cde(f)(g) would map to: array ('a', '(b)', cde', '(f)', '(g)')
Retrieves a substring before a delimiter.
This method retrieves everything from a string before a given delimiter, not including the delimiter.
Echo an XPath context for diagnostic purposes
Looks for a string within another string -- BUT the search-string must be located *outside* of any brackets.
This method looks for a string within another string. Brackets in the string the method is looking through will be respected, which means that only if the string the method is looking for is located outside of brackets, the search will be successful.
Creates a textual error message and sets it.
example: 'XPath error in THIS_FILE_NAME:LINE. Message: YOUR_MESSAGE';
I don't think the message should include any markup because not everyone wants to debug into the browser window.
You should call _displayError() rather than _setLastError() if you would like the message, dependant on their verbose settings, echoed to the screen.
This is a debug helper function. It dumps the node-tree as HTML
*QUICK AND DIRTY*. Needs some polishing.
Documentation generated on Mon, 06 Oct 2008 01:10:55 +0200 by phpDocumentor 1.4.0