Class XoopsFolderHandler
Folder structure browser, lists folders and files.
Long description for class
Package: cake\cake\libs
Copyright: (c) 2005-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Located at lass/file/folder.php
Copyright: (c) 2005-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Located at lass/file/folder.php
public
|
#
__construct( boolean|string $path = false, boolean $create = true, mixed $mode = false )
Constructor. |
public
string
|
|
public
string
|
|
public
mixed
|
|
public
array
|
|
public
array
|
#
findRecursive( string $pattern = '.*', boolean $sort = false )
Returns an array of all matching files in and below current directory. |
public
array
|
#
_findRecursive( string $pattern, boolean $sort = false )
Private helper function for findRecursive. |
public
boolean
|
|
public
boolean
|
|
public
string
|
#
normalizePath( string $path )
Returns a correct set of slashes for given $path. (\ for Windows paths and / for other paths.) |
public
string
|
#
correctSlashFor( string $path )
Returns a correct set of slashes for given $path. (\ for Windows paths and / for other paths.) |
public
string
|
|
public
string
|
#
addPathElement( string $path, string $element )
Returns $path with $element added, with correct slash in-between. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
mixed
|
|
public
|
|
public
boolean
|
|
public
integer
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
array
|
|
public
string
|
|
public
boolean
|
#
isSlashTerm( string $path )
Returns true if given $path ends in a slash (i.e. is slash-terminated). |
public
string
|
$path
Path to Folder. |
|
public
boolean
|
$sort
Sortedness. |
#
false
|
public
boolean
|
$mode
mode to be used on create. |
#
'0755'
|
public
array
|
$messages
holds messages from last method. |
#
array()
|
public
array
|
$errors
holds errors from last method. |
#
false
|
public
array
|
$directories
holds array of complete directory paths. |
|
public
array
|
$files
holds array of complete file paths. |