class FilesController extends ApiController (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app
protected Request $request

Methods

setApplication(Application $app)

Setter method for the application

__construct(Application $app, Request $request)

No description

JsonResponse
error($message, int $code = 400)

Returns an error response in the standard Concrete error response format.

Item
transform($object, TransformerAbstract $transformer, string $resourceKey = null)

Transforms an object using the API transformer

deleted(string $objectType, string $id)

No description

Item|JsonResponse
read($fID)

Return detailed information about a file.

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(Application $app, Request $request)

No description

Parameters

Application $app
Request $request

protected JsonResponse error($message, int $code = 400)

Returns an error response in the standard Concrete error response format.

Parameters

$message
int $code

Return Value

JsonResponse

Item transform($object, TransformerAbstract $transformer, string $resourceKey = null)

Transforms an object using the API transformer

Parameters

$object
TransformerAbstract $transformer
string $resourceKey

Return Value

Item

deleted(string $objectType, string $id)

No description

Parameters

string $objectType
string $id

Item|JsonResponse read($fID)

Return detailed information about a file.

Parameters

$fID

Return Value

Item|JsonResponse