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

since 0.10.0
see \org\bovigo\vfs\visitor\https://github.com/mikey179/vfsStream/issues/10

 Methods

constructor

__construct(resource $out) 
API

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

api

Parameters

$out

resource

optional

Exceptions

\InvalidArgumentException

visit a content and process it

visit(\org\bovigo\vfs\vfsStreamContent $content) : \org\bovigo\vfs\visitor\vfsStreamVisitor
Inherited

inherited_from \org\bovigo\vfs\visitor\vfsStreamAbstractVisitor::visit()

Parameters

Exceptions

\InvalidArgumentException

Returns

visit a directory and process it

visitDirectory(\org\bovigo\vfs\vfsStreamDirectory $dir) : \org\bovigo\vfs\visitor\vfsStreamPrintVisitor

visit a file and process it

visitFile(\org\bovigo\vfs\vfsStreamFile $file) : \org\bovigo\vfs\visitor\vfsStreamPrintVisitor

helper method to print the content

printContent(\org\bovigo\vfs\vfsStreamContent $content) 

Parameters

 Properties

 

current depth in directory tree

$depth 

type int
 

target to write output to

$out 

type resource