TYPO3  7.6
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FilePathsIterator Class Reference
Inheritance diagram for FilePathsIterator:

Public Member Functions

 __construct (array $paths, $baseDir)
 
 __call ($name, array $arguments)
 
 current ()
 
 key ()
 
 next ()
 
 rewind ()
 
 getSubPath ()
 
 getSubPathname ()
 

Private Member Functions

 buildProperties ()
 

Private Attributes

 $baseDir
 
 $baseDirLength
 
 $subPath
 
 $subPathname
 
 $current
 

Detailed Description

Iterate over shell command result.

Author
Jean-François Simon conta.nosp@m.ct@j.nosp@m.fsimo.nosp@m.n.fr

Definition at line 21 of file FilePathsIterator.php.

Constructor & Destructor Documentation

__construct ( array  $paths,
  $baseDir 
)
Parameters
array$pathsList of paths returned by shell command
string$baseDirBase dir for relative path building

Definition at line 52 of file FilePathsIterator.php.

References FilePathsIterator\$baseDir.

Member Function Documentation

__call (   $name,
array  $arguments 
)
Parameters
string$name
array$arguments
Returns
mixed

Definition at line 66 of file FilePathsIterator.php.

References FilePathsIterator\current().

buildProperties ( )
private
current ( )

Return an instance of SplFileInfo with support for relative paths.

Returns
SplFileInfo File information

Definition at line 76 of file FilePathsIterator.php.

References FilePathsIterator\$current.

Referenced by FilePathsIterator\__call(), FilePathsIterator\buildProperties(), and FilePathsIterator\key().

getSubPath ( )
Returns
string

Definition at line 104 of file FilePathsIterator.php.

References FilePathsIterator\$subPath.

getSubPathname ( )
Returns
string

Definition at line 112 of file FilePathsIterator.php.

References FilePathsIterator\$subPathname.

key ( )
Returns
string

Definition at line 84 of file FilePathsIterator.php.

References FilePathsIterator\current().

next ( )

Definition at line 89 of file FilePathsIterator.php.

References FilePathsIterator\buildProperties().

rewind ( )

Definition at line 95 of file FilePathsIterator.php.

References FilePathsIterator\buildProperties().

Member Data Documentation

$baseDir
private

Definition at line 26 of file FilePathsIterator.php.

Referenced by FilePathsIterator\__construct().

$baseDirLength
private

Definition at line 31 of file FilePathsIterator.php.

$current
private

Definition at line 46 of file FilePathsIterator.php.

Referenced by FilePathsIterator\current().

$subPath
private

Definition at line 36 of file FilePathsIterator.php.

Referenced by FilePathsIterator\getSubPath().

$subPathname
private

Definition at line 41 of file FilePathsIterator.php.

Referenced by FilePathsIterator\getSubPathname().