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

This class executes the queries on the builder collection returned by the class that Implements the ApiQueryAssemblerInterface. The collection being returned will be one of the Laravel database eloquent classes (QueryBuilder or Model)
상속: extends QueryExecuter
파일 보기 프로젝트 열기: indatus/ranger

공개 메소드들

메소드 설명
executeQuery ( $request_type )

보호된 메소드들

메소드 설명
get ( integer $per_page ) : array runs a query on the get request results
getCollection ( ) : Illuminate\Database\Eloquent\Model getCollection - first this method loops through an array of objects that are sub-classes of the Indatus\Ranger\ApiDatabase\QueryBuilding\ApiQueryBuilder and runs the buildQueryFromParameters() method on each of them.
post ( ) In collection because I want to add an instance to a collection This could go to the InstanceQuery class instead

비공개 메소드들

메소드 설명
_buildNestedResource ( ) : Illuminate\Database\Eloquent\Model _buildNestedResource handles nested resource by formatting it

메소드 상세

executeQuery() 공개 메소드

public executeQuery ( $request_type )

get() 보호된 메소드

runs a query on the get request results
protected get ( integer $per_page ) : array
$per_page integer - pagination setting
리턴 array formatted results

getCollection() 보호된 메소드

Then if the collection is called from a nested resource, it will do some additional formatting. Else, it will just return the builder.
protected getCollection ( ) : Illuminate\Database\Eloquent\Model
리턴 Illuminate\Database\Eloquent\Model | Illuminate\Database\Eloquent\Builder

post() 보호된 메소드

In collection because I want to add an instance to a collection This could go to the InstanceQuery class instead
protected post ( )