JPath
Description
A Path handling class
Located in /joomla/filesystem/path.php (line 38)
JPath (Subpackage FileSystem)
Method Summary
Methods
canChmod (line 47)
Checks if a path's permissions can be changed
boolean
canChmod
(string $path)
- string $path: Path to check
check (line 146)
Checks for snooping outside of the file system root
string
check
(string $path)
- string $path: A file system path to check
clean (line 168)
Function to strip additional / or \ in a path name
string
clean
(string $path, [string $ds = DS])
- string $path: The path to clean
- string $ds: Directory separator (optional)
find (line 204)
Searches the directory paths for a given file.
mixed
find
( $paths, string $file, array $path)
- array $path: An array of paths to search in
- string $file: The file name to look for.
- $paths
getPermissions (line 118)
Get the permissions of the file/folder at a give path
string
getPermissions
(string $path)
- string $path: The path of a file/folder
isOwner (line 190)
Method to determine if script owns the path
boolean
isOwner
(string $path)
- string $path: Path to check ownership
setPermissions (line 70)
Chmods files and directories recursivly to given permissions
boolean
setPermissions
(string $path, [string $filemode = '0644'], [string $foldermode = '0755'])
- string $path: Root path to begin changing mode [without trailing slash]
- string $filemode: Octal representation of the value to change file mode to [null = no change]
- string $foldermode: Octal representation of the value to change folder mode to [null = no change]
Documentation generated on Mon, 05 Mar 2007 21:13:51 +0000 by phpDocumentor 1.3.1