apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: RDF_RDQL

Source Location: /RDF_RDQL-0.2.0/RDF/RDQL.php

Class Overview




Methods


Inherited Variables

Inherited Methods


Class Details

[line 24]


[ Top ]


Method Detail

errorMessage   [line 76]

string errorMessage( int $value)

Return a textual error message for a RAP error code.
  • Return: error message
  • Access: public

Parameters:

int   $value   —  error code

[ Top ]

isError   [line 103]

void isError( $error)


Parameters:

   $error   — 

[ Top ]

raiseError   [line 54]

object a &raiseError( [mixed $code = null], [int $mode = null], [mixed $options = null], [string $userinfo = null])

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.

[ Top ]

RDQLQuery   [line 121]

array RDQLQuery( object model &$model, string $queryString, [boolean $returnNodes = true])

Perform an RDQL query on this Model_MDB.

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.

  • Return: [][?VARNAME] = object Node (if $returnNodes = TRUE) OR array [][?VARNAME] = string
  • Access: public

Parameters:

string   $queryString   — 
boolean   $returnNodes   — 
object model   &$model   — 

[ Top ]

RDQLQueryAsIterator   [line 170]

object RDQLResultIterator RDQLQueryAsIterator( object model &$model, string $queryString, [boolean $returnNodes = true])

Perform an RDQL query on this Model_MDB.

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)
  • Access: public

Parameters:

string   $queryString   — 
boolean   $returnNodes   — 
object model   &$model   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:50 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.