PHP 인터페이스 Jackalope\Transport\QueryInterface

상속: extends Jackalope\Transport\TransportInterface
파일 보기 프로젝트 열기: jackalope/jackalope

공개 메소드들

메소드 설명
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