Class QueryManager

Description

This interface encapsulates methods for the management of search queries.

Provides methods for the creation and retrieval of search queries.

  • author:
  • version: 1.0

Located in /QueryManager.php (line 10)


	
			
Method Summary
 QueryManager __construct ( &$pm, generic $pm)
 Query createQuery (string $statement)
 Query getQuery (Node $node)
Methods
Constructor __construct (line 20)

Creates a new QueryManager object, given an active PersistenceManager.

  • access: public
QueryManager __construct ( &$pm, generic $pm)
  • generic $pm: the active PersistenceManager.
  • &$pm
createQuery (line 35)

Creates a new query by specifying the query statement itself.

It is generic enough where people can come up with their own query implemenation. If the query statement is syntactically invalid, an InvalidQueryException is thrown.

  • return: a Query object.
  • access: public
Query createQuery (string $statement)
  • string $statement: the parameter containing the query statement.
getQuery (line 48)

Retrieves an existing persistent query.

If node is not a valid persisted query, an InvalidQueryException is thrown. Persistent queries are created by first using QueryManager->createQuery to create a Query object and then calling Query->storeAsNode to persist the query to a location in the workspace.

  • return: a Query object.
  • access: public
Query getQuery (Node $node)
  • Node $node: a persisted query.

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