PHP Class org\bovigo\vfs\visitor\vfsStreamPrintVisitor

See also: https://github.com/mikey179/vfsStream/issues/10
Since: 0.10.0
Inheritance: extends vfsStreamAbstractVisitor
Afficher le fichier Open project: mikey179/vfsstream

Protected Properties

Свойство Type Description
$depth current depth in directory tree
$out target to write output to

Méthodes publiques

Méthode Description
__construct ( resource $out = STDOUT ) constructor
visitBlockDevice ( org\bovigo\vfs\vfsStreamBlock $block ) : vfsStreamPrintVisitor visit a block device and process it
visitDirectory ( vfsStreamDirectory $dir ) : vfsStreamPrintVisitor visit a directory and process it
visitFile ( org\bovigo\vfs\vfsStreamFile $file ) : vfsStreamPrintVisitor visit a file and process it

Méthodes protégées

Méthode Description
printContent ( string $name ) helper method to print the content

Method Details

__construct() public méthode

If no file pointer given it will fall back to STDOUT.
public __construct ( resource $out = STDOUT )
$out resource optional

printContent() protected méthode

helper method to print the content
protected printContent ( string $name )
$name string

visitBlockDevice() public méthode

visit a block device and process it
public visitBlockDevice ( org\bovigo\vfs\vfsStreamBlock $block ) : vfsStreamPrintVisitor
$block org\bovigo\vfs\vfsStreamBlock
Résultat vfsStreamPrintVisitor

visitDirectory() public méthode

visit a directory and process it
public visitDirectory ( vfsStreamDirectory $dir ) : vfsStreamPrintVisitor
$dir org\bovigo\vfs\vfsStreamDirectory
Résultat vfsStreamPrintVisitor

visitFile() public méthode

visit a file and process it
public visitFile ( org\bovigo\vfs\vfsStreamFile $file ) : vfsStreamPrintVisitor
$file org\bovigo\vfs\vfsStreamFile
Résultat vfsStreamPrintVisitor

Property Details

$depth protected_oe property

current depth in directory tree
protected $depth

$out protected_oe property

target to write output to
protected $out