\KickAssetsFileRequest
A subcontroller designed to deal with the CRUD for a specific file
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class KickAssetsFileRequest
extends RequestHandler
{
- // members
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- protected KickAssets $parent;
- protected File $file;
- // methods
- public void __construct()
- public SS_HTTPResponse handleRead()
- public SS_HTTPResponse handleUpdate()
- public SS_HTTPResponse handleDelete()
- protected array buildJSON()
- protected SS_HTTPResponse jsonResponse()
Hierarchy
Extends
- RequestHandler
Members
private
- $allowed_actions
—
array
A list of allowed controller actions - $url_handlers
—
array
A list of various endpoints
protected
- $file
—
File
The file that this controller will be editing/reading/deleting - $parent
—
KickAssets
The parent controller
Methods
protected
- buildJSON() — Adds new properties to the parent (KickAssets) file JSON
- jsonResponse() — Helper method for generating an HTTPResponse based on given JSON
public
- __construct() — Constructor, sets the parent and file
- handleDelete() — Deletes the file bound to this controller
- handleRead() — Serves up the details for the file bound to this controller
- handleUpdate() — Applies edits to the file bound to this controller