메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | string |
protected createBreadcrumbJSON ( Folder $folder ) : array | ||
$folder | Folder | |
리턴 | array |
public createFileJSON ( File $file, Folder $folder = null ) : array | ||
$file | File | |
$folder | Folder | |
리턴 | array |
public createFolderJSON ( Folder $folder ) : array | ||
$folder | Folder | |
리턴 | array |
protected getSortClause ( string $sort ) : string | ||
$sort | string | |
리턴 | string |
public handleCreateFolder ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public handleDelete ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public handleFile ( SS_HTTPRequest $r ) : KickAssets_FileRequest | ||
$r | SS_HTTPRequest | |
리턴 | KickAssets_FileRequest |
public handleFolderContents ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public handleFolders ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public handleIndex ( $r ) : SSViewer | ||
리턴 | SSViewer |
public handleMove ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public handleRecentItems ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public handleSearch ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public handleUpload ( SS_HTTPRequest $r ) : SS_HTTPResponse | ||
$r | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public static remove_assets_dir ( string $filename ) : string | ||
$filename | string | |
리턴 | string |