[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/system/io/ -> UnixFileSystem.php (sommaire)

(pas de description)

Poids: 266 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

UnixFileSystem:: (15 méthodes):
  getSeparator()
  getPathSeparator()
  normalize()
  normalizer()
  prefixLength()
  resolve()
  getDefaultParent()
  isAbsolute()
  resolveFile()
  getBooleanAttributes()
  setReadOnly()
  compare()
  listRoots()
  lister()
  fromURIPath()


Classe: UnixFileSystem  - X-Ref

UnixFileSystem class. This class encapsulates the basic file system functions
for platforms using the unix (posix)-stylish filesystem. It wraps php native
functions suppressing normal PHP error reporting and instead uses Exception
to report and error.

This class is part of a oop based filesystem abstraction and targeted to run
on all supported php platforms.

Note: For debugging turn track_errors on in the php.ini. The error messages
and log messages from this class will then be clearer because $php_errormsg
is passed as part of the message.

FIXME:
- Comments
- Error handling reduced to min, error are handled by PhingFile mainly

getSeparator()   X-Ref
returns OS dependant path separator char


getPathSeparator()   X-Ref
returns OS dependant directory separator char


normalize($strPathname)   X-Ref
A normal Unix pathname contains no duplicate slashes and does not end
with a slash.  It may be the empty string.

Check that the given pathname is normal.  If not, invoke the real
normalizer on the part of the pathname that requires normalization.
This way we iterate through the whole pathname string only once.

normalizer($pathname, $len, $offset)   X-Ref
Normalize the given pathname, whose length is $len, starting at the given
$offset; everything before this offset is already normal.


prefixLength($pathname)   X-Ref
Compute the length of the pathname string's prefix.  The pathname
string must be in normal form.


resolve($parent, $child)   X-Ref
Resolve the child pathname string against the parent.
Both strings must be in normal form, and the result
will be in normal form.


getDefaultParent()   X-Ref
Pas de description

isAbsolute(PhingFile $f)   X-Ref
Pas de description

resolveFile(PhingFile $f)   X-Ref
the file resolver


getBooleanAttributes(&$f)   X-Ref
Pas de description

setReadOnly($f)   X-Ref
set file readonly on unix


compare($f1, $f2)   X-Ref
compares file paths lexicographically


listRoots()   X-Ref
Pas de description

lister($f)   X-Ref
returns the contents of a directory in an array


fromURIPath($p)   X-Ref
Pas de description



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7