Files
class Files extends ApiController (View source)
Traits
Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface
Properties
protected Application | $app | from ApplicationAwareTrait | |
protected Request | $request | from ApiController |
Methods
JsonResponse
error($message, int $code = 400)
Returns an error response in the standard Concrete error response format.
from
ApiController
Item
transform($object, TransformerAbstract $transformer, string $resourceKey = null)
Transforms an object using the API transformer
from
ApiController
addLimitToPaginationIfSpecified($pagination, Request $request)
No description
addCursorToResource(iterable $results, Request $request, $getNewCursor, ResourceAbstract $resource, $previousCursor = null)
No description
from
SupportsCursorTrait
setupSortAndCursor(Request $request, ItemList $list, PagerColumnInterface $column, callable $getCursorObjectFunction)
No description
from
SupportsCursorTrait
read($fID)
No description
listFiles()
No description
add()
No description
delete($fID)
No description
update($fID)
No description
move($fID)
No description
Details
setApplication(Application $app)
Setter method for the application
__construct(Request $request)
No description
protected 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
addLimitToPaginationIfSpecified($pagination, Request $request)
No description
getCurrentCursorFromRequest(Request $request)
No description
addCursorToResource(iterable $results, Request $request, $getNewCursor, ResourceAbstract $resource, $previousCursor = null)
No description
setupSortAndCursor(Request $request, ItemList $list, PagerColumnInterface $column, callable $getCursorObjectFunction)
No description
read($fID)
No description
listFiles()
No description
add()
No description
delete($fID)
No description
update($fID)
No description
move($fID)
No description