Public Member Functions | |
__construct ($dir) | |
Scan directory for files and directories and sort list by desired column. | |
currentSort () | |
Current sort string. | |
dirList () | |
Sorted directory list. | |
fileList () | |
Sorted file-only list. | |
setLocale ($l10n) | |
Set localization for visible output. | |
sortLinkArray () | |
Build array of visible file list table headers. | |
Static Public Member Functions | |
static | mtimeDateToString ($timeStamp) |
Convert file's last modification timestamp date to human readable format. | |
static | mtimeTimeToString ($timeStamp) |
Convert file's last modification timestamp time to human readable format. | |
static | mtimeToString ($timeStamp) |
Convert file's last modification timestamp to human readable format. | |
static | sizeToString ($countOfBytes) |
Convert file size to human readable format. |
Definition at line 13 of file FbScanDir.class.php.
FbScanDir::__construct | ( | $ | dir | ) |
Scan directory for files and directories and sort list by desired column.
dir | Directory to scan. |
ExceptionNotFound | Exception is thrown when directory not exists. |
Definition at line 23 of file FbScanDir.class.php.
FbScanDir::currentSort | ( | ) |
Current sort string.
Definition at line 68 of file FbScanDir.class.php.
Referenced by sortLinkArray().
FbScanDir::dirList | ( | ) |
Sorted directory list.
Each array item is associative array of:
Definition at line 161 of file FbScanDir.class.php.
FbScanDir::fileList | ( | ) |
Sorted file-only list.
Each array item is associative array of:
Definition at line 173 of file FbScanDir.class.php.
static FbScanDir::mtimeDateToString | ( | $ | timeStamp | ) | [static] |
Convert file's last modification timestamp date to human readable format.
timeStamp | File's last modification as unix timestamp. |
Definition at line 210 of file FbScanDir.class.php.
static FbScanDir::mtimeTimeToString | ( | $ | timeStamp | ) | [static] |
Convert file's last modification timestamp time to human readable format.
timeStamp | File's last modification as unix timestamp. |
Definition at line 219 of file FbScanDir.class.php.
static FbScanDir::mtimeToString | ( | $ | timeStamp | ) | [static] |
Convert file's last modification timestamp to human readable format.
timeStamp | File's last modification as unix timestamp. |
Definition at line 201 of file FbScanDir.class.php.
FbScanDir::setLocale | ( | $ | l10n | ) |
Set localization for visible output.
l10n | Reference to initialized L10n object. |
Definition at line 61 of file FbScanDir.class.php.
static FbScanDir::sizeToString | ( | $ | countOfBytes | ) | [static] |
Convert file size to human readable format.
countOfBytes | File size in bytes. |
Definition at line 182 of file FbScanDir.class.php.
FbScanDir::sortLinkArray | ( | ) |
Build array of visible file list table headers.
Definition at line 75 of file FbScanDir.class.php.
References currentSort().