depage-fs
Loading...
Searching...
No Matches
Fs Class Reference

Detailed Description

Definition at line 5 of file Fs.php.

Public Member Functions

 __construct ($params=array())
 pwd ()
 ls ($url)
 lsDir ($path='')
 lsFiles ($path='')
 exists ($remotePath)
 fileInfo ($remotePath)
 cd ($url)
 mkdir ($pathName, $mode=0777, $recursive=true)
 rm ($url)
 copy ($sourcePath, $targetPath)
 mv ($sourcePath, $targetPath)
 get ($remotePath, $local=null)
 put ($local, $remotePath)
 getString ($remotePath)
 putString ($remotePath, $string)
 test (&$error=null)
 depageFsErrorHandler ($errno, $errstr, $errfile, $errline, array $errcontext)
 file_put_contents ($filename, $data, $flags=0, $context=null)
 Hook, allows overriding of file_put_contents function.

Static Public Member Functions

static factory ($url, $params=array())
static parseUrl ($url)

Protected Member Functions

 preCommandHook ()
 postCommandHook ()
 lateConnect ()
 setBase ($path)
 setErrorHandler ($start)
 cleanUrl ($url, $showPass=true)
 cleanPath ($path)
 buildUrl ($parsed, $showPass=true)
 extractFileName ($path)
 lsFilter ($path='', $function)
 matchNodesInPath ($path, $pattern)
 lsRecursive ($path, $current)
 rmRecursive ($cleanUrl)
 scandir ($cleanUrl='', $hidden=null)
 rmdir ($url)
 Hook, allows overriding of rmdir function.
 rename ($source, $target)
 Hook, allows overriding of rename function.

Static Protected Member Functions

static schemeAlias ($alias='')

Protected Attributes

 $currentPath
 $base
 $url
 $hidden
 $streamContextOptions = array()
 $streamContext

Constructor & Destructor Documentation

◆ __construct()

__construct ( $params = array())

Reimplemented in FsFtp, and FsSsh.

Definition at line 13 of file Fs.php.

Member Function Documentation

◆ buildUrl()

buildUrl ( $parsed,
$showPass = true )
protected

Reimplemented in FsSsh.

Definition at line 371 of file Fs.php.

◆ cd()

cd ( $url)

Definition at line 122 of file Fs.php.

◆ cleanPath()

cleanPath ( $path)
protected

Definition at line 353 of file Fs.php.

◆ cleanUrl()

cleanUrl ( $url,
$showPass = true )
protected

Definition at line 325 of file Fs.php.

◆ copy()

copy ( $sourcePath,
$targetPath )

Definition at line 165 of file Fs.php.

◆ depageFsErrorHandler()

depageFsErrorHandler ( $errno,
$errstr,
$errfile,
$errline,
array $errcontext )

Definition at line 286 of file Fs.php.

◆ exists()

exists ( $remotePath)

Definition at line 101 of file Fs.php.

◆ extractFileName()

extractFileName ( $path)
protected

Definition at line 387 of file Fs.php.

◆ factory()

factory ( $url,
$params = array() )
static

Definition at line 26 of file Fs.php.

◆ file_put_contents()

file_put_contents ( $filename,
$data,
$flags = 0,
$context = null )

Definition at line 507 of file Fs.php.

◆ fileInfo()

fileInfo ( $remotePath)

Definition at line 111 of file Fs.php.

◆ get()

get ( $remotePath,
$local = null )

Definition at line 202 of file Fs.php.

◆ getString()

getString ( $remotePath)

Definition at line 224 of file Fs.php.

◆ lateConnect()

lateConnect ( )
protected

Reimplemented in FsSsh.

Definition at line 274 of file Fs.php.

◆ ls()

ls ( $url)

Definition at line 72 of file Fs.php.

◆ lsDir()

lsDir ( $path = '')

Definition at line 83 of file Fs.php.

◆ lsFiles()

lsFiles ( $path = '')

Definition at line 92 of file Fs.php.

◆ lsFilter()

lsFilter ( $path = '',
$function )
protected

Definition at line 399 of file Fs.php.

◆ lsRecursive()

lsRecursive ( $path,
$current )
protected

Definition at line 426 of file Fs.php.

◆ matchNodesInPath()

matchNodesInPath ( $path,
$pattern )
protected

Definition at line 414 of file Fs.php.

◆ mkdir()

mkdir ( $pathName,
$mode = 0777,
$recursive = true )

Definition at line 136 of file Fs.php.

◆ mv()

mv ( $sourcePath,
$targetPath )

Definition at line 183 of file Fs.php.

◆ parseUrl()

parseUrl ( $url)
static

Definition at line 300 of file Fs.php.

◆ postCommandHook()

postCommandHook ( )
protected

Definition at line 270 of file Fs.php.

◆ preCommandHook()

preCommandHook ( )
protected

Definition at line 265 of file Fs.php.

◆ put()

put ( $local,
$remotePath )

Definition at line 215 of file Fs.php.

◆ putString()

putString ( $remotePath,
$string )

Definition at line 234 of file Fs.php.

◆ pwd()

pwd ( )

Definition at line 61 of file Fs.php.

◆ rename()

rename ( $source,
$target )
protected

Reimplemented in FsSsh.

Definition at line 500 of file Fs.php.

◆ rm()

rm ( $url)

Definition at line 151 of file Fs.php.

◆ rmdir()

rmdir ( $url)
protected

Reimplemented in FsFile.

Definition at line 493 of file Fs.php.

◆ rmRecursive()

rmRecursive ( $cleanUrl)
protected

Definition at line 453 of file Fs.php.

◆ scandir()

scandir ( $cleanUrl = '',
$hidden = null )
protected

Definition at line 469 of file Fs.php.

◆ schemeAlias()

schemeAlias ( $alias = '')
staticprotected

Definition at line 40 of file Fs.php.

◆ setBase()

setBase ( $path)
protected

Reimplemented in FsFile.

Definition at line 280 of file Fs.php.

◆ setErrorHandler()

setErrorHandler ( $start)
protected

Definition at line 291 of file Fs.php.

◆ test()

test ( & $error = null)

Definition at line 244 of file Fs.php.

Field Documentation

◆ $base

$base
protected

Definition at line 8 of file Fs.php.

◆ $currentPath

$currentPath
protected

Definition at line 7 of file Fs.php.

◆ $hidden

$hidden
protected

Definition at line 10 of file Fs.php.

◆ $streamContext

$streamContext
protected

Definition at line 12 of file Fs.php.

◆ $streamContextOptions

$streamContextOptions = array()
protected

Definition at line 11 of file Fs.php.

◆ $url

$url
protected

Definition at line 9 of file Fs.php.


The documentation for this class was generated from the following file: