Property | Type | Description | |
---|---|---|---|
$file | File | The file that this controller will be editing/reading/deleting | |
$parent | KickAssets | The parent controller |
Method | Description | |
---|---|---|
__construct ( KickAssets $parent, File $file ) | Constructor, sets the parent and file | |
handleDelete ( SS_HTTPRequest $r ) : SS_HTTPResponse | Deletes the file bound to this controller | |
handleRead ( SS_HTTPRequest $r ) : SS_HTTPResponse | Serves up the details for the file bound to this controller | |
handleUpdate ( SS_HTTPRequest $r ) : SS_HTTPResponse | Applies edits to the file bound to this controller |
Method | Description | |
---|---|---|
JSONResponse ( array $json = null ) | Helper method for generating an HTTPResponse based on given JSON | |
buildJSON ( ) : array | Adds new properties to the parent (KickAssets) file JSON |
protected JSONResponse ( array $json = null ) | ||
$json | array |
public __construct ( KickAssets $parent, File $file ) | ||
$parent | KickAssets | |
$file | File |
public handleDelete ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleRead ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleUpdate ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
protected File $file | ||
return | File |