MLPHP


MLPHP\SearchQuery
MarkLogic/MLPHP/SearchQuery.php at line 25

Class SearchQuery

SearchQuery

public class SearchQuery

Represents a search query.

Author:
Mike Wooldridge

Constructor Summary
void

__construct(string query, boolean structured)

Create a SearchQuery object.

Method Summary
string

getQuery()

Get the query string.

boolean

isStructured()

Return whether the query is a structured query.

Constructor Detail

MarkLogic/MLPHP/SearchQuery.php at line 39

__construct

public void __construct(string query, boolean structured)

Create a SearchQuery object.

Todo:
Make $structured optional, automatically determine whether query is XML or JSON (structured) or simple.
Parameters:
query - A simple or structured search query string.
structured - Whether the query is a structured query.

Method Detail

MarkLogic/MLPHP/SearchQuery.php at line 50

getQuery

public string getQuery()

Get the query string.

Returns:
The query string.

MarkLogic/MLPHP/SearchQuery.php at line 60

isStructured

public boolean isStructured()

Return whether the query is a structured query.

Returns:
True if the query is structured.

MLPHP