App\Core_MediaManager_Admin
Inherited from cmsAdmin_HierarchicalTree_List
Protected Attributes
protected | $valid_image_extension_array | = ['png', 'jpg', 'jpeg', 'gif'] |
protected | $thumbnail_url | = '/cache/thumbnails' |
protected | $thumb_width | |
protected | $thumb_height | |
protected | $thumbnailInfo | |
protected | $cacheSystem |
Protected Methods
protected boolean|string | isSubDirectoryOf(string $parent_folder, string $path) |
protected boolean | safeDelTree(string $directory) Safely delete a directory
|
protected boolean | safeDeleteFile(string $file_name) Safely delete a file
|
protected array | getFileEntry(type $file) Get file entry info
|
protected bool | createThumbnail(array $entry) Create Thumbnail. If thumbnail created, return true, otherwise retrun false
|
protected | sortFileName($a, $b) |
protected | sanitizeInputFolderName($folder_name) |
Public Methods
public | __construct() |
public array | getListofApplications() REturns a list of all applications
|
public | loadApplicationJavascript() |
public | viewMainPage() |
public | ajaxDeleteObjects(type $mixed_items_to_delete) Delete files - TODO: Insecure type $SystemDB
|
public | get_parent_id($fullfilename, $dir_array) |
public | getDefaultDataFolder() TODO: fix this
|
public | getDefaultDataDirectoryContent() |
public array | modifyCategoryResponseSchemaFields(array $response_schema) You can customize the response schema field here
|
public array | modifyItemResponseSchemaFields(array $response_schema) You can customize the response schema field here
|
public | displayPermission($perms) |
public array | searchDirectoryContent(string $keyword, string $sortby='virtual_filename', string $sortdir='asc') Returns a list of directory content
|
public array | getDirectoryContent(string $dir, bool $directory_only=FALSE, string $sortby='virtual_filename', string $sortdir='asc') Returns a list of directory content
|
public | ajaxGetCategoriesByParentID($parent_id, $expanded_nodes='', $start, $end, $sortby='', $sortdirection='ASC') |
public | ajaxGetItemsByCategoryID($id, $start, $end, $sortby='', $sortdirection='ASC') |
public | ajaxSearchObjects($keyword='', $start, $end, $sortby='', $sortdirection='ASC') |
public | ajaxCreateNewFolder() Create a new folder. TODO: fix - INSECURE
|
public | ajaxUploadFiles() |
public | ajaxRenameFile() |
public | Run() |