PHP Class Indatus\Ranger\ApiDatabase\QueryExecution\InstanceQuery

Inheritance: extends QueryExecuter
Show file Open project: indatus/ranger

Public Methods

Method Description
__call ( $method, $arguments )
executeQuery ( $request_type )

Protected Methods

Method Description
delete ( ) : array
get ( ) : array
getInstance ( ) : array Function to return a resource instance. The function will handle wether or not the resource is nested and act appropriatley.
put ( ) : array

Private Methods

Method Description
_buildNestedResource ( string $table, integer $primaryKey, integer $id ) : Illuminate\Database\Eloquent\Model _buildNestedResource - performs query on nested resource instance

Method Details

__call() public method

public __call ( $method, $arguments )

delete() protected method

protected delete ( ) : array
return array

executeQuery() public method

public executeQuery ( $request_type )

get() protected method

protected get ( ) : array
return array

getInstance() protected method

getInstance - The ApiQueryAssemblerInterface will build the query from any api parameters that were passed in. Eager loaded relations joins, and left joins will be appended to the query builder and returned by the buildQueryFromApiParams() method. The returned value will then call the first() method which will return an Eloquent model instance object.
protected getInstance ( ) : array
return array

put() protected method

protected put ( ) : array
return array