class FilesController extends ApiController (View source)

Properties

protected Application $app
protected Request $request

Methods

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

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

Item
transform($object, TransformerAbstract $transformer)

Transforms an object using the API transformer

__construct(Application $app, Request $request)

No description

Item|JsonResponse
read($fID)

Return detailed information about a file.

Details

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

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

Parameters

$message
int $code

Return Value

JsonResponse

Item transform($object, TransformerAbstract $transformer)

Transforms an object using the API transformer

Parameters

$object
TransformerAbstract $transformer

Return Value

Item

__construct(Application $app, Request $request)

Parameters

Application $app
Request $request

Item|JsonResponse read($fID)

Return detailed information about a file.

Parameters

$fID

Return Value

Item|JsonResponse