YaWK
24.1
Yet another WebKit
|
Basic File Manager (Backend) More...
Public Member Functions | |
__construct () | |
filemanager constructor. check if all media subfolder exists, if not, try to create them More... | |
Static Public Member Functions | |
static | countFilesFromFolder ($folder) |
count files from folder More... | |
static | deleteItem ($file) |
delete file from folder More... | |
static | drawTableFooter () |
draw: output html end table body, end table More... | |
static | drawTableHeader ($lang, $i) |
draw the table header with labeling More... | |
static | getCurrentMimeTypes () |
Fast generation of a complete uptodate mime types list. More... | |
static | getFilesFromFolder ($folder, $lang) |
returns a list of all files in given folder. expect $folder as string More... | |
static | getFilesFromFolderToArray ($folder) |
returns an array containing only files from folder (no subfolders) More... | |
static | getFilesOnlyFromFolder ($folder) |
output a list showing only files from folder (no subfolders) More... | |
static | getPhpMaxUploadSize () |
get and return PHP max file size setting More... | |
static | getPostMaxSize () |
get and return post_max_size value from phpinfo() More... | |
static | getSubfoldersToArray ($folder) |
returns an array containing only files from folder (no subfolders) More... | |
static | getUploadMaxFilesize () |
get and return upload max filesize value from phpinfo() More... | |
static | recursiveRemoveDirectory ($directory) |
Delete a directory recursive. More... | |
static | removeSpecialChars ($string) |
remove special chars as well as leading and trailing slashes from string More... | |
static | ritit ($folder) |
returns an multidimensional array containing subfolders + files of given folder More... | |
static | sizeFilter ($bytes, $precision) |
calculate filesize from bytes More... | |
static | subdirToOptions ($path) |
all folders in $path as select <option>...</option> More... | |
Basic File Manager (Backend)
Basic File Manager (Backend)
This basic file manager class provides simple view, delete and upload methods.
Class covers backend functionality. See Methods Summary for details!
Definition at line 16 of file filemanager.php.
YAWK\filemanager::__construct | ( | ) |
filemanager constructor. check if all media subfolder exists, if not, try to create them
Definition at line 23 of file filemanager.php.
References $folder.
|
static |
count files from folder
string | $folder | to search for files |
Definition at line 448 of file filemanager.php.
|
static |
delete file from folder
string | $file | file to delete |
string | $folder | folder containing the file |
Definition at line 328 of file filemanager.php.
|
static |
draw: output html end table body, end table
Definition at line 81 of file filemanager.php.
|
static |
draw the table header with labeling
array | $lang | language array |
integer | $i |
Definition at line 53 of file filemanager.php.
References $_GET.
|
static |
Fast generation of a complete uptodate mime types list.
Definition at line 609 of file filemanager.php.
|
static |
returns a list of all files in given folder. expect $folder as string
string | $folder | folder to look for files |
string | $path | path to workout |
array | $lang | current language array |
Definition at line 157 of file filemanager.php.
References $_GET, $errorMsg, $folder, $i, die, and YAWK\filemanager\sizeFilter().
|
static |
returns an array containing only files from folder (no subfolders)
string | $folder | to get files from |
Definition at line 512 of file filemanager.php.
References $folder.
Referenced by YAWK\BACKUP\backup\getArchiveBackupFilesArray(), YAWK\BACKUP\backup\getCurrentBackupFilesArray(), and YAWK\language\getSupportedLanguages().
|
static |
output a list showing only files from folder (no subfolders)
string | $folder | to get files from |
Definition at line 466 of file filemanager.php.
References $folder.
|
static |
get and return PHP max file size setting
Definition at line 417 of file filemanager.php.
References $db.
|
static |
get and return post_max_size value from phpinfo()
Definition at line 372 of file filemanager.php.
References $db.
|
static |
returns an array containing only files from folder (no subfolders)
string | $folder | to get files from |
Definition at line 530 of file filemanager.php.
References $folder.
Referenced by YAWK\BACKUP\backup\restore().
|
static |
get and return upload max filesize value from phpinfo()
Definition at line 395 of file filemanager.php.
References $db.
|
static |
Delete a directory recursive.
string | $directory | folder to delete |
Definition at line 296 of file filemanager.php.
Referenced by YAWK\template\downloadTemplate(), YAWK\template\emptyTmpFolder(), and YAWK\template\uploadTemplate().
|
static |
remove special chars as well as leading and trailing slashes from string
string | $string | the affected string |
Definition at line 482 of file filemanager.php.
|
static |
returns an multidimensional array containing subfolders + files of given folder
string | $folder | to get files from |
Definition at line 547 of file filemanager.php.
References $folder.
|
static |
calculate filesize from bytes
int | string | $bytes | |
int | string | $precision | how many decimal places? |
Definition at line 589 of file filemanager.php.
References $i.
Referenced by YAWK\filemanager\getFilesFromFolder().
|
static |
all folders in $path as select <option>...</option>
string | $path | rootpath that should be scanned and returned |
Definition at line 91 of file filemanager.php.