PHP Class Media_manager, TastyIgniter

Inheritance: extends CI_Controller
显示文件 Open project: tastyigniter/tastyigniter

Public Methods

Method Description
__construct ( $config = [] )
_folderTree ( $directory, $return_link, $parent = '' )
_recursiveFolders ( $path, $first_call = TRUE )
copy ( $from_path, $to_path, $first_call = FALSE )
createFolder ( $file_path = FALSE, $thumb_path = FALSE )
delete ( $path, $first_call = FALSE )
fetchFiles ( $path, $sort = [] )
fetchGalleries ( )
fileExists ( $file_path )
fixFileName ( $str )
folderSize ( $path )
folderTree ( $path = '', $return_link = '' )
getAllowedExt ( )
getImagePath ( )
getOptions ( )
getRootFolder ( )
getThumbnail ( $file_name, $sub_folder = '' )
getUploadMaxSize ( )
isWritable ( $file_path )
move ( $file_path, $move_path )
newFolder ( $name )
recursiveFolders ( $path = '' )
rename ( $file_path, $new_name )
upload ( $sub_folder )

Private Methods

Method Description
sortFiles ( $sort, $u_files )

Method Details

__construct() public method

public __construct ( $config = [] )

_folderTree() public method

public _folderTree ( $directory, $return_link, $parent = '' )

_recursiveFolders() public method

public _recursiveFolders ( $path, $first_call = TRUE )

copy() public method

public copy ( $from_path, $to_path, $first_call = FALSE )

createFolder() public method

public createFolder ( $file_path = FALSE, $thumb_path = FALSE )

delete() public method

public delete ( $path, $first_call = FALSE )

fetchFiles() public method

public fetchFiles ( $path, $sort = [] )

fetchGalleries() public method

public fetchGalleries ( )

fileExists() public method

public fileExists ( $file_path )

fixFileName() public method

public fixFileName ( $str )

folderSize() public method

public folderSize ( $path )

folderTree() public method

public folderTree ( $path = '', $return_link = '' )

getAllowedExt() public method

public getAllowedExt ( )

getImagePath() public method

public getImagePath ( )

getOptions() public method

public getOptions ( )

getRootFolder() public method

public getRootFolder ( )

getThumbnail() public method

public getThumbnail ( $file_name, $sub_folder = '' )

getUploadMaxSize() public method

public getUploadMaxSize ( )

isWritable() public method

public isWritable ( $file_path )

move() public method

public move ( $file_path, $move_path )

newFolder() public method

public newFolder ( $name )

recursiveFolders() public method

public recursiveFolders ( $path = '' )

rename() public method

public rename ( $file_path, $new_name )

upload() public method

public upload ( $sub_folder )