Class Query

Description

A Query object.

  • author:
  • version: 1.0

Located in /Query.php (line 9)


	
			
Method Summary
 Query __construct ( &$pm, string $statement, generic $pm)
 generic getStatement ()
 Node storeAsNode (string $path)
Methods
Constructor __construct (line 21)

Creates a new Query object, given an active PersistenceManager and valid query statement.

  • access: public
Query __construct ( &$pm, string $statement, generic $pm)
  • generic $pm: the active PersistenceManager.
  • string $statement: the query statement.
  • &$pm
execute (line 34)

Executes this query and returns a QueryResult.

  • return: a query result.
  • access: public
QueryResult execute ()
getStatement (line 47)

Returns the statement set for this query.

This could be anything (string, object, airplane) - so beware.

  • return: the query statement.
  • access: public
generic getStatement ()
storeAsNode (line 60)

Creates a node representing this Query in content.

An ItemExistsException will be thrown immediately if an item at the specified path already exists. A PathNotFoundException will be thrown immediately if the specified path implies intermediary nodes that do not exist.

  • return: the newly created node.
  • access: public
Node storeAsNode (string $path)
  • string $path: the absolute path of the node to be created.

Documentation generated on Sun, 04 Oct 2009 07:13:11 +0800 by phpDocumentor 1.4.3