Documentation

vfsStreamPrintVisitor extends vfsStreamAbstractVisitor
in package

Visitor which traverses a content structure recursively to print it to an output stream.

Tags
since
0.10.0
see
https://github.com/mikey179/vfsStream/issues/10

Table of Contents

$depth  : mixed
current depth in directory tree
$out  : mixed
target to write output to
__construct()  : mixed
constructor
visit()  : vfsStreamVisitor
visit a content and process it
visitBlockDevice()  : vfsStreamPrintVisitor
visit a block device and process it
visitDirectory()  : vfsStreamPrintVisitor
visit a directory and process it
visitFile()  : vfsStreamPrintVisitor
visit a file and process it
printContent()  : mixed
helper method to print the content

Properties

Methods

__construct()

constructor

public __construct([resource $out = STDOUT ]) : mixed

If no file pointer given it will fall back to STDOUT.

Parameters
$out : resource = STDOUT

optional

Tags
throws
InvalidArgumentException
Return values
mixed

printContent()

helper method to print the content

protected printContent(string $name) : mixed
Parameters
$name : string
Return values
mixed

Search results