This method is used to communicate an error and invoke error callbacks etc. Basically a wrapper for PEAR::raiseError without the message string.
Return: PEAR error object
See: PEAR_Error
Parameters:
mixed
$code
—
integer error code, or a PEAR error object (all other parameters are ignored if this parameter is an object
int
$mode
—
error mode, see PEAR_Error docs
mixed
$options
—
If error mode is PEAR_ERROR_TRIGGER, this is the error level (E_USER_NOTICE etc). If error mode is PEAR_ERROR_CALLBACK, this is the callback function, either as a function name, or as an array of an object and method name. For other error modes this parameter is ignored.
string
$userinfo
—
Extra debug information. Defaults to the last query and native error code.
This method returns an associative array of variable bindings. The values of the query variables can either be RAP's objects (instances of Node) if $returnNodes set to TRUE, or their string serialization.
This method returns an RDQLResultIterator of variable bindings. The values of the query variables can either be RAP's objects (instances of Node) if $returnNodes set to TRUE, or their string serialization.
Return: = with values as object Node (if $returnNodes = TRUE) OR object RDQLResultIterator = with values as strings if (if $returnNodes = FALSE)