[ Index ]

PHP Cross Reference of phool

title

Body

[close]

/Phool/ -> File.php (summary)

(no description)

File Size: 238 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

File:: (11 methods):
  suffix()
  fileSuffix()
  combinePath()
  trailingSepar()
  isAbsolutePath()
  mkAbsolutePath()
  readFile()
  scandir()
  atomicWrite()
  pathUniqueID()
  recursiveCopy()


Class: File  - X-Ref


suffix($filename)   X-Ref
No description

fileSuffix($filename)   X-Ref
No description

combinePath($base,$path,$separ=false)   X-Ref
Combines a base path with another path

The base path can be relative or absolute.

The 2nd path can also be relative or absolute. If absolute, it is returned
as-is. If it is a relative path, it is combined to the base path.

Uses '/' as separator (to be compatible with stream-wrapper URIs).

param: string $base The base path
param: string|null $path The path to combine
param: bool $separ true: add trailing sep, false: remove it
return: string The resulting path

trailingSepar($path, $separ)   X-Ref
Adds or removes a trailing separator in a path

param: string $path Input
param: bool $flag true: add trailing sep, false: remove it
return: bool The result path

isAbsolutePath($path)   X-Ref
Determines if a given path is absolute or relative

param: string $path The path to check
return: bool True if the path is absolute, false if relative

mkAbsolutePath($path,$separ=false)   X-Ref
Build an absolute path from a given (absolute or relative) path

If the input path is relative, it is combined with the current working
directory.

param: string $path The path to make absolute
param: bool $separ True if the resulting path must contain a trailing separator
return: string The resulting absolute path

readFile($path)   X-Ref
No description

scandir($path)   X-Ref
No description

atomicWrite($path,$data)   X-Ref
No description

pathUniqueID($prefix,$path,&$mtime)   X-Ref
No description

recursiveCopy($src,$dst)   X-Ref
No description



Generated: Thu Jun 4 19:17:11 2015 Cross-referenced by PHPXref 0.7.1