[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/joomla/filesystem/ -> path.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
License: GNU/GPL, see LICENSE.php
Version: $Id: path.php 21066 2011-04-03 22:19:02Z dextercowley $
File Size: 268 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JPath:: (7 methods):
  canChmod()
  setPermissions()
  getPermissions()
  check()
  clean()
  isOwner()
  find()


Class: JPath  - X-Ref

A Path handling class

canChmod($path)   X-Ref
Checks if a path's permissions can be changed

param: string    $path    Path to check
return: boolean    True if path can have mode changed

setPermissions($path, $filemode = '0644', $foldermode = '0755')   X-Ref
Chmods files and directories recursivly to given permissions

param: string    $path        Root path to begin changing mode [without trailing slash]
param: string    $filemode    Octal representation of the value to change file mode to [null = no change]
param: string    $foldermode    Octal representation of the value to change folder mode to [null = no change]
return: boolean    True if successful [one fail means the whole operation failed]

getPermissions($path)   X-Ref
Get the permissions of the file/folder at a give path

param: string    $path    The path of a file/folder
return: string    Filesystem permissions

check($path)   X-Ref
Checks for snooping outside of the file system root

param: string    $path    A file system path to check
return: string    A cleaned version of the path

clean($path, $ds=DS)   X-Ref
Function to strip additional / or \ in a path name

param: string    $path    The path to clean
param: string    $ds        Directory separator (optional)
return: string    The cleaned path

isOwner($path)   X-Ref
Method to determine if script owns the path

param: string    $path    Path to check ownership
return: boolean    True if the php script owns the path passed

find($paths, $file)   X-Ref
Searches the directory paths for a given file.

param: array|string    $path    An path or array of path to search in
param: string    $file    The file name to look for.
return: mixed    The full path and file name for the target file, or boolean false if the file is not found in any of the paths.



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1