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|stringisSubDirectoryOf(string $parent_folder, string $path)
protected booleansafeDelTree(string $directory)
Safely delete a directory
protected booleansafeDeleteFile(string $file_name)
Safely delete a file
protected arraygetFileEntry(type $file)
Get file entry info
protected boolcreateThumbnail(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 arraygetListofApplications()
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 arraymodifyCategoryResponseSchemaFields(array $response_schema)
You can customize the response schema field here
public arraymodifyItemResponseSchemaFields(array $response_schema)
You can customize the response schema field here
public displayPermission($perms)
public arraysearchDirectoryContent(string $keyword, string $sortby='virtual_filename', string $sortdir='asc')
Returns a list of directory content
public arraygetDirectoryContent(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()