PHP Class Indatus\Ranger\ApiDatabase\QueryExecution\InstanceQuery

Inheritance: extends QueryExecuter
Afficher le fichier Open project: indatus/ranger

Méthodes publiques

Méthode Description
__call ( $method, $arguments )
executeQuery ( $request_type )

Méthodes protégées

Méthode 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

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

Method Details

__call() public méthode

public __call ( $method, $arguments )

delete() protected méthode

protected delete ( ) : array
Résultat array

executeQuery() public méthode

public executeQuery ( $request_type )

get() protected méthode

protected get ( ) : array
Résultat array

getInstance() protected méthode

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
Résultat array

put() protected méthode

protected put ( ) : array
Résultat array