abstract class AbstractQuery (View source)

Properties

protected DesignDocument $doc
protected string $designDocumentName
protected string $viewName
protected string $databaseName
protected Client $client
protected array $params

Methods

__construct(Client $client, $databaseName, $designDocName, $viewName, DesignDocument $doc = null)

No description

mixed
getParameter(string $key)

No description

getHttpQuery()

No description

execute()

Query the view with the current params.

doExecute()

No description

createResult($response)

No description

void
createDesignDocument()

Create non existing view.

Details

__construct(Client $client, $databaseName, $designDocName, $viewName, DesignDocument $doc = null)

Parameters

Client $client
$databaseName
$designDocName
$viewName
DesignDocument $doc

mixed getParameter(string $key)

Parameters

string $key

Return Value

mixed

abstract protected getHttpQuery()

Result execute()

Query the view with the current params.

Return Value

Result

protected doExecute()

abstract protected Result createResult($response)

Parameters

$response

Return Value

Result

void createDesignDocument()

Create non existing view.

Return Value

void

Exceptions

JsonDecodeException
Exception