PHP Class org\bovigo\vfs\visitor\vfsStreamPrintVisitor

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

Protected Properties

Property Type Description
$depth current depth in directory tree
$out target to write output to

Public Methods

Method 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

Protected Methods

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

Method Details

__construct() public method

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

printContent() protected method

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

visitBlockDevice() public method

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

visitDirectory() public method

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

visitFile() public method

visit a file and process it
public visitFile ( org\bovigo\vfs\vfsStreamFile $file ) : vfsStreamPrintVisitor
$file org\bovigo\vfs\vfsStreamFile
return 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