PHP Class App\Http\Controllers\BaseAPIController

Inheritance: extends Controller
Mostrar archivo Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$manager
$serializer

Public Methods

Method Description
__construct ( )

Protected Methods

Method Description
createCollection ( $query, $transformer, $entityType )
createItem ( $data, $transformer, $entityType )
errorResponse ( $response, $httpErrorCode = 400 )
fileReponse ( $name, $data )
getRequestIncludes ( $data )
handleAction ( $request )
itemResponse ( $item )
listResponse ( $query )
response ( $response )

Method Details

__construct() public method

public __construct ( )

createCollection() protected method

protected createCollection ( $query, $transformer, $entityType )

createItem() protected method

protected createItem ( $data, $transformer, $entityType )

errorResponse() protected method

protected errorResponse ( $response, $httpErrorCode = 400 )

fileReponse() protected method

protected fileReponse ( $name, $data )

getRequestIncludes() protected method

protected getRequestIncludes ( $data )

handleAction() protected method

protected handleAction ( $request )

itemResponse() protected method

protected itemResponse ( $item )

listResponse() protected method

protected listResponse ( $query )

response() protected method

protected response ( $response )

Property Details

$manager protected_oe property

protected $manager

$serializer protected_oe property

protected $serializer