PHP Интерфейс Jackalope\Transport\QueryInterface

Наследование: extends Jackalope\Transport\TransportInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
getSupportedQueryLanguages ( ) : array The transport must at least support JCR_SQL2 and JCR_JQOM.
query ( Query $query ) : array Search something with the backend.

Описание методов

getSupportedQueryLanguages() публичный Метод

Note that QueryObjectModel::getStatement() returns the query as JCR_SQL2 so it costs you nothing to support JQOM.
См. также: QueryManagerInterface::getSupportedQueryLanguages
public getSupportedQueryLanguages ( ) : array
Результат array A list of query languages supported by this transport.

query() публичный Метод

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(... )
См. также: 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
Результат array data with search result. TODO: what to return? should be some simple array