PHP Interface Jackalope\Transport\QueryInterface

Inheritance: extends Jackalope\Transport\TransportInterface
Afficher le fichier Open project: jackalope/jackalope

Méthodes publiques

Méthode Description
getSupportedQueryLanguages ( ) : array The transport must at least support JCR_SQL2 and JCR_JQOM.
query ( Query $query ) : array Search something with the backend.

Method Details

getSupportedQueryLanguages() public méthode

Note that QueryObjectModel::getStatement() returns the query as JCR_SQL2 so it costs you nothing to support JQOM.
See also: QueryManagerInterface::getSupportedQueryLanguages
public getSupportedQueryLanguages ( ) : array
Résultat array A list of query languages supported by this transport.

query() public méthode

The language must be among those returned by getSupportedQueryLanguages Implementors: Expose all information required by the transport layers to execute the query with getters. array( row 1 array( column1 array('dcr:name' => 'value1', 'dcr:value' => 'value2', 'dcr:selectorName' => 'value3' //optional ), column 2... ), row 2 array(... )
See also: QueryResult::__construct() for the xml format. TODO: have the transport return a QueryResult?
public query ( Query $query ) : array
$query Jackalope\Query\Query the query object
Résultat array data with search result. TODO: what to return? should be some simple array