PHP Class Indatus\Ranger\ApiDatabase\QueryExecution\QueryExecuter

Datei anzeigen Open project: indatus/ranger

Protected Properties

Property Type Description
$apiQueryBuilders array We will loop through these objects and call buildQueryFromParameters() on each of the objects ApiQueryBuilderInterface[] $apiQueryBuilderInterface
$builder $builder - contains the eloquent builder instance to build queries on.
$requestContainer Indatus\Ranger\RequestDiagnostics\RequestContainer $requestContainer - contains all kinds of request diagnostics to make decisions on.

Public Methods

Method Description
__construct ( array $apiQueryBuilders, RequestContainer $requestContainer )
executeQuery ( $request_type ) : array executeQuery executes either a collection or instance based on the request

Protected Methods

Method Description
isNestedResource ( ) : boolean _isNestedResource - looks at the parent association to determine if the api parameters indicate a nested resource.

Method Details

__construct() public method

public __construct ( array $apiQueryBuilders, RequestContainer $requestContainer )
$apiQueryBuilders array
$requestContainer Indatus\Ranger\RequestDiagnostics\RequestContainer

executeQuery() abstract public method

executeQuery executes either a collection or instance based on the request
abstract public executeQuery ( $request_type ) : array
return array

isNestedResource() protected method

These are both examples of nested resources ie) http://example.com/users/1/accounts ie) http://example.com/users/1/accounts/1
protected isNestedResource ( ) : boolean
return boolean

Property Details

$apiQueryBuilders protected_oe property

We will loop through these objects and call buildQueryFromParameters() on each of the objects ApiQueryBuilderInterface[] $apiQueryBuilderInterface
protected array $apiQueryBuilders
return array

$builder protected_oe property

$builder - contains the eloquent builder instance to build queries on.
protected $builder

$requestContainer protected_oe property

$requestContainer - contains all kinds of request diagnostics to make decisions on.
protected RequestContainer,Indatus\Ranger\RequestDiagnostics $requestContainer
return Indatus\Ranger\RequestDiagnostics\RequestContainer