Skip to content

Latest commit

 

History

History
378 lines (179 loc) · 9.27 KB

class.manager.md

File metadata and controls

378 lines (179 loc) · 9.27 KB

Class manager

Contents

Properties

Methods

Properties

$calculateSubdir

public mixed $calculateSubdir = true

$currentFolderInfo

public mixed $currentFolderInfo = array('name' => '', 'subdir' => 0, 'file' => 0, 'ctime' => '', 'mtime' => '', 'is_readable' => '', 'is_writable' => '', 'size' => 0, 'path' => '', 'type' => 'folder', 'flag' => 'noFlag', 'friendly_path' => '')

$currentFolderPath

public mixed $currentFolderPath

$fileTypes

public mixed $fileTypes = array(array(array("exe", "com"), "fileExe", SEARCH_TYPE_EXE, 0), array(array("gif", "jpg", "png", "bmp", "tif"), "filePicture", SEARCH_TYPE_IMG, 1), array(array("zip", "sit", "rar", "gz", "tar"), "fileZip", SEARCH_TYPE_ARCHIVE, 0), array(array("htm", "html", "php", "jsp", "asp", 'js', 'css'), "fileCode", SEARCH_TYPE_HTML, 1), array(array("mov", "ram", "rm", "asx", "dcr", "wmv"), "fileVideo", SEARCH_TYPE_VIDEO, 1), array(array("mpg", "avi", "asf", "mpeg"), "fileVideo", SEARCH_TYPE_MOVIE, 1), array(array("aif", "aiff", "wav", "mp3", "wma"), "fileMusic", SEARCH_TYPE_MUSIC, 1), array(array("swf", 'flv'), "fileFlash", SEARCH_TYPE_FLASH, 1), array(array("ppt"), "filePPT", SEARCH_TYPE_PPT, 0), array(array("rtf"), "fileRTF", SEARCH_TYPE_DOC, 0), array(array("doc"), "fileWord", SEARCH_TYPE_WORD, 0), array(array("pdf"), "fileAcrobat", SEARCH_TYPE_PDF, 0), array(array("xls", "csv"), "fileExcel", SEARCH_TYPE_EXCEL, 0), array(array("txt"), "fileText", SEARCH_TYPE_TEXT, 1), array(array("xml", "xsl", "dtd"), "fileXml", SEARCH_TYPE_XML, 1))

$flags

public mixed $flags = array('no' => 'noFlag', 'cut' => 'cutFlag', 'copy' => 'copyFlag')

$folderPathIndex

public mixed $folderPathIndex = "path"

$forceFolderOnTop

public mixed $forceFolderOnTop = false

$lastVisitedFolderPathIndex

public mixed $lastVisitedFolderPathIndex = 'ajax_last_visited_folder'

$sessionAction

public mixed $sessionAction = null

Methods

__construct

mixed manager::__construct($path, $calculateSubdir)

constructor

Arguments

  • $path mixed
  • $calculateSubdir mixed

_getExtension

string manager::_getExtension(string $file, $checkIfDir)

Get the extension of a file name

Arguments

  • $file string
  • $checkIfDir mixed

getCurrentFolderPath

string manager::getCurrentFolderPath()

get current folder path

getFileList

array manager::getFileList()

get the list of files and folders under this current fold

getFileType

array manager::getFileType($fileName, $checkIfDir)

return the file type of a file.

Arguments

  • $fileName mixed
  • $checkIfDir mixed

getFileTypes

\arrray manager::getFileTypes()

return the predefined file types

getFolderInfo

array manager::getFolderInfo(string $path)

get current or the specified dir information

Arguments

  • $path string

isDirEmpty

mixed manager::isDirEmpty($path)

Arguments

  • $path mixed

manager

mixed manager::manager($path, $calculateSubdir)

constructor

Arguments

  • $path mixed
  • $calculateSubdir mixed

printFileTypes

mixed manager::printFileTypes()

print out the file types

setSessionAction

mixed manager::setSessionAction($session)

Arguments

  • $session mixed