You are here

protected function vfsStreamPrintVisitor::printContent in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php \org\bovigo\vfs\visitor\vfsStreamPrintVisitor::printContent()

helper method to print the content

Parameters

string $name:

3 calls to vfsStreamPrintVisitor::printContent()
vfsStreamPrintVisitor::visitBlockDevice in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php
visit a block device and process it
vfsStreamPrintVisitor::visitDirectory in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php
visit a directory and process it
vfsStreamPrintVisitor::visitFile in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php
visit a file and process it

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php, line 103

Class

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

Namespace

org\bovigo\vfs\visitor

Code

protected function printContent($name) {
  fwrite($this->out, str_repeat('  ', $this->depth) . '- ' . $name . "\n");
}