Method | Description | |
---|---|---|
JSONConfig ( ) : string | Creates a JSON string of all the variables that can be set in the Config | |
canView ( Member $member = null ) : boolean | Defines the canView permission | |
createFileJSON ( File $file, Folder $folder = null ) : array | Given a File object, create an array of its properties and values ready to be transformed to JSON | |
createFolderJSON ( Folder $folder ) : array | Given a Folder object, create an array of its properties and values ready to be transformed to JSON | |
handleCreateFolder ( SS_HTTPRequest $r ) : SS_HTTPResponse | Creates a folder, ensures uniqueness | |
handleDelete ( SS_HTTPRequest $r ) : SS_HTTPResponse | Deletes a list of files | |
handleFile ( SS_HTTPRequest $r ) : KickAssets_FileRequest | Handles a specific file request | |
handleFolderContents ( SS_HTTPRequest $r ) : SS_HTTPResponse | Gets the contents of a folder, and applies a sort. Splits the response into folder metadata and folder children | |
handleFolders ( SS_HTTPRequest $r ) : SS_HTTPResponse | Gets a list of all the folders in the system | |
handleIndex ( $r ) : SSViewer | Index action, renders the main template | |
handleMove ( SS_HTTPRequest $r ) : SS_HTTPResponse | Moves a list of files ('ids') to a new folder ('newFolder' named file path or ID) If newFolder is a string, the folder will be created if it doesn't exist. | |
handleRecentItems ( SS_HTTPRequest $r ) : SS_HTTPResponse | Gets recently updated items | |
handleSearch ( SS_HTTPRequest $r ) : SS_HTTPResponse | Searches for files by PartialMatch | |
handleUpload ( SS_HTTPRequest $r ) : SS_HTTPResponse | The endpoint for file uploads. Hands off to Dropzone module | |
init ( ) | Bootstraps the module, adds JavaScript | |
remove_assets_dir ( string $filename ) : string | Strips the assets directory from the beginning of a folder name |
Method | Description | |
---|---|---|
createBreadcrumbJSON ( Folder $folder ) : array | Creates an array of breadcrumbs for a given Folder, ready to be transformed to JSON | |
getSortClause ( string $sort ) : string | Given a sort field, generate a string of SQL to apply the sort |
public JSONConfig ( ) : string | ||
return | string |
protected createBreadcrumbJSON ( Folder $folder ) : array | ||
$folder | Folder | |
return | array |
public createFileJSON ( File $file, Folder $folder = null ) : array | ||
$file | File | |
$folder | Folder | |
return | array |
public createFolderJSON ( Folder $folder ) : array | ||
$folder | Folder | |
return | array |
protected getSortClause ( string $sort ) : string | ||
$sort | string | |
return | string |
public handleCreateFolder ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleDelete ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleFile ( SS_HTTPRequest $r ) : KickAssets_FileRequest | ||
$r | SS_HTTPRequest | |
return | KickAssets_FileRequest |
public handleFolderContents ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleFolders ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleIndex ( $r ) : SSViewer | ||
return | SSViewer |
public handleMove ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleRecentItems ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleSearch ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public handleUpload ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
return | SS_HTTPResponse |
public static remove_assets_dir ( string $filename ) : string | ||
$filename | string | |
return | string |