PHP 클래스 Indatus\Ranger\ApiDatabase\QueryExecution\QueryExecuter

파일 보기 프로젝트 열기: indatus/ranger

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__construct ( array $apiQueryBuilders, RequestContainer $requestContainer )
executeQuery ( $request_type ) : array executeQuery executes either a collection or instance based on the request

보호된 메소드들

메소드 설명
isNestedResource ( ) : boolean _isNestedResource - looks at the parent association to determine if the api parameters indicate a nested resource.

메소드 상세

__construct() 공개 메소드

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

executeQuery() 추상적인 공개 메소드

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

isNestedResource() 보호된 메소드

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
리턴 boolean

프로퍼티 상세

$apiQueryBuilders 보호되어 있는 프로퍼티

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

$builder 보호되어 있는 프로퍼티

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

$requestContainer 보호되어 있는 프로퍼티

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